Friday, May 9, 2008

Linux procedures and fixes

Facing a problem of

"already installed" and "not installed" cycles when trying to uninstall and install a package in linux?

Such as this:
--------------------------------------------------------------------------------------------------------------------
#rpm -ivh IBMDirectorServer-6.10-1.i586.rpm
Preparing... ########################################### [100%]
package IBMDirectorServer-6.10-1 is already installed


#rpm -ev IBMDirectorServer-6.10-1.i586
error: package IBMDirectorServer-6.10-1 is not installed

----------------------------------------------------------
Then try this solution:
----------------------------------------------------------
Use "--force" to install the package and then "uninstall using rpm -ev"

Like this:
--------------------------------------------------------------------------------------------------------------------
[root@lc4eb8190187 installers]# rpm -ivh prd/Server/IBMDirectorServer-6.10-1.i586.rpm --force
Preparing... ########################################### [100%]
1:IBMDirectorServer ########################################### [100%]

#rpm -ev IBMDirectorServer-6.10-1.i586

--------------------------------------------------------------------------------------------------------------------

Most of the times it works!!!