You are not logged in.

#1 2009-11-08 07:54:18

mibadt
Member
Registered: 2009-09-25
Posts: 396

Removing older packages

Hi,
Being a rolling distribution, Arch eventually fills up the / (or /var) partition with all the packages that had been downloaded since the initial install (or last "clean up").
While I know pacman can remove  all former version packages, this disables the option to revert to the former version of any package (in case of problem).

Is there, or will be in the future, a pacman option to remove all older packages except for version <last-1> version (assuming <last> is the newest?

e.g.,
If current version of package aaa is 1.7.3, keep 1.7.2, yet remove all older versions of aaa.

Best reagrds,

Michael Badt


Best regards,
Michael Badt

Offline

#2 2009-11-08 07:58:32

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Removing older packages

Wouldn't that be

pacman -Sc

That cleans the cache from packages not currently installed. My assumption is that pacman recognizes, that the older versions are not installed and removes them.

Offline

#3 2009-11-08 09:41:02

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Removing older packages

Sorry if I haven't cleared myself.
I want to retain the option to downgrade to the former (latest-1) version.
As far as I understand it, pacman -Sc won't enable this.


Best regards,
Michael Badt

Offline

#4 2009-11-08 09:45:58

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

Re: Removing older packages

I have seen scripts posted here that do this....  I am just not motivated enough to find the for you.

Offline

Board footer

Powered by FluxBB