Skip to content

What are the largest packages installed on your system?

I'm generally the sort that keeps jumping between the "Let's remove everything unneccesary!" train and the "...but I need that Algol compiler, I'll use it someday!" train. In helping to feed this habit, I made a script that lists packages organized by installed size, allowing me to convince myself that I'm being productive. It prints out installed packages from smallest to largest (printing the size in bytes).

#!/bin/sh
set -e

# Requiruements:
#   pacman
#   coreutils
#   sed
#   bc

pipe=$(mktemp -d)
trap 'rm -rf "$pipe"' 0 2 3 15
mkfifo "${pipe}/names"

pacman -Qi \
    | sed -n -e "
        /^Installed Size/ {
            # Clean up the noise.
            s/Installed Size//
            s/://
            s/\s//g

            # Expand item sizes.
            s/KiB/*1024/
            s/MiB/*1048576/
            s/GiB/*1073741824/
            s/B//
            p
        }
        /^Name/ {
            s/Name//
            s/://
            s/\s//g

            # Queue the names for later.
            w ${pipe}/names
        }
    " \
    | bc \
    | paste - "${pipe}/names" \
    | sort -g

I'll leave a note here that, despite being really simple at the end, making the thing was a giant mess of hacking away at regular expressions, with many intermixed calls to grep, awk, and sed. Figuring out the named pipe was hell within itself.

That said, the largest packages I have installed, those coming in at over 100 megabytes:

104637399.04    gimp
110593310.72    gcc-libs
119632035.84    webkit2gtk
133515182.08    emacs
138883891.20    gcc
151204659.20    python
169995141.12    firefox-developer-edition
172574638.08    chromium
214077276.16    fpc
312056217.60    linux-firmware
403429130.24    texlive-core
496605593.60    wine-staging
535360962.56    qemu-arch-extra
1089984266.24   texlive-fontsextra

...these packages together take upwards of 4GB of space. gimp is installed since I can't get anything simpler to do what I want for the 2 times a year I need to put together some photos; webkit2gtk comes in for Luakit (in the AUR), a lighter-weight web-browser with Vi-style keybindings; emacs and gcc for programming; firefox-developer-edition used as my main browser, developer edition used instead of Firefox thanks to changing addon compatibility some months ago; chromium comes in thanks to Netflix (I also have Links and Dillo, so make that 5 web-browsers explicitly installed); fpc is the Free Pascal compiler, which I play around with from time-to-time (I'm surpised how much space it takes); texlive-core comes mainly for MMIX (in the AUR, an assembly programming tool to play around with some day) and some documentation generation; wine-staging is here for linvst and those games that I can't run on a PS2; and qemu-arch-extra is to play around with assembly language for even more platforms. Everything else is a dependency.

If you just want to know other weird packages I have installed -- mksh is my primary shell, I've also got programming tools for the J programming language, Forth, and Oberon sitting around, and the Amsterdam Compiler Kit (which includes Basic, Modula-2, and Occam support). Hell, I even have the BCPL distribution, even though it isn't packaged, and a book on Ada (Ada Distilled) open on my other monitor's workspace.

The primary takeaway is that I'm addicted to installing compilers and not using them. Please send help.

44 points56 comments
Open on Reddit
About this post
Posted
Archived
Score
44 · 100% up
Kind
Text
ID
9ef71l

61 comments

I'll leave a note here that, despite being really simple at the end, making the thing was a giant mess of hacking away at regular expressions, with many intermixed calls to grep, awk, and sed. Figuring out the named pipe was hell within itself.

... why not just use extra/expac? :-)

$ expac '%m %n' | sort -n | tail
110807040 argyllcms
119632896 webkit2gtk                                                                                                                                                                                             
128582656 electron
130413568 qt5-webengine
138078208 inkscape
138878976 gcc
151208960 python
220808192 ghc-libs
242613248 noto-fonts-extra
312055808 linux-firmware
46 points

Good idea. I'm going to go scream into a pillow now.

60 points

I understand that feeling so fuckin much, especially since I experinced it just yesterday. Agh, sorry dude.

6 points

I prefer having "human readable sizes":
$ expac -HM '%m %n' | sort -h | tail or
$ expac '%m %n' | sort -n | tail | numfmt --to=iec

234M stellarium
237M mono
239M spotify
245M atom
285M noto-fonts-cjk
298M linux-firmware
385M texlive-core
416M go
451M wine
1.1G texlive-fontsextra
17 points

I prefer having mine aligned

$ expac -HM '%m|%n' | sort -h | tail | column -s '|' -t

144.87 MiB  minecraft-launcher
155.87 MiB  firefox-nightly
191.72 MiB  visual-studio-code-bin
208.81 MiB  google-earth-pro
284.32 MiB  noto-fonts-cjk
297.60 MiB  linux-firmware
309.59 MiB  obsidian-icon-theme
334.26 MiB  valgrind
389.32 MiB  libreoffice-still
415.51 MiB  go
4 points

This can also be achieved using yay -Ps (only if you have yay installed, of course).

Ten biggest packages:
mathematica: 9.2 GiB
intel-mkl: 2.3 GiB
android-studio: 1.3 GiB
texlive-fontsextra: 1.0 GiB
geant4-realsurfacedata: 760.8 MiB
ttf-google-fonts-git: 710.6 MiB
onlyoffice-bin: 697.8 MiB
qt5-doc: 531.4 MiB
wine-staging-nine: 474.0 MiB
go-pie: 431.1 MiB
25 points

I'm usually cracking open smaller packages, so I actually run auracle as an AUR helper. yay -Ps will work a lot better than my script for most people, I imagine.

...wait a second. 9.2 GiB for Mathematica? Does it come with a copy of GTA V?

18 points

9.2 GiB for Mathematica? Does it come with a copy of GTA V?

If it does, that's some serious/impossible compression.

My GTA V install is 79.8GB. That game is huge.

I get that you are being sarcastic and all....

3 points

Wait, you can install Mathematica on Arch?

2 points

Mathematica's installer doesn't care what Linux you're on, so you could probably run it on Arch unmodified. But then it woudn't be integrated with the package manager.

So there is a package on the AUR that wraps the installer and makes it a proper pacman package. You need to provide the .sh installer you obtained from Wolfram yourself though.

1 points
Ten biggest packages:
clang-svn: 527.6 MiB
qemu-arch-extra: 510.6 MiB
wine: 450.1 MiB
go: 415.5 MiB
libreoffice-fresh: 376.0 MiB
valgrind: 334.3 MiB
linux-firmware: 297.6 MiB
rust: 242.3 MiB
mono: 236.4 MiB
google-chrome-beta: 192.3 MiB
5 points

I sure hope you aren't building Clang locally. Builds on that scale are pretty much the only thing stopping me from running Gentoo on anything more than my dumping-ground of a laptop.

3 points

Your computer is too small or you haven't enable multi threaded make. The Linux Kernel is 17 minutes on a Haswell E3-1245 @ 32GB RAM and /tmp build.

800.24 MiB  gcc49-multilib
782.18 MiB  hadoop
553.14 MiB  jdk
421.21 MiB  wine
392.19 MiB  eclipse-reporting
380.79 MiB  texlive-core
375.96 MiB  libreoffice-fresh
361.80 MiB  jdk8
334.26 MiB  valgrind
332.23 MiB  mame

Laptop has a 1TB. Desktop has quad 3TB drives in RAID. Space is of no concern.

0 points

For me:

 qt5-doc: 531.4 MiB
 wine-staging-nine: 474.0 MiB
 go: 415.5 MiB
 libreoffice-fresh: 376.0 MiB
 valgrind: 334.3 MiB
 linux-firmware: 297.6 MiB
 blender: 246.1 MiB
 spotify: 238.8 MiB
 teamspeak3: 166.4 MiB
 qt5-examples: 163.7 MiB
5 points

The command I used:

LANG=C pacman -Qi | awk -F: '$1~/^Name / { name=$2 } $1~/^Installed Size / { gsub(/ /, ""); size=$2; print size, name }' | sort -hr | head -n 10 | column -t

10 biggest packages:

2,22GiB     android-ndk
1704,90MiB  nerd-fonts-complete
1317,02MiB  android-studio
780,56MiB   vmware-workstation
737,35MiB   intellij-idea-community-edition
718,49MiB   mingw-w64-gcc
560,98MiB   supertuxkart
531,36MiB   qt5-doc
515,67MiB   rfc
450,07MiB   wine
4 points

sort -hr

Another reason to scream in my pillow -- half of what I did was to pipe unit conversions through bc so I could sort the numbers, but sort could've accepted the units anyways. At the very least, I learned a good chunk of sed in the process.

Nice work!

6 points
1300.09 MiB  android-studio
1039.49 MiB  texlive-fontsextra
700.35 MiB   lazarus
473.60 MiB   wine-staging
431.08 MiB   go-pie
384.74 MiB   texlive-core
378.67 MiB   stremio-beta
375.96 MiB   libreoffice-fresh
297.60 MiB   linux-firmware
297.44 MiB   lwks

(thanks to u/Pork-epik for the script since OPs didn't work for me)

3 points
unknown author1 hidden

Deleted before we saved it.

2 points

I have addons in StremIO for thepiratebay, y2ag, popcorn time and a few more. It fetches the movies I search for from these addons (also has a netflix-like starting site where I can see popular movies etc.). I really love it since I watch extremely often movies / TV shows. Would be great if it was Open Source though.

1 points

Here's my output.

Ten biggest packages:
anaconda: 3.1 GiB
cuda: 2.5 GiB
android-studio: 1.3 GiB
intellij-idea-ultimate-edition: 1.1 GiB
cudnn: 544.3 MiB
wine: 450.1 MiB
texlive-core: 384.7 MiB
libreoffice-fresh: 376.0 MiB
rstudio-desktop-bin: 320.9 MiB
linux-firmware: 297.6 MiB

Like a couple of people here, I had qt5-doc taking a ton of space (~500mb). Got rid of it, hopefully, it's not a problem later on.

2 points

I also dropped qt5-doc and qt5-examples. I don't think there should be any issues beyond not having them stored locally.

​

1039.49 MiB  texlive-fontsextra
450.07 MiB   wine
384.74 MiB   texlive-core
375.96 MiB   libreoffice-fresh
315.84 MiB   emos
297.60 MiB   linux-firmware
209.46 MiB   magics++
186.85 MiB   google-chrome
169.60 MiB   jre10-openjdk-headless
160.14 MiB   boost

​

1 points
Ten biggest packages:
wine-staging: 446.1 MiB
go: 415.5 MiB
libreoffice-fresh: 376.0 MiB
linux-firmware: 297.6 MiB
atom: 244.3 MiB
streamlink-twitch-gui: 169.5 MiB
chromium: 164.6 MiB
python: 144.2 MiB
thunderbird: 134.6 MiB
gcc: 132.4 MiB
2 points

Ten biggest packages:

wine-staging: 473.6 MiB

go: 415.5 MiB

valgrind: 334.3 MiB

linux-firmware: 297.6 MiB

cemu: 291.4 MiB

spotify: 238.9 MiB

mono: 236.4 MiB

llvm: 170.4 MiB

boost: 160.1 MiB

discord: 146.7 MiB

2 points

Well this is me. Im pretty sure some are missing from this (SU2, SALOME, Android studio...) but for those reported I have

Ten biggest packages:
0ad-data: 2.0 GiB
android-studio: 1.1 GiB
texlive-fontsextra: 1.0 GiB
lazarus: 700.4 MiB
paraview-bin: 573.9 MiB
qemu-arch-extra: 510.6 MiB
wine-staging-nine: 474.0 MiB
oracle-sqldeveloper: 430.9 MiB
go: 415.5 MiB
openfoam: 412.3 MiB

Edit: derped on android-studio

2 points
Ten biggest packages:
firewatch-gog: 3.8 GiB
cuda: 2.5 GiB
nerd-fonts-complete: 1.7 GiB
android-studio-canary: 1.5 GiB
texlive-fontsextra: 1.0 GiB
qt5-doc: 531.4 MiB
wine-staging: 473.6 MiB
gog-stardew-valley: 463.8 MiB
go: 415.5 MiB
texlive-core: 384.7 MiB

Pretty much what I expected: games, TeX Live, Nerd Fonts, and Android Studio.

2 points

Here are my ten biggest installed packages:

texlive-fontsextra: 1.0 GiB
go: 415.5 MiB
texlive-core: 384.7 MiB
libreoffice-fresh: 376.0 MiB
valgrind: 334.3 MiB
rstudio-desktop-bin: 320.9 MiB
linux-firmware: 297.6 MiB
processing: 263.6 MiB
rust-docs: 248.8 MiB
atom: 244.3 MiB

Since I have separated partitions for the core system and my home directory, I don't get many advantages if I clean up my system partition.

2 points

The largest package around my computer is my own!

​

Ah... I mean to say... I tend to package up games and stuff myself, to make managing them easier. There's only so much room on the SSD, and the kids sometimes like the same games as I do, so we just pull them off the NAS and install them with pacman - it's much easier to automate than trying to remember all the steps to set up a wine prefix and such. Right now it looks like the biggest is Spore, at 5.8 GiB. My daughter had always wanted to play it.

2 points
go: 415.5 MiB
linux-firmware: 297.6 MiB
arm-none-eabi-gcc: 268.1 MiB
rust: 242.3 MiB
chromium-vaapi-bin: 164.8 MiB
discord: 146.7 MiB
python: 144.2 MiB
firefox: 139.6 MiB
bitwarden-bin: 136.2 MiB
gcc: 132.4 MiB
1 points

Ten biggest packages:

texlive-fontsextra: 1.0 GiB
pycharm-professional: 713.1 MiB
jdk: 553.2 MiB
wine: 450.1 MiB
go: 415.5 MiB
viber: 408.5 MiB
texlive-core: 384.7 MiB
libreoffice-fresh: 376.0 MiB
rstudio-desktop-bin: 319.9 MiB
linux-firmware: 297.6 MiB

I can probably drop tex, jdk (as I'm not doing java development anymore). Wish Viber had a web version so I could drop it

1 points
70M ansible
73M python2
106M linux-lts
106M gcc-libs
133M gcc
145M python
195M ombi
230M plex-media-server-plexpass
237M mono
297M linux-firmware

and

58M perl
59M mesa
61M llvm-libs
67M linux
73M python2
106M gcc-libs
133M gcc
145M python
230M plex-media-server-plexpass
297M linux-firmware

Neither machine tops linux-firmware.

EDIT: Oh yeah. Forgot one. This one is inside of a WSL install on Windows 10, which is why there is no Linux.

31M binutils
35M git
36M icu
45M guile
46M glibc
58M perl
70M ansible
106M gcc-libs
133M gcc
145M python 
1 points
Ten Biggest Packages (Smallest-Biggest):
146.70 MiB discord
164.58 MiB chromium
169.47 MiB mariadb
223.35 MiB jre
236.43 MiB mono
238.89 MiB spotify
265.59 MiB mullvad-vpn
297.60 MiB linux-firmware
450.07 MiB wine
539.85 MiB atom-editor-bin

​

1 points

I may as well get in on this as well...

Yay version v8.1115
===========================================
Total installed packages: 1526
Total foreign installed packages: 43
Explicitly installed packages: 490
Total Size occupied by packages: 9.8 GiB
===========================================
Ten biggest packages:
qemu-arch-extra: 510.6 MiB
wine-staging-pba: 473.8 MiB
go: 415.5 MiB
linux-firmware: 297.6 MiB
arm-none-eabi-gcc: 268.1 MiB
rust: 242.3 MiB
jre10-openjdk-headless: 169.6 MiB
mariadb: 169.5 MiB
boost: 160.1 MiB
dropbox: 153.2 MiB
===========================================
1 points
unknown author

Deleted before we saved it.

1 points

132.45 MiB gcc

134.55 MiB thunderbird

144.20 MiB python

146.70 MiB discord

160.14 MiB boost

162.12 MiB firefox-developer-edition

206.14 MiB docker

244.30 MiB atom

297.60 MiB linux-firmware

450.07 MiB wine

1 points

The -H flag for expac puts GIMP as slightly less than 100 MB since it uses SI units, but that's also where I'll start. This doesn't count any of the Steam games I have installed.

$ expac -H M '%n: %m' | sort -n -k 2 
gimp: 99.79 MiB
virtualbox: 103.34 MiB
gcc-libs: 105.47 MiB
argyllcms: 105.67 MiB
webkit2gtk: 114.09 MiB
qt5-webengine: 124.37 MiB
opencv: 131.82 MiB
gcc: 132.45 MiB
firefox: 139.63 MiB
python: 144.20 MiB
digikam: 152.62 MiB
dropbox: 153.25 MiB
boost: 160.14 MiB
teamspeak3: 166.45 MiB
mariadb: 169.47 MiB
mono: 236.43 MiB
linux-firmware: 297.60 MiB
gitkraken: 351.99 MiB
libreoffice-fresh: 375.96 MiB
texlive-core: 384.74 MiB
go: 415.51 MiB
spring-1944: 532.19 MiB
1 points

Everyone keeps contributing different ways to compute this, here's how I do:

du -s /var/cache/pacman/pkg/*|sort -n 

Top 10 (large to small):

  • tex
  • libreoffice
  • wine gecko
  • jdk 10
  • linux firmware
  • linux
  • rust (I don't even use it!)
  • krita
  • wine mono
  • normal mono
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.