[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to have 'apt-get clean' automatically after apt-get install ?



[20030703] Bruce Sass (bsass@edmc.net) wrote:

> 
> script it
> 
> --- /usr/local/sbin/aptinstall ---
> #! /bin/sh
> if [ "$1" = "" ]; then
>     echo "$0: missing package name(s)"
>     exit 1
> fi
> apt-get install $1 && apt-get clean

Thanx alot. I was thinking doing it via a script, however I 
was searching for an apt option to put in /etc/apt/apt.conf.d/
Is there any such option ?
I tried APT::Get::Clean "always"; but it doesn't seem to work...

-- 
Manolis Tzanidakis
(mtzanidakis-at-freemail-dot-gr)
Jabber: mtzanidakis@jabber.org
ICQ: 102798230
GnuPG Key Fingerprint: 
5CA5 41D6 09F1 C4B9 C331
65EF 4B3F 6979 EB8C 88F3
Get my public key at: pgp.mit.edu

Attachment: pgp8imaYJxDpi.pgp
Description: PGP signature


Reply to: