You are not logged in.
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
Try this script from AUR:
http://aur.archlinux.org/packages.php?ID=43779
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
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
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
Offline
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