diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-24 16:09:24 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-24 16:09:24 -0500 |
commit | 0586e023a870cb1fc2370eb0a30eb031cc091d6b (patch) | |
tree | dfa7c53827d1e9ad1d46badd55a03c81b0035991 /list-installed.d/50list-installed | |
parent | 9d2c186b389fb663c6c15e356691d149ce917dd2 (diff) |
add arch to list-installed for rpm
Diffstat (limited to 'list-installed.d/50list-installed')
-rwxr-xr-x | list-installed.d/50list-installed | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed index eb3ec96..177a6c2 100755 --- a/list-installed.d/50list-installed +++ b/list-installed.d/50list-installed @@ -1,10 +1,10 @@ #!/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". +# format "package version\n" (or something similar). 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 + rpm -qa --queryformat "%{name} %{version} %{arch}\n" | sort fi |