[CentOS] RPM -e for single architecture
Karanbir Singh
Mail-Lists at karan.orgFri Jul 1 15:23:24 UTC 2005
- Previous message: [CentOS] RPM -e for single architecture
- Next message: [CentOS] Re: boot failure after install -- my bootloader beat up your honor student
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
David Thompson wrote:
> On architectures where multiple architectures for an RPM may be simultaneously
> installed (my example is x86_64), does anyone know the RPM magic to remove
> only one version?
Add a line like this to your .rpmmacros
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
rpm will then show each pkg with the arch appended ( as yum does ), and
you can run specific rpm ops on these pkgs with {name}.{arch}
> For instance, if I have the x86_64 and i386 versions of an RPM
> installed, how I can specify to only remove the i386 version?
eg:
[kbsingh at centos ~]$ rpm -q glibc
glibc-2.3.4-2.8.i386
glibc-2.3.4-2.8.x86_64
you should be able to 'rpm -e glibc.i386' to erase the .i386 pkg only.
also, "yum erase glibc.i386" would achieve pretty much the same thing.
- KB
--
Karanbir Singh : http://www.karan.org/
GnuPG Public Key : http://www.karan.org/publickey.asc
- Previous message: [CentOS] RPM -e for single architecture
- Next message: [CentOS] Re: boot failure after install -- my bootloader beat up your honor student
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list