dotfiles/generate_pacman.lst.sh

12 lines
434 B
Bash
Raw Normal View History

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-18 02:03:39 +00:00
# `pacman -S --needed --noconfirm $(cat pacman.lst) and`
# `yay -S --needed --noconfirm $(cat pacman_aur.lst)`
2021-01-12 19:56:08 +00:00
# (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