Add --dupes popt alias for detecting duplicate packages in rpmdb from JBJ.
This commit is contained in:
parent
768b36f1cf
commit
086dac456e
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue