Using hint from MA Young - find duplicates

Jim Cornette fct-cornette at sbcglobal.net
Sat Aug 28 20:16:07 UTC 2004


Since I was curious as to the extent of duplicate programs installed. I 
decided to search the redhat site to determine how many programs were 
multiple installs. After running the script from a posting from MA 
Young, here is what appeared duplicated. This is an ataached files.

The query below shows one example for translation of the attached file.

  rpm -q binutils
binutils-2.15.91.0.2-4
binutils-2.15.91.0.2-8

rpm -q compat-libstdc++
compat-libstdc++-8-3.3.4.1
compat-libstdc++-8-3.3.4.2

rpm -q rpm
rpm-4.3.2-0.8
rpm-4.3.2-0.10


I don't understand the script, but the "hit list" seems to reveal 
multiple installed rpms.

gpg-keys and kernel rpms is all I figured were legitimate duplicated 
packages.

Should I reinstall, or is there an easier way to remove duplicates?

rpm -q --verify reveals what seems to be just a database not getting updated

  rpm -q --verify rpm-4.3.2-0.8
prelink: /bin/rpm: at least one of file's dependencies has changed since 
prelinking
S.?....T.   /bin/rpm
.......T. c /etc/cron.daily/rpm
.......T. c /etc/logrotate.d/rpm
.......T.   /usr/bin/gendiff
prelink: /usr/bin/rpm2cpio: at least one of file's dependencies has 
changed since prelinking
S.?....T.   /usr/bin/rpm2cpio
.......T.   /usr/lib/rpm/athlon-linux/macros
.......T.   /usr/lib/rpm/config.guess
.......T.   /usr/lib/rpm/config.sub
.......T.   /usr/lib/rpm/convertrpmrc.sh
.......T.   /usr/lib/rpm/i386-linux/macros
.......T.   /usr/lib/rpm/i486-linux/macros
.......T.   /usr/lib/rpm/i586-linux/macros
.......T.   /usr/lib/rpm/i686-linux/macros
.......T.   /usr/lib/rpm/macros
.......T.   /usr/lib/rpm/mkinstalldirs
.......T.   /usr/lib/rpm/noarch-linux/macros
.......T.   /usr/lib/rpm/rpm.daily
.......T.   /usr/lib/rpm/rpm.log
.......T.   /usr/lib/rpm/rpm.xinetd
.......T.   /usr/lib/rpm/rpm2cpio.sh
prelink: /usr/lib/rpm/rpmd: at least one of file's dependencies has 
changed since prelinking
S.?....T.   /usr/lib/rpm/rpmd
..5....T.   /usr/lib/rpm/rpmdb_deadlock
..5....T.   /usr/lib/rpm/rpmdb_dump
..5....T.   /usr/lib/rpm/rpmdb_load
.......T.   /usr/lib/rpm/rpmdb_loadcvt
..5....T.   /usr/lib/rpm/rpmdb_stat
..5....T.   /usr/lib/rpm/rpmdb_svc
..5....T.   /usr/lib/rpm/rpmdb_verify
..5....T.   /usr/lib/rpm/rpmfile
..5....T.   /usr/lib/rpm/rpmi
prelink: /usr/lib/rpm/rpmk: at least one of file's dependencies has 
changed since prelinking
S.?....T.   /usr/lib/rpm/rpmk
.......T.   /usr/lib/rpm/rpmpopt-4.3.2
prelink: /usr/lib/rpm/rpmq: at least one of file's dependencies has 
changed since prelinking
S.?....T.   /usr/lib/rpm/rpmq
.......T.   /usr/lib/rpm/rpmrc
.......T.   /usr/lib/rpm/tgpg
..5....T.   /usr/share/locale/cs/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/da/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/de/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/fi/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/fr/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/gl/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/is/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/ja/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/ko/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/no/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/pl/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/pt/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/pt_BR/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/ro/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/ru/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/sk/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/sl/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/sr/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/sv/LC_MESSAGES/rpm.mo
..5....T.   /usr/share/locale/tr/LC_MESSAGES/rpm.mo
.......T. d /usr/share/man/ja/man8/rpm.8.gz
.......T. d /usr/share/man/ja/man8/rpm2cpio.8.gz
.......T. d /usr/share/man/ja/man8/rpmbuild.8.gz
.......T. d /usr/share/man/ja/man8/rpmcache.8.gz
.......T. d /usr/share/man/ja/man8/rpmgraph.8.gz
.......T. d /usr/share/man/man1/gendiff.1.gz
.......T. d /usr/share/man/man8/rpm.8.gz
.......T. d /usr/share/man/man8/rpm2cpio.8.gz
.......T. d /usr/share/man/pl/man1/gendiff.1.gz
.......T. d /usr/share/man/pl/man8/rpm.8.gz
.......T. d /usr/share/man/pl/man8/rpm2cpio.8.gz
.......T. d /usr/share/man/pl/man8/rpmbuild.8.gz
.......T. d /usr/share/man/pl/man8/rpmcache.8.gz
.......T. d /usr/share/man/pl/man8/rpmdeps.8.gz
.......T. d /usr/share/man/pl/man8/rpmgraph.8.gz
.......T. d /usr/share/man/ru/man8/rpm.8.gz
.......T. d /usr/share/man/ru/man8/rpm2cpio.8.gz
.......T. d /usr/share/man/sk/man8/rpm.8.gz


rpm -q --verify rpm-4.3.2-0.10
prelink: /bin/rpm: at least one of file's dependencies has changed since 
prelinking
S.?......   /bin/rpm
prelink: /usr/bin/rpm2cpio: at least one of file's dependencies has 
changed since prelinking
S.?......   /usr/bin/rpm2cpio
prelink: /usr/lib/rpm/rpmd: at least one of file's dependencies has 
changed since prelinking
S.?......   /usr/lib/rpm/rpmd
prelink: /usr/lib/rpm/rpmk: at least one of file's dependencies has 
changed since prelinking
S.?......   /usr/lib/rpm/rpmk
prelink: /usr/lib/rpm/rpmq: at least one of file's dependencies has 
changed since prelinking
S.?......   /usr/lib/rpm/rpmq

rpm -e --justdb rpm-4.3.2-0.8
error: Failed dependencies:
         rpm = 4.3.2-0.8 is needed by (installed) rpm-python-4.3.2-0.8
         rpm = 4.3.2-0.8 is needed by (installed) rpm-build-4.3.2-0.8
         rpm = 4.3.2-0.8 is needed by (installed) rpm-devel-4.3.2-0.8
         rpm = 4.3.2-0.8 is needed by (installed) rpm-libs-4.3.2-0.8


thanks,

Jim


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: duplicate-rpms
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20040828/ccfa7021/attachment.ksh>


More information about the fedora-test-list mailing list