diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-17 21:49:51 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-17 21:49:51 -0500 |
commit | 9d2c186b389fb663c6c15e356691d149ce917dd2 (patch) | |
tree | 88a25513581837e6a49b90857579a3b097b7c63f /list-installed.d/50list-installed | |
parent | 16c86e81564f0e2e2fd0173235913028c9310907 (diff) |
Implement list-installed for rpm. (Untested)
Diffstat (limited to 'list-installed.d/50list-installed')
-rwxr-xr-x | list-installed.d/50list-installed | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed index 116a42a..eb3ec96 100755 --- a/list-installed.d/50list-installed +++ b/list-installed.d/50list-installed @@ -5,4 +5,6 @@ if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then dpkg-query -W -f '${Status}\t${Package} ${Version}\n' | \ egrep '(ok installed|ok config-files)' | cut -f2,3 +elif [ "$LOWLEVEL_PACKAGE_MANAGER" = rpm ]; then + rpm -qa --queryformat "%{name} %{version}\n" | sort fi |