Re: /var/cache/apt/archives is big
- To: email@example.com
- Subject: Re: /var/cache/apt/archives is big
- From: Thomas Weinbrenner <firstname.lastname@example.org>
- Date: Sat, 1 Mar 2003 18:59:51 +0000 (UTC)
- Message-id: <email@example.com>
- References: <firstname.lastname@example.org>
Alan Chandler <email@example.com> schrieb:
> My /var/cache/apt/archives directory seems to have nearly a gig of
> .deb files. I notice there is more than one version of each (it looks
> like its always 2).
> Is there a command to shrink it?
"apt-get clean" and "apt-get autoclean"
| clean clean clears out the local repository of retrieved
| package files. It removes everything but the lock
| file from /var/cache/apt/archives/ and
| /var/cache/apt/archive/partial/. When APT is used
| as a dselect(8) method, clean is run automatically.
| Those who do not use dselect will likely want to
| run apt-get clean from time to time to free up disk
| Like clean, autoclean clears out the local reposi
| tory 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. The configura
| tion option APT::Clean-Installed will prevent
| installed packages from being erased if it is set