Author: jgg
Date: 1999-02-01 08:15:18 GMT
Clean support
# The library name
LIBRARY=apt-pkg
# The library name
LIBRARY=apt-pkg
MINOR=0
SLIBS=$(PTHREADLIB)
MINOR=0
SLIBS=$(PTHREADLIB)
it() remove package1 [package2] [...]
it() check
it() clean
it() remove package1 [package2] [...]
it() check
it() clean
)
Unless the -h, or --help option is given one of the above commands
)
Unless the -h, or --help option is given one of the above commands
When APT is used as a bf(dselect(8)) method, bf(clean) is run automatically.
Those who do not use dselect will likely want to run code(apt-get clean)
from time to time to free up disk space.
When APT is used as a bf(dselect(8)) method, bf(clean) is run automatically.
Those who do not use dselect will likely want to run code(apt-get clean)
from time to time to free up disk space.
+
+dit(bf(autoclean))
+Like bf(clean), df(autoclean) clears out the local repository of retrieved
+package files. The difference is that it only removes package files that
+can no longer be downloaded, and are largely useless. This allows a
+cache to be maintained over a long period without it growing out of
+control.
+
enddit()
manpageoptions()
enddit()
manpageoptions()
if [ $RES -eq 0 ]; then
# Check the cleaning mode
case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in
if [ $RES -eq 0 ]; then
# Check the cleaning mode
case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in
+ auto)
+ $APTGET autoclean && echo "Press enter to continue." && read RES && exit 0;
+ ;;
+ always)
$APTGET clean && echo "Press enter to continue." && read RES && exit 0;
;;
prompt)
$APTGET clean && echo "Press enter to continue." && read RES && exit 0;
;;
prompt)