LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-12-2011, 02:58 AM   #1
x201s
Member
 
Registered: Dec 2010
Posts: 67

Rep: Reputation: 0
How to remove one of the two similarly named rpm in RHEL


I have two rpms or a package, one 32-bit and the other 64 bit.
I want to delete the 32-bit one while leaving the 64-bit one intact.

I displayed the name of the rpms as follows:
Code:
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}-%{arch}\n"
of the many, my interests are with these two:
libjpeg-6b-37-i386
libjpeg-devel-6b-37-x86_64

Now I tried to delete one as follows:
Code:
rpm -e libjpeg-6b-37-i386
To which, I was promptly told:
Code:
error: package libjpeg-6b-37-i386 is not installed
Why display "libjpeg-6b-37-i386" in the first place, if only to say "not installed" later?
**
When I enquire with "rpm -qa |grep libjpeg", I have the following output:
Code:
libjpeg-6b-37
libjpeg-devel-6b-37
libjpeg-6b-37
Of the two non-devel pacages, one is 32 and the other is 64 bit rpm.

Any pointers, advice, etc. would be helpful.
Thanks for reading.
 
Old 09-12-2011, 03:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try "rpm -e libjpeg-6b-37.i386"

Annoying isn't it?
 
Old 09-12-2011, 03:08 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
The correct syntax is
Code:
yum remove libjpeg.i386
or
Code:
rpm -e libjpeg.i386
Edit: too late...
 
Old 09-12-2011, 05:57 AM   #4
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
Chris, colucix,
I have smile in my face, a knot-like feeling in my heart.
Smile because there are people who care and the annoying feeling because for me this kind of thing is a show stopper.
Thank you both.
Cheers,
 
  


Reply



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
named not starting after installing BIND 9.6.0-P1 on RHEL 4 satyendrac Linux - Newbie 4 05-07-2009 06:40 AM
Finding most recent group of similarly named files PiNPOiNT Programming 2 05-02-2009 02:43 PM
RHEL 5: rpm --aid or rpmdb-redhat.rpm no longer supported mjcocat Linux - Enterprise 1 06-05-2008 08:41 PM
installed apache from source, didn't remove rpm, updated rpm causes problems leftPeg Linux - Newbie 5 06-06-2007 09:20 PM
remove expired zones from named.conf ritesh_aladdin Linux - Networking 0 07-23-2004 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:17 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
Open Source Consulting | Domain Registration