Linux Duplicate packages when querying the rpm databases

Posted on in Categories , 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:


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

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 1 comments/add one below):

1 comment

  1. 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.

    Have a question? Post it on our forum!