aboutsummarylogtreecommitdiffstats
path: root/list-installed-packages.hook
blob: a227f7aec8a3fdaca1c72bc1926b816427888fc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
[Trigger]
Operation = Install
Operation = Remove
Type = Package
Target = *

[Action]
Description = Update packages lists in /etc
When = PostTransaction
# pacman -Qqe : List explicitly installed packages name. --native for pacman packages, --foreign for others (like from the AUR)
Exec = /bin/sh -c '/usr/bin/pacman -Qqe  --native > /etc/packages-list-native.txt && /usr/bin/pacman -Qqe --foreign > /etc/packages-list-foreign.txt'