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.
About this post
- Posted
- Archived
- Score
- 44 · 100% up
- Kind
- Text
- ID
- 9ef71l
61 comments
... why not just use extra/expac? :-)
Good idea. I'm going to go scream into a pillow now.
It happens man. Just take joy in the journey and in your new knowledge.
I understand that feeling so fuckin much, especially since I experinced it just yesterday. Agh, sorry dude.
Reinventing the... nah, OPs depressed enough.
I prefer having "human readable sizes":
$ expac -HM '%m %n' | sort -h | tailor$ expac '%m %n' | sort -n | tail | numfmt --to=iecI prefer having mine aligned
$ expac -HM '%m|%n' | sort -h | tail | column -s '|' -tThis can also be achieved using
yay -Ps(only if you have yay installed, of course).I'm usually cracking open smaller packages, so I actually run
auracleas an AUR helper.yay -Pswill 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?
My haphazard guess is that a large chunk of that might be documentation. I remember MSDN taking up several GBs of space -- back then, the choice was between precious disk space and having to read them online over dial-up :P
The PKGBUILD seems to agree on that: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mathematica&id=1a5f949c89810814d212cf49e2754bf6f317f727#n86
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....
Wait, you can install Mathematica on Arch?
https://aur.archlinux.org/packages/mathematica/
They have a Linux version on their website.
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.
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.
Nope. Using the mesa-git repo https://wiki.archlinux.org/index.php/unofficial_user_repositories#mesa-git
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.
Laptop has a 1TB. Desktop has quad 3TB drives in RAID. Space is of no concern.
For me:
The command I used:
10 biggest packages:
Another reason to scream in my pillow -- half of what I did was to pipe unit conversions through
bcso I could sort the numbers, butsortcould've accepted the units anyways. At the very least, I learned a good chunk ofsedin the process.Nice work!
(thanks to u/Pork-epik for the script since OPs didn't work for me)
Deleted before we saved it.
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.
Here's my output.
Like a couple of people here, I had
qt5-doctaking a ton of space (~500mb). Got rid of it, hopefully, it's not a problem later on.I also dropped qt5-doc and qt5-examples. I don't think there should be any issues beyond not having them stored locally.
Factorio probably. Then maybe some electron/node stuff.
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
Well this is me. Im pretty sure some are missing from this (SU2, SALOME,
Android studio...) but for those reported I haveEdit: derped on android-studio
Pretty much what I expected: games, TeX Live, Nerd Fonts, and Android Studio.
Here are my ten biggest installed packages:
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.
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.
Matlab, that i installed from a 7.8 gb tarball, with 15 GB
Ten biggest packages:
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
http://kmkeen.com/pacgraph/
and
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.
I may as well get in on this as well...
Deleted before we saved it.
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
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.
Everyone keeps contributing different ways to compute this, here's how I do:
Top 10 (large to small):