In Arch Linux I want to get a list of the packages installed and install all packages from a file. But I want to include packages from the AUR.

With pacman I can get the list of installed packages:

$ pacman -Qqe > pkglist.txt

And install packages from a list:

# pacman -S --needed - < pkglist.txt
`` `