This time I show you a very simple way to know which is the installed package that weighs the most on our computer. We open a terminal and put:
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}' | tail -n 10
In my case this has been the result:
I knew ... that Google Chrome 15 is the heaviest (101 MB):
neji @ Maq2: ~ $ sudo dpkg-query –show –showformat = '$ {Package; -50} \ t $ {Installed-Size} \ n' | sort -k 2 -n | grep -v deinstall | awk '{printf "% .3f MB \ t% s \ n", $ 2 / (1024), $ 1}' | tail -n 10
35.000 MB gimp-data
35.613 MB libgl1-mesa-dri
40.965 MB smbclient
42.461 MB libobasis3.5-core01
42.758 MB libobasis3.5-core06
46.039 MB libobasis3.5-core05
74.766 MB linux-image-2.6.32-5-686
76.391 MB openjdk-6-jre-headless
81.645 MB libobasis3.5-core04
101.613 MB google-chrome-stable
then they talk about Chrome that light browser… .. not even Midori xD
Chrome? o_O
Why not Chromium, or SRWare Iron?
I have ubuntu-docs weighing 257.898 MB
I don't know what it will be hahaha.
Mine:
77.897 MB linux-image-3.2.0-3-686-pae
77.920 MB linux-image-3.2.0-2-686-pae
77.931 MB openjdk-6-jre-headless
78.112 MB libwine
85.585 MB chromium
86.858 MB libgl1-mesa-dri
94.574 MB openarena-081-textures
110.528 MB kdewallpapers
126.142 MB libreoffice-core
147.625 MB supertuxkart-data
go to chromium is 20 or 25 md lighter XD
39.922 MB gimp-help-en
41.141 MB smbclient
41.152 MB gimp-data
51.248 MB assaultcube-data
77.915 MB linux-image-3.2.0-3-686-pae
77.920 MB linux-image-3.2.0-2-686-pae
77.931 MB openjdk-6-jre-headless
78.112 MB libwine
85.585 MB chromium
86.858 MB libgl1-mesa-dri
And mine
53.540 MB linux-headers-3.2.0-23
53.614 MB linux-headers-3.2.0-26
53.617 MB linux-headers-3.2.0-27
53.626 MB linux-headers-3.2.0-29
76.225 MB chromium-browser
77.853 MB openjdk-6-jre-headless
102.879 MB libreoffice-core
107.102 MB linux-image-3.2.0-26-generic
107.413 MB linux-image-3.2.0-27-generic
107.433 MB linux-image-3.2.0-29-generic
And that linux image that comes out (linux-image-3.2.0-3-686-pae) ?? Is it a picture of a penguin or something like that ??? I'm going to delete it and see what happens…. O_O hehe
Thanks for the tip, my .bash_aliases has grown 🙂
LOL and then they say that Linux is useless because it does not start and that it is very difficult to use.
XD
Go ahead, delete it, but then don't come saying that Linux is bad and that's why you go to Windows xD xD
And to do something similar in Arch?
77.563 MB inkscape
79.934 MB ia32-libs
80.437 MB openjdk-7-jre-headless
84.177 MB fonts-horai-umefont
86.071 MB libgl1-mesa-dri
86.753 MB chromium
86.858 MB libgl1-mesa-dri
102.465 MB linux-image-3.2.0-3-amd64
147.276 MB libreoffice-core
390.499 MB texlive-fonts-extra
if I like to have a lot of fonts hehe
78.125 MB teamviewer7
79.934 MB ia32-libs
80.437 MB openjdk-7-jre-headless
84.639 MB chromium
86.071 MB libgl1-mesa-dri
102.446 MB linux-image-3.2.0-2-amd64
102.465 MB linux-image-3.2.0-3-amd64
116.326 MB unknown-horizons
147.276 MB libreoffice-core
147.625 MB supertuxkart-data
Interesting. I tried modifying the command to order from highest to lowest, but had some difficulty keeping the decimals and simultaneously ordering correctly, so I finally used this variant (which should round off automatically):
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%03d MB \t %s\n", $2/(1024), $1}' | tail -n 10 | sort -r
In my LMDE this produces this result:
105 MB libreoffice-core
086 MB libgl1-mesa-dri
077 MB openjdk-6-jre-headless
076 MB linux-image-3.2.0-2-486
064 MB w32codecs
041 MB mint-x-icons
037 MB libreoffice-common
033 MB gimp-data
032 MB freepats
029 MB mint-backgrounds-lisa-extra
Anyone come up with a variant that orders descending correctly and keeps the decimals?
I answer to myself (realized that it was not necessary to invoke sort twice):
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -nr | grep -v deinstall | awk '{printf "%3.3f MB \t %s\n", $2/(1024), $1}' | head -n 10
interesting
and how ready for example, all the packages installed from the deb-multimedia repositories?