termux-tools: add 'pkg autoclean' and command descriptions to help (#5627)
This commit is contained in:
parent
55a3bdf0f5
commit
4801874eb6
@ -1,7 +1,7 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
||||||
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
||||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
TERMUX_PKG_VERSION=0.88
|
TERMUX_PKG_VERSION=0.89
|
||||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
TERMUX_PKG_ESSENTIAL=true
|
TERMUX_PKG_ESSENTIAL=true
|
||||||
|
@ -6,15 +6,17 @@ show_help() {
|
|||||||
echo ''
|
echo ''
|
||||||
echo 'A tool for managing packages. Commands:'
|
echo 'A tool for managing packages. Commands:'
|
||||||
echo ''
|
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 ' install <packages>'
|
||||||
echo ' list-all'
|
echo ' list-all'
|
||||||
echo ' list-installed'
|
echo ' list-installed'
|
||||||
echo ' reinstall <packages>'
|
echo ' reinstall <packages> - reinstall specified installed packages at the latest version'
|
||||||
echo ' search <query>'
|
echo ' search <query>'
|
||||||
echo ' show <packages>'
|
echo ' show <packages> - show basic metadata, such as dependencies'
|
||||||
echo ' uninstall <packages>'
|
echo ' uninstall <packages>'
|
||||||
echo ' upgrade'
|
echo ' upgrade - update all installed packages to latest version'
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,6 +82,7 @@ case "$CMD" in
|
|||||||
update_apt_cache
|
update_apt_cache
|
||||||
apt install "$@"
|
apt install "$@"
|
||||||
;;
|
;;
|
||||||
|
autoc*) apt autoclean;;
|
||||||
cl*) apt clean;;
|
cl*) apt clean;;
|
||||||
list-a*) apt list "$@";;
|
list-a*) apt list "$@";;
|
||||||
list-i*) apt list --installed "$@";;
|
list-i*) apt list --installed "$@";;
|
||||||
|
Loading…
Reference in New Issue
Block a user