@fedops
Ehhh…
$ pacman -Qi evolution $(pacman -Qi evolution{,-data-server} |grep ^Depends.On |cut -f2 -d:) |grep -i ^installed.size |sed -E 's/ [0-9]{1,3}\.[0-9]{2} KiB/ 1 MiB/g' |awk '{foo+=$4} END {print foo" MiB"}'
478.72 MiB
$ pacman -Si thunderbird $(pacman -Si thunderbird |grep ^Depends.On |cut -f2 -d: |sed 's/=[^ ]*//g') |grep -i ^installed.size |sed -E 's/ [0-9]{1,3}\.[0-9]{2} KiB/ 1 MiB/g' |awk '{foo+=$4} END {print foo" MiB"}'
[omittiing random "package asdf.so not found"]
34104.9 MiB