LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-07-2005, 03:03 PM   #1
jerrymei
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, 03:26 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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 03:28 PM.
 
Old 10-07-2005, 03:33 PM   #3
macemoneta
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: 328Reputation: 328Reputation: 328Reputation: 328
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 03:36 PM.
 
  


Reply


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


All times are GMT -5. The time now is 06:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration