summaryrefslogtreecommitdiff
path: root/list-installed.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-25 20:53:02 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-25 20:53:02 -0400
commitb4b7c0996c73291b34f0566f74ad2513c44a6371 (patch)
treee1c15d4975fb7b813b044ee943b93b373a5c2352 /list-installed.d
parentda1632bd6dca9b3ba46ab74809e409a74dd99a24 (diff)
Keep track of what packages change state during an installation, and include that in the commit message at the end.
Diffstat (limited to 'list-installed.d')
-rwxr-xr-xlist-installed.d/50list-installed8
1 files changed, 8 insertions, 0 deletions
diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed
new file mode 100755
index 0000000..116a42a
--- /dev/null
+++ b/list-installed.d/50list-installed
@@ -0,0 +1,8 @@
+#!/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" = dpkg ]; then
+ dpkg-query -W -f '${Status}\t${Package} ${Version}\n' | \
+ egrep '(ok installed|ok config-files)' | cut -f2,3
+fi