LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-19-2006, 12:49 PM   #1
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Rep: Reputation: 16
Duplicate entries in RPM database -- different architectures


I'm running RHEL 4.0 a Dell server (PE 6650), and I've discovered something: there are a few packages that are listed twice in the RPM database. an example would be glibc. I ran rpm -qi glibc and both packages get listed. Based on what I can see, one is x6-64 architecture (what I want) and one is i386 architecture. (I determined this based on the build host and checking Red Hat's site).

How they both got there is less important to me than how to remove the i386 package. They're both the same version (glibc-2.3.4-2.13), so I can't specify that way. If I run rpm --erase glibc-2.3.4-2.13, I get the following error:
error: "glibc-2.3.4-2.13" specifies multiple packages

Any suggestions?

(I found one related article that discussed removing multiple Quake packages, but I dont' wan to remove all of them, just one...)

Thanks in advance,
fiservguy
 
Old 01-19-2006, 02:35 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
It's quite common and useful to have both x86 and x86_64 libs and other packages installed, for example since your query is about the glibc packages;

$ rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' 'glibc*' | sort
glibc-2.3.90-18.i686.rpm
glibc-2.3.90-18.x86_64.rpm
glibc-common-2.3.90-18.x86_64.rpm
glibc-devel-2.3.90-18.i386.rpm
glibc-devel-2.3.90-18.x86_64.rpm
glibc-headers-2.3.90-18.x86_64.rpm
glibc-kernheaders-2.4-9.1.98.EL.x86_64.rpm

The x86 (i386, i686) version may or may not be required by your system, it would be a good idea to check first then remove if OK to do so. Notice the command I used to show you all the glibc packages installed and the full names of them.

So, first test if removing the x86 version of the would be OK, notice that the ARCH has added to the command being used;

$ rpm -e glibc-2.3.90-18.i686 glibc-devel-2.3.90-18.i386 --test

If you get no warnings back then you can remove the package(s) simply by removing the --test switch from the command in the example above. Otherwise it would be a good idea to leave them in place.
 
Old 01-19-2006, 03:10 PM   #3
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks for the reply, Lenard.

I have seen some web pages say that multiple installs are at least not bad, but haven't seen that they can be beneficial. With your information, I should be able to remove the duplicates if it becomes necessary. So far, I haven't seen any problems, so I'll leave them until/unless something goes wrong.

Thanks again!

fiservguy
 
Old 01-19-2006, 07:17 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Well it is kind of hard to run some 32-bit applications without the 32-bit libs, since OpenOffice (for example) is only 32-bit you need the required 32-bit libs.
 
  


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 Entries OpenSuSE 10.0 TMan459 SUSE / openSUSE 3 10-19-2005 04:43 AM
Architectures for rpm DLs, do they matter? Superme Linux - Software 3 11-09-2004 10:45 PM
rpm database missing entries? dtashima Red Hat 0 10-29-2004 08:18 AM
Fedora FC2 Arch= x86_64 install leaves duplicate packages in RPM database w8hrq Fedora - Installation 2 10-05-2004 01:14 PM
need help booting the system - duplicate /etc/inittab entries? ksgill Linux - Newbie 1 05-10-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:39 PM.

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