Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-07-2005, 02:03 PM   #1
LQ Newbie
Registered: Feb 2004
Distribution: Red Hat
Posts: 20

Rep: Reputation: 0
Duplicate packages-rpm

Hi folks,

I came to notice that there are alot of duplicate packages on my FC3. The problem is that these packages are from different archs so when I want to erase them 'rpm' reports an error that there are multiple packages.

Can anybody tell me how I can get rid of these duplicates.

Thank you all.
Old 10-07-2005, 02:26 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
Typically you install a single rpm - the multiple rpm's you are seeing are likely just the bundles and not actually installed. (In fact doing rpm -qa to see what is installed often just gives the basic name of the package and leaves out architecture extra information.)

Anyway removing a file with name something.rpm only removes the package you use to install it from. It doesn't actually uninstall it. You should be able to remove such packages that way.

Last edited by MensaWater; 10-07-2005 at 02:28 PM.
Old 10-07-2005, 02:33 PM   #3
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You can query an rpm and see the architectures with:

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n' packagename

For example:

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n' kernel

Unfortunately, I don't know of any way to remove a specific package by architecture, so you will need to use '--allmatches' (and likely with --nodeps, since other package dependancies will be temporarily broken) and then reinstall the one you want.

Before you do that, sometimes an i386 package is needed by an installed program that doesn't have an x86_64 version. Just removing the package may then break other software. Unless you have a reason to do this, it's best to leave the package alone.

Last edited by macemoneta; 10-07-2005 at 02:36 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tons of Duplicate Packages on AMD64 System... sancho Linux - Software 7 07-20-2006 11:45 AM
Fedora FC2 Arch= x86_64 install leaves duplicate packages in RPM database w8hrq Fedora - Installation 2 10-05-2004 01:14 PM
How to get rid of duplicate keys in RPM tlawlessrr Linux - Software 3 07-12-2004 05:14 PM
apt-get fedora duplicate packages/need debian expert :) illtbagu Linux - Software 2 03-03-2004 10:32 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 PM.

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