Recover installed packages for pacman.log

This commit is contained in:
lhark 2019-12-26 02:25:32 +01:00
parent c632e7e76e
commit 9c7cc94083

2
how_to
View file

@ -51,6 +51,8 @@ pacman :
-Rns <> Remove program, its unused dependencies, and config files
-Qi <> Package information
-Fo <file> Which package the file belongs to
Recover installed packages from /var/log/pacman.log
(awk '$3 ~ /installed/{print $4}' /var/log/pacman.log | sort | uniq; sed -En 's@.*/home/lhark/aur/(.*)/.*@\1@p' /var/log/pacman.log) | sort | uniq -u > package-list
ABS : (Arch Build System)
pacman -S abs