From 66cbd6d36ede6cbabc5f1425487aba09408ce906 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 18 May 2019 03:48:39 +0200 Subject: [PATCH] Add a script that lists packages sorted by install date --- scripts/list_packages_sorted_by_install_date.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/list_packages_sorted_by_install_date.sh diff --git a/scripts/list_packages_sorted_by_install_date.sh b/scripts/list_packages_sorted_by_install_date.sh new file mode 100644 index 0000000..dcf7a97 --- /dev/null +++ b/scripts/list_packages_sorted_by_install_date.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for i in $(pacman -Qq) +do + grep "\[ALPM\] installed $i" /var/log/pacman.log +done | \ + sort -u | \ + sed -e 's/\[ALPM\] installed //' -e 's/(.*$//'