You are not logged in.
Pages: 1
..to list all the installed packages sorted by size??
On Mandrake there was sth like:
rpm -qa --queryformat "%-30{NAME} %-15{INSTALLTIME} %-35{INSTALLTIME:date} %{SIZE}n"|sort -n +1
Maybe it can be translated into arch's language;)[/code]
Offline
..to list all the installed packages sorted by size??
AFAIK there is not 1 command to do this. However the following script does the trick:
(for p in `pacman -Q | cut -d ' ' -f 1`; do echo -n "$p "; pacman -Qi $p | grep '^Size' | cut -d ' ' -f 13; done ) | sort -n -t ' ' -k 2 -r
Remove the last -r if you want the smallest packages first
Offline
It works like charm:)
Whoever wrote this script must be skillful. 8)
Offline
"Made in homebrew(tm)"
Thanks for your comment. To be honest, with some experience, you will see that it is not that hard to write such one-liners.
It is much harder to write big code that you still keep maintainable, readable, simple. This is really hard - and very interesting too.
Offline
the magic of unix filters...
Offline
Pages: 1