You are not logged in.
I suspect this is more of a bash script question than a pacman question but it's related so here goes: how would one go about deleting older versions of packages (files in general)? I am hesitant to use a date restriction because some packages may be current and just older than the restriction. Perhaps keeping say the latest three versions of any given package might be a good idea. How have folks been doing this if at all?
Offline
Pacman has some cache cleaning capabilities (see man pacman.conf). There are also other scripts posted here on the forums.
Offline
Personally I keep the current version of packages in the /var/cache/pacman/pkg folder, and I also keep the preceding version in another partition, to be able to downgrade in case of problem with the newer package.
So I always have two versions available.
Offline
How have folks been doing this if at all?
I'm using schlunix.org
Offline
Pacman has some cache cleaning capabilities (see man pacman.conf). There are also other scripts posted here on the forums.
Anyone using any of the scripts that Allan referred to? I haven't had much luck find any. The behavior I'm looking for is to have pacman clean the /var/cache/pacman/pkg dir keeping two versions of each package (current and one before). I know -Sc will keep current, but I don't know how to go about automating the keeping of one previous version.
Offline
(Wiki to the rescue!)
M*cr*s*ft: Who needs quality when you have marketing?
Offline
Killer, just what I was looking for! Thanks very much for point me to that.
Last edited by graysky (2010-02-10 00:32:12)
Offline