-   Linux - General (
-   -   how to delete rpms of two diff architecture (

tanveer 11-15-2007 05:32 AM

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- (i386)
compat-glibc- (x86_64)

but I only want one that is the latter one. How to delete the i386 one?
Is it possible?
thanks in advance.

Lenard 11-15-2007 05:41 AM

Use: rpm -e compat-glibc-

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:

tanveer 11-15-2007 05:51 AM

Thanks for answering.

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

What does this mean??

Lenard 11-15-2007 09:31 AM

Typo error:

Bad : rpm -e compat-glibc- --test
Good: rpm -e compat-glibc-2.3.2-95.30.i386 --test

tanveer 11-15-2007 11:01 AM

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.

tanveer 11-17-2007 03:12 AM

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.

All times are GMT -5. The time now is 10:00 AM.