LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2005, 03:47 PM   #1
sancho
Member
 
Registered: Sep 2003
Distribution: Ubuntu 9.04/9.10 (64-bit)
Posts: 149

Rep: Reputation: 15
Tons of Duplicate Packages on AMD64 System...


I came across this problem while trying to get the 32-bit version of Firefox running on my Athlon64 laptop. I needed to install the 32-bit version of "xorg-x11-deprecated-libs"; however, when I checked the version that I already had, I noticed that I had two versions installed, both of which were x86_64. Here's what yum list installed "xorg-x11-deprecated-libs*"
said...

Code:
xorg-x11-deprecated-libs.x86_64          6.8.2-31               installed
xorg-x11-deprecated-libs.x86_64          6.8.2-37.FC4.49.2      installed
xorg-x11-deprecated-libs-devel.x86_64    6.8.2-37.FC4.49.2      installed
xorg-x11-deprecated-libs-devel.x86_64    6.8.2-31               installed
After asking someone on the 'net, he gave me the following command to list all packages on my system which have duplicates: rpm -aq --queryformat "%{NAME}\n" | sort | uniq -c | grep -v -E " *1 " . The output of that command is as follows...

Code:
      2 alsa-lib
      2 alsa-lib-devel
      2 alsa-utils
      2 apr
      2 arts
      2 atk
      2 audit
      4 audit-libs
      2 binutils
      2 bzip2-libs
      2 cdda2wav
      2 cdrecord
      2 ckermit
      2 compat-libstdc++-33
      2 coreutils
      2 cpp
      2 cpuspeed
      2 cracklib
      2 cups
      2 cups-libs
      2 curl
      2 cvs
      2 cyrus-sasl
      4 dbus
      2 dbus-devel
      4 dbus-glib
      2 dbus-python
      2 dbus-x11
      2 devhelp
      2 dhclient
      2 dhcpv6_client
      2 dia
      2 doxygen
      4 e2fsprogs
      2 e2fsprogs-devel
      2 eject
      2 elinks
      2 evince
      2 evolution
      2 evolution-data-server
      2 expat
      2 fetchmail
      2 file
      2 firefox
      2 fontconfig
      2 freeglut
      2 freetype
      2 gaim
      4 gamin
      2 gamin-devel
      2 gcc
      2 gcc-c++
      2 gcc-gfortran
      2 gcc-java
      2 GConf2
      2 gdbm
      2 gedit
      2 gimp
      2 gjdoc
      2 glib
      4 glib2
      2 glib2-devel
      4 glibc
      2 glibc-common
      2 glibc-devel
      2 glibc-headers
      2 gnomemeeting
      2 gnome-panel
      2 gnome-utils
      2 gnome-vfs2
      2 gpg-pubkey
      2 gphoto2
      2 grep
      2 gstreamer-plugins
      2 gtk+
      4 gtk2
      2 gtk2-devel
      2 gtk2-engines
      2 hal
      2 howl-libs
      2 httpd
      2 httpd-manual
      2 hwdata
      2 iiimf-libs
      2 iiimf-libs-devel
      2 ImageMagick
      2 info
      2 kdelibs
      2 kernel
      2 kernel-devel
      2 krb5-devel
      4 krb5-libs
      2 krb5-workstation
      2 lftp
      2 libart_lgpl
      2 libbonobo
      2 libgal2
      4 libgcc
      4 libgcj
      2 libgcj-devel
      2 libgcrypt
      2 libgfortran
      2 libgpg-error
      2 libgsf
      2 libIDL
      2 libidn
      2 libjpeg
      2 libpng
      2 libraw1394
      2 libselinux
      2 libsepol
      2 libsoup
      4 libstdc++
      2 libstdc++-devel
      2 libtiff
      2 libtool
      2 libtool-ltdl
      2 libusb
      2 libwnck
      4 libwpd
      4 libxml2
      2 libxml2-devel
      2 libxml2-python
      2 libxslt
      2 lockdev
      2 lockdev-devel
      2 lynx
      2 man-pages
      2 mc
      2 metacity
      2 mgetty
      2 mkisofs
      2 mod_perl
      2 mod_ssl
      2 module-init-tools
      2 mozilla
      2 mozilla-devel
      4 mozilla-nspr
      2 mozilla-nspr-devel
      4 mozilla-nss
      2 mozilla-nss-devel
      2 MyODBC
      2 mysql
      2 mysql-devel
      2 mysql-server
      2 nc
      2 neon
      2 netpbm
      2 netpbm-devel
      2 netpbm-progs
      2 NetworkManager
      2 NetworkManager-gnome
      2 nfs-utils
      2 nscd
      2 openh323
      2 openldap
      2 openmotif
      2 openmotif-devel
      2 openobex
      2 openssh
      2 openssh-askpass
      2 openssh-askpass-gnome
      2 openssh-clients
      2 openssh-server
      4 openssl
      2 openssl-devel
      2 ORBit2
      2 pam
      2 pango
      2 parted
      2 pcre
      2 perl-Compress-Zlib
      2 php
      2 php-ldap
      2 php-mysql
      2 php-odbc
      2 php-pear
      2 pilot-link
      2 pilot-link-devel
      2 policycoreutils
      2 poppler
      4 popt
      2 procps
      2 psmisc
      2 pwlib
      2 pygtk2
      2 pygtk2-devel
      2 pygtk2-libglade
      2 pyOpenSSL
      2 qt
      2 redhat-artwork
      2 rpm
      2 rpm-build
      2 rpm-devel
      2 rpm-libs
      2 rpm-python
      2 rp-pppoe
      2 SDL
      2 setarch
      2 setools
      2 setup
      2 shadow-utils
      2 slib
      2 slocate
      2 spamassassin
      2 startup-notification
      2 system-config-printer
      2 system-config-printer-gui
      2 system-config-securitylevel
      2 system-config-securitylevel-tui
      2 system-config-soundcard
      2 system-config-users
      2 tar
      2 tcpdump
      2 termcap
      2 tetex
      2 tetex-afm
      2 tetex-dvips
      2 tetex-fonts
      2 tetex-latex
      2 tetex-xdvi
      2 texinfo
      2 totem
      2 ttmkfdir
      2 tzdata
      2 udev
      2 umb-scheme
      2 unixODBC
      2 util-linux
      2 vim-common
      2 vim-enhanced
      2 vim-minimal
      2 vino
      2 vixie-cron
      2 vnc
      2 vnc-server
      2 vte
      2 wget
      2 xdelta
      2 xinitrc
      2 xorg-x11
      2 xorg-x11-deprecated-libs
      2 xorg-x11-deprecated-libs-devel
      2 xorg-x11-devel
      2 xorg-x11-font-utils
      4 xorg-x11-libs
      4 xorg-x11-Mesa-libGL
      4 xorg-x11-Mesa-libGLU
      2 xorg-x11-tools
      2 xorg-x11-twm
      2 xorg-x11-xauth
      2 xorg-x11-xfs
      4 zlib
      2 zlib-devel
The number before each package shows how many versions of each package is installed. Apparently, only a few packages (i.e. kernel) are supposed to have duplicates. Why, then, might I have so many multiple packages installed on my system? More importantly, how can I fix this?

I do all of my updating through yumex, and use the default Fedora mirrors. Also, I've never had the system crash during an update.

Thanks
 
Old 11-10-2005, 01:27 AM   #2
jlo_sandog
Member
 
Registered: Jul 2005
Location: USA
Distribution: F10 (x86_64)
Posts: 549

Rep: Reputation: 32
well since you are running x86_64 you will end up with two sets of libraries the 32 bit and 64 bit. The 64 bit system gives you the option to run programs in either mode.
I'm running FC4 x86_64, but since flash, media codecs, and jre are not supported on 64 bit browsers, then I had to either download 32bit binaries or end up compiling in 32 bit mode. This is the reason why you have two sets of libraries. In case you need to compile in 32 bit mode, and run 32 bit programs you will already have the libraries installed.
Of course your hard drive will be larger than a 32 bit one. If saving hard drive space is needed then you should probably run a 32 bit system.
 
Old 11-11-2005, 06:21 PM   #3
sancho
Member
 
Registered: Sep 2003
Distribution: Ubuntu 9.04/9.10 (64-bit)
Posts: 149

Original Poster
Rep: Reputation: 15
Thanks for the response.

I see what you're saying about having both 32- and 64-bit libraries installed for sake of compatibility. That's actually what I'd *like* to have going on here, but that's not what is happening. You'll notice in the first CODE box I listed, what I actually have is multiple versions of the same 64-bit libraries installed. It's as though, when I update, yum installs the new packages but fails to remove the old ones.
 
Old 12-05-2005, 07:44 AM   #4
jlblom
LQ Newbie
 
Registered: May 2004
Location: Almere The Netherlands
Distribution: FC7-AMD_64
Posts: 19

Rep: Reputation: 0
duplicate pacages on AMD 64 system

I have the same problems using yum.
My nightly install gives me the same list of dupicated packages and I assume that's right as I use both architectures. The error lines say:

W: There are multiple versions of "gnome-vfs2" in your system.
This package won't be cleanly updated, unless you leave
only one version. To leave multiple versions installed,
you may remove that warning by setting the following
option in your configuration file:
RPM::Allow-Duplicated { "^gnome-vfs2$"; };
To disable these warnings completely set:
RPM::Allow-Duplicated-Warning "false";

However, RPM:: etc. is a command to set in apt-conf not in yum.conf IMHO, so I don't know how to solve it.
It may well be that some botched upgrade has not removed all old versions from the database but I cannot remove it as it's a problem of the RPM database. Locate gives you only 2 names in 2 different directories with the same name e.g. with alsa I see /usr/alsalib/ and /usr/lib64/alsalib/ and and with gnome-vfs2 only one package is installed.
Is the RPM::... command to be set in yum.conf?
Joep
 
Old 06-10-2006, 01:03 AM   #5
hivtop
Member
 
Registered: Jan 2005
Location: In the Desert
Distribution: RedHat 9
Posts: 33

Rep: Reputation: 15
found a wonderful program called smart that removed 300 dups in one setting from the command line... GREAT program for upgrades that leave junk.... did a good clean job of rpms too
here is the link... they have rpms for different disttros

http://labix.org/smart
 
Old 06-10-2006, 02:43 AM   #6
jlblom
LQ Newbie
 
Registered: May 2004
Location: Almere The Netherlands
Distribution: FC7-AMD_64
Posts: 19

Rep: Reputation: 0
Thanks,
I will look into it. In the mean time I have completely reorganized my system and done a complete new installation of FC5 and SMART may well become a good replacement of yum.
Joep
 
Old 07-19-2006, 05:09 PM   #7
ahz10
Member
 
Registered: Apr 2005
Distribution: Fedora,Trustix,FreeBSD
Posts: 62

Rep: Reputation: 15
I just had the same problem on Fedora Core 5 32-bit. I did a clean install and ran my special setup script (because I setup a lot of systems). I think the problem was that I removed the SELinux utilities but didn't reboot immediately, so that when I ran yum upgrade, rpm had an error on setting the SELinux context of files. Then, rpm decided to keep both the old and new packages. You might get the same effect anytime by removing SELinux utilities, running in SELinux mode, and upgrading a lot of packages. At least, that's my guess.

Anyway, running "smart fix *" is currently fixing the problem quickly and saving me 1.5 GB. Thanks for that tip.
 
Old 07-20-2006, 11:45 AM   #8
ahz10
Member
 
Registered: Apr 2005
Distribution: Fedora,Trustix,FreeBSD
Posts: 62

Rep: Reputation: 15
Ugh. I take it back. Now I'm missing a lot of packages, so I think smart fix * removed both copies.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate packages-rpm jerrymei Linux - Software 2 10-07-2005 02:33 PM
amd64 - need packages Malibyte Debian 1 07-11-2005 02:25 AM
Fedora FC2 Arch= x86_64 install leaves duplicate packages in RPM database w8hrq Fedora - Installation 2 10-05-2004 01:14 PM
apt-get fedora duplicate packages/need debian expert :) illtbagu Linux - Software 2 03-03-2004 10:32 AM
System tuning: tons of memory, 2 P4/w. hyper-threading, NOT I/O bound - what next? mudblood Linux - General 8 09-16-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration