summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/makefile2
-rw-r--r--doc/apt-get.8.yo9
-rwxr-xr-xdselect/install5
3 files changed, 14 insertions, 2 deletions
diff --git a/apt-pkg/makefile b/apt-pkg/makefile
index 87a5e46f6..e4584700c 100644
--- a/apt-pkg/makefile
+++ b/apt-pkg/makefile
@@ -11,7 +11,7 @@ include ../buildlib/defaults.mak
# The library name
LIBRARY=apt-pkg
-MAJOR=2.0
+MAJOR=2.1
MINOR=0
SLIBS=$(PTHREADLIB)
diff --git a/doc/apt-get.8.yo b/doc/apt-get.8.yo
index 768b4e695..6209c7e07 100644
--- a/doc/apt-get.8.yo
+++ b/doc/apt-get.8.yo
@@ -20,6 +20,7 @@ itemize(
it() remove package1 [package2] [...]
it() check
it() clean
+ it() autoclean
)
Unless the -h, or --help option is given one of the above commands
@@ -89,6 +90,14 @@ and bf(/var/cache/apt/archives/partial/).
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()
diff --git a/dselect/install b/dselect/install
index db96a8055..2481fcea1 100755
--- a/dselect/install
+++ b/dselect/install
@@ -49,7 +49,10 @@ fi
if [ $RES -eq 0 ]; then
# Check the cleaning mode
case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in
- always|auto)
+ 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)