From 7a1f4b0595bdedeea5c61a1c79a74e392a47d0e3 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 9 May 2018 15:05:01 +0100 Subject: [dnf, yum] add package-cleanup commands Add calls to the package-cleanup script from both the dnf and yum plugins: each command is provided by the corresponding -utils RPM, and the scripts are different (even though they share the same name). Based on a patch from Jake Hunsaker in PR #1217. Related: #1217 Signed-off-by: Bryn M. Reeves --- sos/plugins/dnf.py | 2 ++ sos/plugins/yum.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sos/plugins/dnf.py b/sos/plugins/dnf.py index e5426706..8fb8fc6d 100644 --- a/sos/plugins/dnf.py +++ b/sos/plugins/dnf.py @@ -50,6 +50,8 @@ class DNFPlugin(Plugin, RedHatPlugin): "dnf --version", "dnf list installed *dnf*", "dnf list extras", + "package-cleanup --dupes", + "package-cleanup --problems" ]) if self.get_option("history"): diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py index c8124204..b6df7c80 100644 --- a/sos/plugins/yum.py +++ b/sos/plugins/yum.py @@ -75,7 +75,12 @@ class Yum(Plugin, RedHatPlugin): "/etc/pki/consumer/cert.pem", "/etc/pki/entitlement/*.pem" ]) - self.add_cmd_output("yum history") + + self.add_cmd_output([ + "yum history", + "package-cleanup --dupes", + "package-cleanup --problems" + ]) # packages installed/erased/updated per transaction if self.get_option("yum-history-info"): -- cgit