From e2c550919a4fba4cecfdc22f5a8790f9ae5d76bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 5 Sep 2024 14:40:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(pacman):=20change=20hook?= =?UTF-8?q?=20to=20list=20packages=20without=20the=20version=20number?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/pacman/hooks/50-pacman-list.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/pacman/hooks/50-pacman-list.hook b/.config/pacman/hooks/50-pacman-list.hook index 13247081..9dacef5b 100644 --- a/.config/pacman/hooks/50-pacman-list.hook +++ b/.config/pacman/hooks/50-pacman-list.hook @@ -8,4 +8,4 @@ Target = * [Action] Description = Create a backup list of all installed packages When = PostTransaction -Exec = /bin/sh -c "pacman -Qme > /home/matt/.config/pacman/aur-packages.txt && pacman -Qne > /home/matt/.config/pacman/arch-packages.txt" +Exec = /bin/sh -c "pacman -Qme | awk '{ print $1 }' > /home/matt/.config/pacman/aur-packages.txt && pacman -Qne | awk '{ print $1 }' > /home/matt/.config/pacman/arch-packages.txt"