LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-15-2007, 06:32 AM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Rep: Reputation: 37
how to delete rpms of two diff architecture


hi all
I have recently installed rhel4 in a server of 64bit and it installed some pacakges like this:

compat-glibc-2.3.2.95.30 (i386)
compat-glibc-2.3.2.95.30 (x86_64)

but I only want one that is the latter one. How to delete the i386 one?
Is it possible?
thanks in advance.
 
Old 11-15-2007, 06:41 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Use: rpm -e compat-glibc-2.3.2.95.30.i386

FYI this can be made a bit easier if you get used to typing;

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" compat-glibc

Also see: http://wiki.centos.org/TipsAndTricks/YumAndRPM
 
Old 11-15-2007, 06:51 AM   #3
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Original Poster
Rep: Reputation: 37
Thanks for answering.

[root@test ~]# rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" compat-glibc
compat-glibc-2.3.2-95.30.i386
compat-glibc-2.3.2-95.30.x86_64
[root@test ~]# rpm -e compat-glibc-2.3.2.95.30.i386 --test
error: package compat-glibc-2.3.2.95.30.i386 is not installed

What does this mean??
 
Old 11-15-2007, 10:31 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Typo error:

Bad : rpm -e compat-glibc-2.3.2.95.30.i386 --test
Good: rpm -e compat-glibc-2.3.2-95.30.i386 --test
 
Old 11-15-2007, 12:01 PM   #5
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Original Poster
Rep: Reputation: 37
Thanks a lot.
The database team is installing oracle in it and they made very specific package requirements for that. If they fail due to package problem then I will try this to delete all i386 packages which have x86_64 installed.
 
Old 11-17-2007, 04:12 AM   #6
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Original Poster
Rep: Reputation: 37
One more thing, at the time of uninstalling if it gives any sort of dependencies then how to remove that as that dependency can be shared by the 64 bit architecture package or that dependency will be only used by i386 package and x86_64 have differnet one for it.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Up2Date - How to find & delete source RPMs? ziphem Linux - General 2 05-01-2005 06:23 PM
Dual Boot diff Hard Disk diff OS on Suse 9.1 wilhem Linux - Newbie 1 08-13-2004 07:06 PM
Nis master and slave servers on diff architecture breenbaron Linux - Networking 0 07-25-2004 10:34 AM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 01:38 PM
What is the diff. btwn RPMs & Tarballs? Nu-Bee Linux - Newbie 9 12-21-2002 01:59 AM


All times are GMT -5. The time now is 11:04 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