-
-
Save jfernandz/47a208f964344d9f32391c725b9fadbb to your computer and use it in GitHub Desktop.
List installed Arch Linux packages in descending order of size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for pkg in `pacman -Qq`; do | |
size=` | |
LC_ALL=C pacman -Qi $pkg | | |
grep '^Installed Size' | | |
awk -F '[[:space:]]+:[[:space:]]+' '{print $2}' | |
` | |
echo "$size - $pkg" | |
done | | |
sort -hr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment