2017年1月20日 星期五

[Archlinux] list all package in system & reinstall all package from file

list all package
pacman -Q > pacman.txt

reinstall all package from file
pacman -S --noconfirm $(cat /tmp/pacman-to-reinstall.tmp)

Reference:

0 意見:

張貼留言