View previous topic :: View next topic |
Author |
Message |
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Fri Oct 06, 2006 4:11 am Post subject: one liner to find the biggest installed packages |
|
|
just to help you figure the junk in the trunk...
Code: | for i in `qlist -CI`;do q -C size $i;done|awk '{print $6,$1}' | sort -n | needs portage-utils. |
|
Back to top |
|
|
Dammital Apprentice
Joined: 05 Nov 2004 Posts: 189
|
Posted: Fri Oct 06, 2006 3:31 pm Post subject: |
|
|
Nice little tip, thanks. qlist and q both yield duplicates, so adding uniq to the pipe fixes this: Code: | for i in `qlist -CI`;do q -C size $i;done|awk '{print $6,$1}' | sort -n | uniq |
|
|
Back to top |
|
|
matc n00b
Joined: 04 Aug 2005 Posts: 29
|
Posted: Mon Oct 09, 2006 10:24 pm Post subject: |
|
|
It runs a lot faster for me if I pipe the output of qlist to "sort -u" before passing it to qsize, e.g.
Code: | for i in $(qlist -CI | sort -u) ; do qsize -C $i ; done | awk '{print $6,$1}' | sort -nu |
|
|
Back to top |
|
|
|