You are not logged in.

#1 2011-11-14 11:50:37

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

[SOLVED] effective way to clean my system?

I would like to sort my packages by size in descending order, see what their names are and their descriptions, and then delete them if I don't want them anymore. Anyway to do this in an efficient way other than sifting through "pacman -Q", picking a package, doing "pacman -Qi package" and then deciding to remove with "pacman -Rsc package"?

Thanks!

Last edited by awayand (2011-11-14 12:57:43)

Offline

#2 2011-11-14 12:06:47

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 663

Re: [SOLVED] effective way to clean my system?


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#3 2011-11-14 12:12:35

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [SOLVED] effective way to clean my system?

I use the following, though without description:

pacman -Qi | sed -n '/^Name[^:]*: \(.*\)/{s//\1 /;x};/^Installed[^:]*: \(.*\)/{s//\1/;H;x;s/\n//;p}' | sort -rnk2 | column -t

:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#4 2011-11-14 12:23:03

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

Re: [SOLVED] effective way to clean my system?

nice, thanks shark and bohoomil, I was able to get almost a gig worth of cruft thrown out. Is there a script that allows me to specify number of dependencies? For example, when I do "pacman -Rs package" or "pacman -Rc package", I run into innocent-sounding packages that pull in hundreds of megabytes worth of packages (essential ones, at that). I am wondering if I can ask through a script something like "give me all packages that pull in at maximum X packages as recursive-/cascading dependencies, so I can identify packages that are less likely to be needed...
Thanks!

Offline

#5 2011-11-14 12:52:13

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] effective way to clean my system?

Offline

#6 2011-11-14 12:57:24

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

Re: [SOLVED] effective way to clean my system?

thanks for that, hokasch. pacgraph is pretty nice, I used a combination of it, bohomil's script and shark's suggestion, along with "pacman -Qt" to clean up my system. Only problem was removing "initscripts". woops. But fortunately the rc.conf was .pacsaved.

Offline

Board footer

Powered by FluxBB