aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-05-09 15:05:01 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-05-09 15:07:02 +0100
commit7a1f4b0595bdedeea5c61a1c79a74e392a47d0e3 (patch)
tree17bad16d6b8d9fcb7b1a2f6907cf7b0e182bf6b7
parentac1b776504dc96363ceb6b5e8d47199e15677e7c (diff)
downloadsos-7a1f4b0595bdedeea5c61a1c79a74e392a47d0e3.tar.gz
[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 <bmr@redhat.com>
-rw-r--r--sos/plugins/dnf.py2
-rw-r--r--sos/plugins/yum.py7
2 files changed, 8 insertions, 1 deletions
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"):