Skip to content

Instantly share code, notes, and snippets.

@xguse
Last active December 4, 2016 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xguse/5cb6a0ed87d264d3a70b to your computer and use it in GitHub Desktop.
Save xguse/5cb6a0ed87d264d3a70b to your computer and use it in GitHub Desktop.
pacman backup and restore commands
pacman -Qqe | grep -v "$(pacman -Qqm)" > pacman.lst
cat pacman.lst | xargs pacman -S --needed --noconfirm
========================
$ pacman -Qqe | grep -vx "$(pacman -Qqm)" > Packages
$ pacman -Qqm > Packages.aur
# cat Packages | xargs pacman -S --needed --noconfirm
# cat Packages.aur | xargs yaourt -S --needed --noconfirm
====================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment