About Linux FAQ

Browse More FAQs:

Linux Duplicate packages when querying the rpm databases

Posted by Vivek Gite [Last updated: November 26, 2006]

Q. Why do I see Duplicate packages name while querying the rpm database with rpm -qa command? For example when I type following command I see few Duplicate packages:
rpm -qa | grep package

How do I get rid of this problem? I am using Fedora Core 64 bit version on AMD dual core server.

A. This is not big thing / bug and it is a common to have multiple rpm package names.

There are different RPM file exists for different architectures. For example i386 for 32 bit system and x86_64 64 bit system. You can install 32 bit package on 64 bit system in some cases for backward compatibility.

Use following command instead of rpm -qa | grep package:
# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{ARCH} \\n" | grep openssl | sortOutput:

openssl-0.9.7a-43.14.i686
openssl-0.9.7a-43.14.x86_64
openssl-devel-0.9.7a-43.14.x86_64
openssl-perl-0.9.7a-43.14.x86_64
openssl096b-0.9.6b-22.46.i386
openssl096b-0.9.6b-22.46.x86_64
xmlsec1-openssl-1.2.6-3.i386
xmlsec1-openssl-1.2.6-3.x86_64
xmlsec1-openssl-devel-1.2.6-3.x86_64

Now you will able to see architectures along with package name. Use architectures name while adding or removing rpm files. For example if you just want to add xmlsec1-openssl i386 architectures rpm:
# rpm -ivh xmlsec1-openssl-1.2.6-3.i386
Or remove the same (if installed):
# rpm -e xmlsec1-openssl-1.2.6-3.i386

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Conor Wynne Says:

    On em64T/AMD64 systems, it is normal for both 32-bit and 64-bt arches to be installed.

    Do not worry about it, its fine.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.