2021-01-12 15:31:16 +00:00
|
|
|
#!/bin/bash
|
2021-01-12 19:56:08 +00:00
|
|
|
# Exports all installed packages to pacman.lst. One for official
|
|
|
|
# packages, and another for any packages that come from AUR.
|
|
|
|
|
2021-01-12 15:31:16 +00:00
|
|
|
# This can be used as a reference, or to reinstall packages with:
|
2021-01-12 19:56:08 +00:00
|
|
|
# `cat pacman.lst | xargs pacman -S --needed --noconfirm` and
|
|
|
|
# `cat pacman_aur.lst | xargs yay -S --needed --noconfirm`
|
|
|
|
# (assuming yay is your AUR helper)
|
2021-01-12 15:31:16 +00:00
|
|
|
|
|
|
|
pacman -Qqe | grep -v "$(pacman -Qqm)" > pacman.lst
|
2021-01-12 19:56:08 +00:00
|
|
|
pacman -Qqm > pacman_aur.lst
|