You are not logged in.

#1 2011-01-30 07:52:46

Axanon
Member
From: Toronto
Registered: 2010-06-12
Posts: 53

Culling older (cached) packages.. safe?

Is it safe to delete older files from my pacman cache (/var/cache/pacman/pkg/) directory? My cache is up to around 6GB and there isn't much point in keeping REALLY old versions of files here.

I would like to keep more recent files in case I need to revert, I'm just concerned that deleting files here may cause problems. Are there any commands I may need to run after removing files here? Thanks.

Offline

#2 2011-01-30 07:55:36

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

Re: Culling older (cached) packages.. safe?

yes
use

pacman -Sc

to remove all packages that are not currently installed.

Add another -c flag to remove every package


Forum Rules

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

Offline

#3 2011-01-30 08:58:03

Lux Perpetua
Member
From: The Local Group
Registered: 2009-02-22
Posts: 74

Re: Culling older (cached) packages.. safe?

After you upgrade and there's no major breakage, run pacman -Sc as Inxsible said. The next time you upgrade, if anything breaks, you'll still be able to downgrade the offending packages.

Offline

Board footer

Powered by FluxBB