Backup/Restore pacman & yaourt packages list

Read Time:17 Second

Arch linux

Backup pacman package list

pacman -Qqet | grep -v "$(pacman -Qqg base)" | grep -v "$(pacman -Qqm)" > pacman-packages.txt


Restore pacman packageĀ 

pacman -S --needed $(cat pacman-packages.txt)


Backup yaourt package list

pacman -Qm > yaourt-packages.txt


Backup yaourt package

yaourt -S --needed --noconfirm $(cat yaourt-packages.txt)



Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.