LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to delete rpms of two diff architecture (https://www.linuxquestions.org/questions/linux-general-1/how-to-delete-rpms-of-two-diff-architecture-599795/)

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-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.

Lenard 11-15-2007 05:41 AM

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

tanveer 11-15-2007 05:51 AM

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??

Lenard 11-15-2007 09:31 AM

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

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 06:54 AM.