Skip to content

Instantly share code, notes, and snippets.

@AlexKMDev
Last active December 17, 2015 09:48
Show Gist options
  • Save AlexKMDev/5589909 to your computer and use it in GitHub Desktop.
Save AlexKMDev/5589909 to your computer and use it in GitHub Desktop.
restore packages installed from pacman in new copy of Arch Linux
1. comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt
2. pacman -S $(< pkglist.txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment