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:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-31 16:49:54 +0300
committerGitHub <noreply@github.com>2020-03-31 16:49:54 +0300
commit4ff61a6f46dc016552c805407939211f0c90560b (patch)
tree11fa7ed342393960a841804c7573e3c4fd1ec9b1 /include/functions
parente481d5a173b4d9af6f2ee1d268992d0f187ce50d (diff)
parenteb7dbab1ee55f24a300b58ef845edc18d443f68a (diff)
Merge pull request #890 from bginsbach/add-pkg_info
Add pkg_info
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index ed1a58eb..5b60419f 100644
--- a/include/functions
+++ b/include/functions
@@ -2041,6 +2041,9 @@
elif [ -n "${PKG_BINARY}" ]; then
output=$(${PKG_BINARY} -N info ${package} >/dev/null 2>&1)
exit_code=$? # 0=package installed, 70=invalid package
+ elif [ -n "${PKGINFOBINARY}" ]; then
+ output=$(${PKGINFOBINARY} -q -e ${package} >/dev/null 2>&1)
+ exit_code=$? # 0=package installed, 1=package not installed
elif [ -n "${RPMBINARY}" ]; then
output=$(${RPMBINARY} --quiet -q ${package} > /dev/null 2>&1)
exit_code=$?