Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Check which packages occupy most space
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
Nuteater
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 193
Location: Jyväskylä, Finland

PostPosted: Wed Jul 20, 2005 2:41 pm    Post subject: Check which packages occupy most space Reply with quote

In the interest of making your pet Gentoo a bit slimmer, besides running all those cleaner scripts you might occasionally want to check which packages are the worst space-hoggers in your system. I, for example, found two rather large font packages I didn't even use occupying nearly 100M of precious space -- unforgivable :wink:.

First you'll need a tool to measure the occupied space of a package. qsize is a nice small & fast utility for that purpose, so get it with
Code:
emerge portage-utils

if you haven't done so already. Portage-utils is currently masked with the ~arch keyword, so you might have to unmask it first with
Code:
echo "app-portage/portage-utils ~x86" >> /etc/portage/package.keywords
Remember to change your arch if you are not a x86 user!

After getting qsize, just fire up (as root)
Code:
qsize -ma | awk '{print $6" "$7"  "$1}' | sort -nr | head -n 30

to get a nice listing of the top30 space-hoggers installed on your system along with how many megabytes they are occupying (this might take a minute or three). Adjust the number parameter given to 'head' if you want a different top-listing, or remove the head bit entirely if you want to see all packages listed by size. If you see packages occupying more space they are worth, just emerge -C them - just make sure you don't remove python or other vital packages! :)
_________________
I am Nuteater, hear me roar.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Thu Jul 21, 2005 1:39 am    Post subject: Reply with quote

Very nice, thanks.
(/me has to learn how to use awk, sed, etc :? )

Top ten space hogs;
Code:
191 MB  sys-kernel/gentoo-sources-2.6.12-r6:
168 MB  app-office/openoffice-ximian-1.3.7:
141 MB  app-text/tetex-2.0.2-r5:
116 MB  x11-base/xorg-x11-6.8.99.14:
66 MB  dev-java/sun-jdk-1.4.2.06:
60 MB  x11-themes/gentoo-artwork-0.4:
60 MB  sys-devel/gcc-3.4.4:
54 MB  dev-libs/boost-1.31.0:
41 MB  sys-libs/glibc-2.3.5:
39 MB  www-client/mozilla-firefox-1.0.5:

I don't really use anything from gentoo-artwork, and most of the space is used up my different sizes of the same wallpapers.
Don't really need boost, either.
Can I do without tetex, though?

Others of note;
Code:
32 MB  dev-lang/ocaml-3.08.1:
30 MB  media-libs/win32codecs-20050216:
30 MB  media-gfx/gimp-print-4.2.7:
28 MB  media-gfx/gimp-2.2.6-r1:
20 MB  sys-devel/gcc-3.3.5-r1:

oc what?
Gimp-print is actually larger than the gimp itself? I've never even used the damn thing.

And gcc 3.4 is three times larger than 3.3. 8O

Anyway, thanks again.
Very informative.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Sat Jul 23, 2005 5:22 am    Post subject: Reply with quote

Quote:
And gcc 3.4 is three times larger than 3.3. 8O


make that 5 times!

Quote:
101 MB sys-devel/gcc-3.4.4:
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Jul 23, 2005 11:28 am    Post subject: Reply with quote

satanskin wrote:
Quote:
And gcc 3.4 is three times larger than 3.3. 8O


make that 5 times!

Quote:
101 MB sys-devel/gcc-3.4.4:

8O :o 8O

Lemme guess; -O3?
_________________
"You have to invite me in"
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