Export…

pacman -Qqe | grep -Fvx "$(pacman -Qqm)" > ./fatty-apps.txt

Import…

xargs pacman -S --needed --noconfirm < ./fatty-apps.txt