You are not logged in.

#1 2010-01-17 12:02:28

slon
Member
Registered: 2009-12-28
Posts: 29

Cleaning-optimizing arch-linux

Hello, I've installed a lot of different software, made a lot of changes and now my system is not the arch way(not so lightweight) I have a lot of orphans, useless software and certainly too many .folders in my /home.

What are the ways to clean all that mess?

Offline

#2 2010-01-17 12:07:33

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: Cleaning-optimizing arch-linux

pacman -Syy
pacman -Scc
pacman -Suu

pacman -Rscnd <program>


/me wants you to detele this account... please delete it.

Offline

#3 2010-01-17 15:42:48

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Cleaning-optimizing arch-linux

Also try:

pacman -Rsn $(pacman -Qdtq)

Offline

#4 2010-01-17 17:04:13

Odysseus
Member
Registered: 2009-02-15
Posts: 141

Re: Cleaning-optimizing arch-linux

After anon's suggestion, try:

pacman -Qei | awk '/^Name/ { name=$3 } /^Groups/ { if ( $3 != "base" && $3 != "base-devel" ) { print name } }'

That will show you every package you've explicitly installed. Except for packages belonging in the "base" and "base-devel" groups, the packages that were initially installed when you installed Arch.


I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.

Offline

#5 2010-01-17 18:41:14

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: Cleaning-optimizing arch-linux

Lets say I install a package with tons of dependencies and want to remove that package along with all the dependencies. How would I do that? I find that I have a lot of useless libraries installed as leftover dependencies.


How's my programming? Call 1-800-DEV-NULL

Offline

#6 2010-01-17 18:59:52

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Cleaning-optimizing arch-linux

To remove a package and any unused dependencies use:

pacman -Rs package_name

Offline

#7 2010-01-17 19:31:42

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: Cleaning-optimizing arch-linux

Thanks anonymous_user! I really got to start brushing up my pacman skills.


How's my programming? Call 1-800-DEV-NULL

Offline

#8 2010-01-17 20:31:06

slon
Member
Registered: 2009-12-28
Posts: 29

Re: Cleaning-optimizing arch-linux

And what about those unused .directories in /home like .wine .kdemod4 and huge /usr/ directory?

Offline

#9 2010-01-17 20:32:47

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Cleaning-optimizing arch-linux

If the folder/file was installed as part of the package then it should be removed when you uninstall. Also pacman doesn't remove any configuration files inside your home folder.

Last edited by anonymous_user (2010-01-17 20:33:22)

Offline

#10 2010-01-17 21:17:15

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Cleaning-optimizing arch-linux

anonymous_user wrote:

Also try:

pacman -Rsn $(pacman -Qdtq)

That can cause all sorts of problems. Life is much more simple to to run something like 'pacman -Qdtq > orphans', then go through the orphans file and find out if they actually are things that can be removed. For instance on my machine:

~ > pacman -Qdtq
cvs
gcc
happy
perl-digest-sha1
perl-mp3-info
perl-timedate
perl-unicode-string

gcc and happy are programs that I use daily. cvs is back on because I was working on something. The perl stuff probably got pulled in when I was playing with gnupod.

Offline

#11 2010-01-17 21:36:42

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Cleaning-optimizing arch-linux

And I just got rid of 700mb by doing a pacman -Q and going through everything... Tedious, but the system booted again wink


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#12 2010-01-18 06:59:50

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

Re: Cleaning-optimizing arch-linux

this is the way, i keep my system clean:

pacman -Qqet --> lists all explicitly installed packages
pacman -Qqdt --> lists all packages which are orphans
http://archlinux.spider007.net/pacman-f … unowned.sh --> this script lists all files which might be missing, corrupted packages and files which can't be assigned to any installed package
http://bbs.archlinux.org/viewtopic.php?id=51080&p=1

Offline

#13 2011-04-15 04:27:52

coolestgeek
Member
Registered: 2011-03-10
Posts: 1
Website

Re: Cleaning-optimizing arch-linux

sudo pacman -Q > installed.txt

Is good to output all installed programs into a .txt file for you to browse at your leisure.

Offline

#14 2011-04-15 04:44:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cleaning-optimizing arch-linux

coolestgeek: please don't necrobump threads:

https://wiki.archlinux.org/index.php/Fo … Bumping.27


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB