diff options
-rw-r--r-- | sos/plugins/rpm.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py index 511f64ca..7e500736 100644 --- a/sos/plugins/rpm.py +++ b/sos/plugins/rpm.py @@ -24,7 +24,12 @@ class rpm(Plugin, RedHatPlugin): self.addCopySpec("/var/log/rpmpkgs") if self.getOption("rpmq"): - self.collectExtOutput("/bin/rpm -qa --qf=\"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}~~%{INSTALLTIME:date}\t%{INSTALLTIME}\t%{VENDOR}\n\" --nosignature --nodigest|/bin/awk -F ~~ '{printf \"%-60s%s\\n\",$1,$2}'|sort", root_symlink = "installed-rpms") + self.collectExtOutput("/bin/rpm -qa --qf=" + "\"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}~~" + "%{INSTALLTIME:date}\t%{INSTALLTIME}\t%{VENDOR}\n\"" + " --nosignature --nodigest | /bin/awk -F '~~' " + "'{printf \"%-59s %s\\n\",$1,$2}'|sort", + root_symlink = "installed-rpms") if self.getOption("rpmva"): self.collectExtOutput("/bin/rpm -Va", root_symlink = "rpm-Va", timeout = 3600) |