From SGOrava, 3 Weeks ago, written in Bash.
Embed
  1. pacman -Sl system | cut -d" " -f2 | xargs pacman -Si | grep -i "installed size" | cut -d: -f2 | sed "s/\s//;s/ //;s/B//;s/i//" | numfmt --from=iec | paste -sd+ - | sed "s/,/./" | bc | sed "s/\./,/" | numfmt --to=iec-i --