termux-tools: add 'pkg autoclean' and command descriptions to help (#5627)

This commit is contained in:
buttaface 2020-08-01 17:51:10 +05:30 committed by GitHub
parent 55a3bdf0f5
commit 4801874eb6
2 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.88
TERMUX_PKG_VERSION=0.89
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -6,15 +6,17 @@ show_help() {
echo ''
echo 'A tool for managing packages. Commands:'
echo ''
echo ' files <packages>'
echo ' autoclean - remove all outdated packages from .deb package cache'
echo " clean - remove all packages from .deb package cache: $(du -sh /data/data/com.termux/cache/apt/archives | cut -f1) now used"
echo ' files <packages> - show all files installed by packages'
echo ' install <packages>'
echo ' list-all'
echo ' list-installed'
echo ' reinstall <packages>'
echo ' reinstall <packages> - reinstall specified installed packages at the latest version'
echo ' search <query>'
echo ' show <packages>'
echo ' show <packages> - show basic metadata, such as dependencies'
echo ' uninstall <packages>'
echo ' upgrade'
echo ' upgrade - update all installed packages to latest version'
exit 1
}
@ -80,6 +82,7 @@ case "$CMD" in
update_apt_cache
apt install "$@"
;;
autoc*) apt autoclean;;
cl*) apt clean;;
list-a*) apt list "$@";;
list-i*) apt list --installed "$@";;