You are not logged in.

#1 2009-11-17 21:20:51

Soupstuffs
Member
Registered: 2009-08-28
Posts: 42

Cleaning the filesystem

Hello fellow Archers,

I have been experimenting a lot lately with different packages; pacman -Sing and yogurt -Sing then pacman -Rsing it when I decide I don't like it. The problem is, now my filesystem is full of files from the unused packages. Is there a a safe way to clean my Arch system without going through each file one by one? I'm very into keeping my system sleek and lean as possible, so I really don't want anything I don't use on here.

Thanks in advance,
Soupstuffs

Offline

#2 2009-11-17 21:23:54

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Cleaning the filesystem

pacman -Sc cleans the package cache from every package you don't have installed. Do this when you have a stable system because you won't be able to downgrade packages from the cache.

Offline

#3 2009-11-17 21:30:02

Soupstuffs
Member
Registered: 2009-08-28
Posts: 42

Re: Cleaning the filesystem

If I do that, will it also clean up unused crap in places like the /opt folder, or will I just have to go in an rm them?

Offline

#4 2009-11-17 21:37:31

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

Re: Cleaning the filesystem

pacman -R <some_pkg> removes all files that were installed with pacman -S <some_pkg>. If you have files in /opt or anywhere else that you think should have been removed with a pacman -R, pacman is able to tell you which installed package they belong to. If they don't belong to any package, then they weren't installed by pacman, so it's up to you to decide what to do with them.

Offline

#5 2009-11-17 21:41:36

Soupstuffs
Member
Registered: 2009-08-28
Posts: 42

Re: Cleaning the filesystem

Thank you. I read that in the Wiki, but I wasn't sure if I understood it correctly beause it didn't seem to work for me with certain packages (Virtualbox, PCManFM).

Offline

#6 2009-11-17 22:13:28

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Cleaning the filesystem

If you don't like the ".pacsave" files, use the "-n" flag to pacman.

Offline

#7 2009-11-17 22:29:24

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Offline

Board footer

Powered by FluxBB