From 086dac456e607d61d0c2e31f80d29797c7ec4e50 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 5 Jun 2007 09:45:58 +0300 Subject: Add --dupes popt alias for detecting duplicate packages in rpmdb from JBJ. --- rpmpopt.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpmpopt.in b/rpmpopt.in index 844a1f939..5ccf6010c 100644 --- a/rpmpopt.in +++ b/rpmpopt.in @@ -89,6 +89,9 @@ rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VER --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \ --POPTdesc=$"list package(s) by install time, most recent first" +rpm alias --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \ + --POPTdesc=$"list duplicated packages" + rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \ --POPTdesc=$"list all files from each package" @@ -369,6 +372,9 @@ rpmq alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VE --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \ --POPTdesc=$"list package(s) by install time, most recent first" +rpmq alias --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \ + --POPTdesc=$"list duplicated packages" + rpmq alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \ --POPTdesc=$"list all files from each package" -- cgit v1.2.3