Hi All:
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?
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?
I have been unable to find a search phrase that turns up any useful information.
Thanks.
Dave Thompson UW-Madison (ftp|http|rsync)://mirror.cs.wisc.edu/pub/mirrors/linux/centos
On Fri, Jul 01, 2005 at 10:08:35AM -0500, David Thompson enlightened us:
Hi All:
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?
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?
I have been unable to find a search phrase that turns up any useful information.
Should just be rpm -e foobar.i386
Matt
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@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