You are not logged in.

#1 2009-04-29 17:01:04

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Clean all but current +1?

I'd like to clean up my /var directory, which keeps filling up, but i would like to keep the current package and one prior to that.  I'm not finding a way to do that.  Is it possible?

Offline

#2 2009-04-29 17:40:58

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Clean all but current +1?

pacman -Sc

will remove all the packages that are NOT installed. But I don't think there is a way to keep the current + 1 earlier copies of the installed packages.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2009-04-29 18:35:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Clean all but current +1?

You would need to script something yourself.

Offline

#4 2009-04-29 19:31:41

alterkacker
Member
From: Peoples Republic of Boulder
Registered: 2005-01-08
Posts: 52

Re: Clean all but current +1?

Take a look at my script cache-clean in http://wiki.archlinux.org/index.php/Clean_Cache

Last edited by alterkacker (2009-04-29 19:32:38)

Offline

Board footer

Powered by FluxBB