about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README1
-rwxr-xr-xxilog4
2 files changed, 5 insertions, 0 deletions
diff --git a/README b/README
index ba67bdc..e0bdfe3 100644
--- a/README
+++ b/README
@@ -16,6 +16,7 @@ https://github.com/voidlinux/xbps
   xgrep PATTERN PKGS... - search files limited to XBPS package contents
   xhog - list installed XBPS packages ordered by size
   xi PKGS... - like xbps-install -S, but take cwd repo and sudo/su into account
+  xilog [PATTERN] - list installed packages by install-date
   xlg PKG - open short commit log for XBPS template
   xlint TEMPLATE - scan XBPS template for common mistakes
   xlocate [-u | PATTERN] - locate files in all XBPS packages
diff --git a/xilog b/xilog
new file mode 100755
index 0000000..586f173
--- /dev/null
+++ b/xilog
@@ -0,0 +1,4 @@
+#!/bin/sh
+# xilog [PATTERN] - list installed packages by install-date
+xbps-query -p install-date -s '' |
+	sort -t: -k2 |column -t -s: -o: |grep -e "${1:-.}"