kanotix.com

Software - APT: How to delte removed packages from the cache

Gowator - 18.06.2006, 17:39 Uhr
Titel: APT: How to delte removed packages from the cache
How can I remove packages that have been downloaded and cached in the cache after I deinstall them.

--clean removes everything ant autoclean anything not downloadable but I just want to purge certain packages from my local cache... ?

I don't think I can just delete them or the index will be messed up?
mzilikazi - 19.06.2006, 02:51 Uhr
Titel: Re: APT: How to delte removed packages from the cache
Gowator hat folgendes geschrieben::

I don't think I can just delete them or the index will be messed up?


Well I don't know what the official policy on this is but I can say that deleting pkgs in /var/cache/apt/archives does not seem to cause any problems. Apt simply downloads what it needs if it isn't there.

Of course you can always experiment for yourself. Instead of actually deleteing pkgs use mv Winken a good habit to get into anyway.
t-bone - 20.06.2006, 05:53 Uhr
Titel: RE: Re: APT: How to delte removed packages from the cache
I belive the commands are:

apt-get clean

apt-get autoclean
Gowator - 20.06.2006, 10:17 Uhr
Titel: RE: Re: APT: How to delte removed packages from the cache
t-bone, these delete ALL files in the cache and ALL files which can no longer be found in the repo ...
The point is I want to keep all the files I have installed and not uninstalled but delete the ones which are uninstalled.

I guess it just can't be done automatically ... perhaps I can delete what I want and then find a way to regenerate the index files? The idea is I wanted to make my own Debian install disk ... OK Im not sure why I want to do this .... I guess its just learning ... but now Ive started I have made a VMWARE virtual machine and wanted to do this as an educational thing....
schnorrer - 20.06.2006, 12:15 Uhr
Titel: RE: Re: APT: How to delte removed packages from the cache
apt-get remove pkg pkg --purge as root does normaly the job. otherwise apt-get remove pgk wil left the /var/cache/apt intact wihle linux is a multi-user-system, and other users may need or want to install this pkg's
Gowator - 20.06.2006, 14:25 Uhr
Titel: RE: Re: APT: How to delte removed packages from the cache
Thx Schnorrer, I guess that is what I was looking for.
t-bone - 21.06.2006, 07:03 Uhr
Titel: RE: Re: APT: How to delte removed packages from the cache
Well, excuuuuuuuuuuuuuuuuse me! Sehr glücklich
drb - 07.07.2006, 10:39 Uhr
Titel:
I'm currently up to 3GB and / space is disappearing. Can I :

Copy /var/cache/apt/archives to DVD
apt-get clean

then, install off the DVD if I want an old version for some reason?

drb
schnorrer - 07.07.2006, 11:10 Uhr
Titel:
Yes you can, later when you want to reinstall missing/removed pack. you can get errors while the DVD does not to be recognised as a install-medium.

To install debs from that kind of DVD: apt-get install /media/dvd/path/to/deb or dpkg -i /media/dvd/deb
drb - 07.07.2006, 11:43 Uhr
Titel:
Thanks for the help! / space back to 'normal'!

drb
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007