You are not logged in.

#1 2009-07-22 11:41:06

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

Cleaning Pacman Cache

To clean pacman cache I would do a pacman -Sc and that would clean all but the newest packages from the cache. Can I manually remove packages from the cache without messing anything up? Such as are the packages linked to a pacman directory? Going thru the forums I notice that some packages are downgraded and I want to keep older ones that seem to have problems but I want to get rid of packages in between the older package and the newest package.  (ie. I had to downgrade wine to 1.1.20 but I also have 1.1.16, 1.1.18, 1.1.23, 1.1.23, 1.1.24, 1.1.25) My cache is 4.7G and I want to clean it up some.

Offline

#2 2009-07-22 11:44:26

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Cleaning Pacman Cache

As I as I know, you can delete them manually.
When you go to upgrade or downgrade, pacman checks the cache whether it is in there or not. Packages in the cache are not stored in any database.


neutral

Offline

#3 2009-07-22 11:45:10

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Cleaning Pacman Cache

Yes you can.

Offline

#4 2009-07-22 11:48:02

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Cleaning Pacman Cache

I recommend making a directory with useful packages.

Offline

#5 2009-07-22 12:19:16

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Cleaning Pacman Cache

smcsw2000 wrote:

To clean pacman cache I would do a pacman -Sc and that would clean all but the newest packages from the cache. Can I manually remove packages from the cache without messing anything up? Such as are the packages linked to a pacman directory? Going thru the forums I notice that some packages are downgraded and I want to keep older ones that seem to have problems but I want to get rid of packages in between the older package and the newest package.  (ie. I had to downgrade wine to 1.1.20 but I also have 1.1.16, 1.1.18, 1.1.23, 1.1.23, 1.1.24, 1.1.25) My cache is 4.7G and I want to clean it up some.

Taking your wine example, pacman -Sc will only keep the installed 1.1.20 and remove all the others.
If you put CleanMethod = KeepCurrent, it will only keep 1.1.25 (if this is indeed the current version in the database) and remove all the others.

None of  these options is ok?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2009-07-22 21:15:18

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

Re: Cleaning Pacman Cache

shining wrote:
Taking your wine example, pacman -Sc will only keep the installed 1.1.20 and remove all the others.
If you put CleanMethod = KeepCurrent, it will only keep 1.1.25 (if this is indeed the current version in the database) and remove all the others.

None of  these options is ok?

I do not want to clean up all but the current packages or the ones currently in use. I want to check the forums and see if anyone is having problems with any files/programs that I use and keep the packages that they roll back to and the current ones but get rid of everything in between.

Offline

Board footer

Powered by FluxBB