summaryrefslogtreecommitdiff
path: root/yum-etckeeper/list-installed.d/60list-installed
diff options
context:
space:
mode:
Diffstat (limited to 'yum-etckeeper/list-installed.d/60list-installed')
-rwxr-xr-xyum-etckeeper/list-installed.d/60list-installed7
1 files changed, 7 insertions, 0 deletions
diff --git a/yum-etckeeper/list-installed.d/60list-installed b/yum-etckeeper/list-installed.d/60list-installed
new file mode 100755
index 0000000..aac39ea
--- /dev/null
+++ b/yum-etckeeper/list-installed.d/60list-installed
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Output to stdout a *sorted* list of all currently installed
+# (or removed but still with config-files) packages, in the
+# format "package version\n".
+if [ "$LOWLEVEL_PACKAGE_MANAGER" = rpm ]; then
+ rpm -qa --queryformat "%{name} %{version} %{arch}\n" | sort
+fi