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
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 1 comment… read it below or add one }
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.