diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-06-05 09:45:58 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-06-05 09:45:58 +0300 |
commit | 086dac456e607d61d0c2e31f80d29797c7ec4e50 (patch) | |
tree | d1b5f47bd3d33c6da70a01a6a64fc999bae635f2 | |
parent | 768b36f1cf27af7ca6f67fdbefa71ef4b3397e8d (diff) | |
download | librpm-tizen-086dac456e607d61d0c2e31f80d29797c7ec4e50.tar.gz librpm-tizen-086dac456e607d61d0c2e31f80d29797c7ec4e50.tar.bz2 librpm-tizen-086dac456e607d61d0c2e31f80d29797c7ec4e50.zip |
Add --dupes popt alias for detecting duplicate packages in rpmdb from JBJ.
-rw-r--r-- | rpmpopt.in | 6 |
1 files changed, 6 insertions, 0 deletions
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" |