瀏覽代碼

Clean support
Author: jgg
Date: 1999-02-01 08:15:18 GMT
Clean support

Arch Librarian 22 年之前
父節點
當前提交
b381f6ed58
共有 3 個文件被更改,包括 14 次插入2 次删除
  1. 1 1
      apt-pkg/makefile
  2. 9 0
      doc/apt-get.8.yo
  3. 4 1
      dselect/install

+ 1 - 1
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)
 

+ 9 - 0
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()

+ 4 - 1
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)