Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
one liner to find the biggest installed packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2726
Location: Bay Area, CA

PostPosted: Fri Oct 06, 2006 4:11 am    Post subject: one liner to find the biggest installed packages Reply with quote

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
View user's profile Send private message
Dammital
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 189

PostPosted: Fri Oct 06, 2006 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
matc
n00b
n00b


Joined: 04 Aug 2005
Posts: 29

PostPosted: Mon Oct 09, 2006 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum