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
[jim@cornette-fc3 ~]$ rpm -qa --qf "%{NAME}\n" | sort >/tmp/example.out
[jim@cornette-fc3 ~]$ uniq </tmp/example.out | diff - /tmp/example.out 47a48
binutils
85a87,88
compat-libstdc++ compat-libstdc++-devel
112a116,117
dbus dbus-glib
130a136
docbook-utils
147a154
elfutils-libelf
155a163
esound
200a209
gcc-gnat
244a254
gnome-desktop
282a293,299
gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey
326a344
httpd
364a383,384
kernel kernel
406a427,430
libgcj libgcj libgcj-devel libgcj-devel
414a439,440
libgnat libgnat
442a469
libobjc
448a476
libpng
451a480
libpng-devel
464a494
libsepol
467a498,501
libstdc++ libstdc++ libstdc++-devel libstdc++-devel
485a520
libwnck
489a525,526
libxml2 libxml2-devel
491a529
libxml2-python
493a532,533
libxslt libxslt-devel
565a606
net-tools
571a613
nscd
579a622
openh323
643a687
popt
653a698
procps
658a704
pwlib
671a718
qt
696a744,745
rpm rpm-build
698a748,749
rpm-devel rpm-libs
700a752
rpm-python
741a794
spamassassin
772a826,827
system-config-printer system-config-printer-gui
Well, I deleted all of the listed rpm duplicates from the earlier attached file. (Oldest rpm version) The only rpm that did not verify was rpm itself. However, it verified after running rpm --rebuilddb, rpm also verified after duplicates were removed.
Am I the only one that is seeing duplicated rpms? I am wondering why so many rpms did not cleanly install and remove the duplicated db entry. Was this from %post install scripts exiting, parts of rpm documentation missing, devel rpms conflicts or just my bad luck?
Jim
[jim@cornette-fc3 ~]$ rpm -qa --qf "%{NAME}\n" | sort >/tmp/example.out [jim@cornette-fc3 ~]$ uniq </tmp/example.out | diff - /tmp/example.out 282a283,289
gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey gpg-pubkey
364a372,373
kernel kernel
rpm -q --verify rpm-4.3.2-0.10 prelink: /bin/rpm: at least one of file's dependencies has changed since prelinking
binutils
.... many duplicated packages, sometimes three instances.
Thanks,
Jim
On Sat, 28 Aug 2004, Jim Cornette wrote:
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
Get the more up to date rpm, then try rpm -Uvh newer.rpm --replacepkgs --replacefiles
MIchael Young
M A Young wrote:
On Sat, 28 Aug 2004, Jim Cornette wrote:
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
Get the more up to date rpm, then try rpm -Uvh newer.rpm --replacepkgs --replacefiles
MIchael Young
Thanks! I found that using that script from the Redhat Network archives and rpm -e --justdb multiple-older.rpm did the trick removing the "extra entry from the DB. Since, I seem to be the only one that ended up with the problem, I assume it must have to do with something unique to me only.
I only noticed the duplicate package entries because of a posting related to udev and kudzu. Both programs displayed duplicates.
Thanks for posting the scripts earlier and it still being in the archives. They came in extremely handy to resolve the problem.
Jim