diff options
-rw-r--r-- | pacman.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -26,3 +26,15 @@ Might need to update mirrorlist first if outdated: (this might put it in /etc/pacman.d/mirrorlist.pacnew, uncomment wanted mirrors there and remove the .pacnew suffix) + +## Query (-Q) + +By itself, outputs all installed packages. + +List packages by size: + + pacman -Qi | egrep '^(Name|Installed)' \ + | cut -f2 -d':' | tr '\n' ' ' \ + | sed 's/B/B\n/g' | sed -e 's/^\s\+//' \ + | sed -e 's/ M/M/' -e 's/ K/K/' -e 's/ B/B/' \ + | sort -hk 2 |