From 4801874eb620585764b4b1d1bc3933c5306f8cff Mon Sep 17 00:00:00 2001 From: buttaface Date: Sat, 1 Aug 2020 17:51:10 +0530 Subject: [PATCH] termux-tools: add 'pkg autoclean' and command descriptions to help (#5627) --- packages/termux-tools/build.sh | 2 +- packages/termux-tools/pkg | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 745949da6..2244eeec0 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -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 diff --git a/packages/termux-tools/pkg b/packages/termux-tools/pkg index c25abed1c..95cafa350 100755 --- a/packages/termux-tools/pkg +++ b/packages/termux-tools/pkg @@ -6,15 +6,17 @@ show_help() { echo '' echo 'A tool for managing packages. Commands:' echo '' - echo ' files ' + 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 - show all files installed by packages' echo ' install ' echo ' list-all' echo ' list-installed' - echo ' reinstall ' + echo ' reinstall - reinstall specified installed packages at the latest version' echo ' search ' - echo ' show ' + echo ' show - show basic metadata, such as dependencies' echo ' uninstall ' - 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 "$@";;