Just do:
$ sudo sh -c 'cat input_file | cut "-d " -f1 | xargs pacman -S'
or a simpler version:
$ awk '{print $1}' input_file | xargs pacman -S
or
$ sudo pacman -S $(awk '{print $1}' input_file)
Where input_file
contains all your packages to be installed, one to a line.
Word of caution:
As you undoubtedly know, Archlinux is a rolling release package, so specifying version to be installed is not recommended and means you could actually break dependencies and, ultimately, your system overall.
For that reason alone I cut away the version info in your package records in input_file
...
If you insists on a rolled back (i.e. "old") version of some package, you can roll back on Arch Linux, but I recommend you do that by hand, not in an automated way, only if you know exactly what you are getting into.
HTH.
apparmor
would be installed according to the list. I have KDE Plasma on Arch Linux (in a VM) withoutapparmor
.