Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-12-21 21:20:34 +0300
committermboelen <michael@cisofy.com>2015-12-21 21:20:34 +0300
commit83a44827e03543146e39c37c33f14ebca6f40a29 (patch)
tree91b800f3d21ab8fe4009a2ce21831f79618504f8 /include
parentddfd21b6968d4c296a4594444041b73a2d6e5d65 (diff)
Define queryformat for rpm command
Diffstat (limited to 'include')
-rw-r--r--include/tests_ports_packages2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 69138c76..4306f3dc 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -137,7 +137,7 @@
logtext "Test: Querying 'rpm -qa' to get package list"
Display --indent 6 --text "- Querying RPM package manager"
logtext "Output:"; logtext "--------"
- SPACKAGES=`${RPMBINARY} -qa --query "%{NAME},%{VERSION}-%{RELEASE}.%{ARCH}\n" 2> /dev/null | sort`
+ SPACKAGES=`${RPMBINARY} -qa --queryformat "%{NAME},%{VERSION}-%{RELEASE}.%{ARCH}\n" 2> /dev/null | sort`
if [ "${SPACKAGES}" = "" ]; then
logtext "Result: RPM binary available, but package list seems to be empty"
logtext "Info: looks like the rpm binary is installed, but not used for package installation"