Autor |
Nachricht |
|
Titel: APT: How to delte removed packages from the cache
Verfasst am: 18.06.2006, 17:39 Uhr
|
|
Anmeldung: 12. Mar 2004
Beiträge: 275
Wohnort: Paris-France
|
|
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? |
|
|
|
|
 |
|
Titel: Re: APT: How to delte removed packages from the cache
Verfasst am: 19.06.2006, 02:51 Uhr
|
|
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
|
|
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 a good habit to get into anyway. |
_________________ Ubuntu - An ancient African word for "Can't install Debian"
|
|
|
|
 |
|
Titel: RE: Re: APT: How to delte removed packages from the cache
Verfasst am: 20.06.2006, 05:53 Uhr
|
|
Anmeldung: 12. Sep 2005
Beiträge: 130
|
|
I belive the commands are:
apt-get clean
apt-get autoclean |
_________________ "All that is not given is lost."
|
|
|
|
 |
|
Titel: RE: Re: APT: How to delte removed packages from the cache
Verfasst am: 20.06.2006, 10:17 Uhr
|
|
Anmeldung: 12. Mar 2004
Beiträge: 275
Wohnort: Paris-France
|
|
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.... |
|
|
|
|
 |
|
Titel: RE: Re: APT: How to delte removed packages from the cache
Verfasst am: 20.06.2006, 12:15 Uhr
|
|
Anmeldung: 09. Jan 2006
Beiträge: 1720
|
|
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 |
|
|
|
|
 |
|
Titel: RE: Re: APT: How to delte removed packages from the cache
Verfasst am: 20.06.2006, 14:25 Uhr
|
|
Anmeldung: 12. Mar 2004
Beiträge: 275
Wohnort: Paris-France
|
|
Thx Schnorrer, I guess that is what I was looking for. |
|
|
|
|
 |
|
Titel: RE: Re: APT: How to delte removed packages from the cache
Verfasst am: 21.06.2006, 07:03 Uhr
|
|
Anmeldung: 12. Sep 2005
Beiträge: 130
|
|
Well, excuuuuuuuuuuuuuuuuse me!  |
_________________ "All that is not given is lost."
|
|
|
|
 |
|
Titel:
Verfasst am: 07.07.2006, 10:39 Uhr
|
|

Anmeldung: 03. Jul 2004
Beiträge: 525
|
|
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 |
_________________ Kernel 2.6.21-slh-up-7
_____________________
|
|
|
|
 |
|
Titel:
Verfasst am: 07.07.2006, 11:10 Uhr
|
|
Anmeldung: 09. Jan 2006
Beiträge: 1720
|
|
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 |
|
|
|
|
 |
|
Titel:
Verfasst am: 07.07.2006, 11:43 Uhr
|
|

Anmeldung: 03. Jul 2004
Beiträge: 525
|
|
Thanks for the help! / space back to 'normal'!
drb |
_________________ Kernel 2.6.21-slh-up-7
_____________________
|
|
|
|
 |
|