You are not logged in.

#1 2009-03-11 22:23:42

V01D
Member
Registered: 2006-07-18
Posts: 128

Cache cleaning

Hi,
I'm confused about how pacman clears the cache when doing pacman -Scc. When executing such command, which packages are deleted? According to the man page of pacman, I get the idea that it removes all of the .pkg.tar.gz files corresponding to not-installed packages. Does this mean that it won't remove older versions of .pkg.tar.gz files for currently installed packages? I'm asking this since I see a lot of old package versions stored in cache, which pacman -Scc doesn't remove, for example:

-rw-r--r-- 1 root root  19044175 2008-08-02 15:45 xulrunner-1.9.0.1-2-x86_64.pkg.tar.gz
-rw-r--r-- 1 root root  18667279 2008-10-06 12:19 xulrunner-1.9.0.3-1-x86_64.pkg.tar.gz
-rw-r--r-- 1 root root  18671745 2008-11-23 23:11 xulrunner-1.9.0.4-1-x86_64.pkg.tar.gz
-rw-r--r-- 1 root root  18751997 2008-12-21 22:12 xulrunner-1.9.0.5-1-x86_64.pkg.tar.gz
-rw-r--r-- 1 root root  18751745 2009-01-01 01:37 xulrunner-1.9.0.5-2-x86_64.pkg.tar.gz
-rw-r--r-- 1 root root  18331675 2009-02-12 21:49 xulrunner-1.9.0.6-1-x86_64.pkg.tar.gz
-rw-r--r-- 1 root root  18747126 2009-03-08 22:38 xulrunner-1.9.0.7-1-x86_64.pkg.tar.gz

(xulrunner is installed).

If this is the expected behavior for pacman -Scc, is there a way to instruct pacman to just keep the latest version of each package in the cache?

Thanks

Offline

#2 2009-03-11 22:30:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Cache cleaning

pacman -Sc keeps everything installed and deletes older version of packages. pacman -Scc clears everything.

Offline

#3 2009-03-11 22:31:54

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: Cache cleaning

... nevermind... I didn't noticed that the default answer was 'N' , so when I hit enter nothing was deleted... roll

Offline

#4 2009-03-11 22:32:44

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

Re: Cache cleaning

V01D wrote:

I see a lot of old package versions stored in cache, which pacman -Scc doesn't remove

Strange.

pacman -Sc can keep either installed packages or current packages.  See "man pacman.conf" for more info.

Offline

Board footer

Powered by FluxBB