View previous topic :: View next topic |
Author |
Message |
Nuteater Apprentice
Joined: 25 Sep 2003 Posts: 193 Location: Jyväskylä, Finland
|
Posted: Wed Jul 20, 2005 2:41 pm Post subject: Check which packages occupy most space |
|
|
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 .
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 |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Jul 21, 2005 1:39 am Post subject: |
|
|
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.
Anyway, thanks again.
Very informative. _________________ "You have to invite me in" |
|
Back to top |
|
|
satanskin Guru
Joined: 25 Apr 2005 Posts: 353
|
Posted: Sat Jul 23, 2005 5:22 am Post subject: |
|
|
Quote: | And gcc 3.4 is three times larger than 3.3. |
make that 5 times!
Quote: | 101 MB sys-devel/gcc-3.4.4:
|
|
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Jul 23, 2005 11:28 am Post subject: |
|
|
satanskin wrote: | Quote: | And gcc 3.4 is three times larger than 3.3. |
make that 5 times!
Quote: | 101 MB sys-devel/gcc-3.4.4:
|
|
Lemme guess; -O3? _________________ "You have to invite me in" |
|
Back to top |
|
|
|
|
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
|
|