Sometimes you will find yourself in a situation where you install 32/64 bit RPM's of a certain package in your system as shown below,
On a RHEL 5 system,
[root@host php-5.3.0]# rpm -qa | grep libtool-ltdl
libtool-ltdl-devel-1.5.22-6.1
libtool-ltdl-1.5.22-6.1
libtool-ltdl-1.5.22-6.1
libtool-ltdl-devel-1.5.22-6.1
Ok - so how will you tell which are 32/64 bit packages?
[root@host php-5.3.0]# rpm -qa --queryformat "%{name}.%{version}.%{arch}\n" |grep libtool-ltdl
libtool-ltdl-devel.1.5.22.x86_64
libtool-ltdl.1.5.22.x86_64
libtool-ltdl.1.5.22.i386
libtool-ltdl-devel.1.5.22.i386
Ok - So lets remove the 32 bit ones..
[root@host php-5.3.0]# rpm -e libtool-ltdl.1.5.22.i386
error: package libtool-ltdl.1.5.22.i386 is not installed
RPM doesn't allow you to remove the package as its named differently in the RPM database.
Here is how you do it.. although it maybe crude.. (suggestions are welcome)
[root@host php-5.3.0]# rpm -e libtool-ltdl-1.5.22-6.1 --allmatches --nodeps
This removes all packages matching the entries given and ignore dependency errors.
[root@host php-5.3.0]# rpm -e libtool-ltdl-devel-1.5.22-6.1 --allmatches --nodeps
[root@host php-5.3.0]#rpm -qa | grep libtool-ltdl
[root@host php-5.3.0]#
Now just install your 64 bit RPM.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment