Resolve "package already installed" error on Linux
79690Nov 9 2005 — edited Nov 9 2005Probably something that will come obviously to most of the linux users but something I would like to post in here. Some people at my department where facing this. Due to the fact the installation is requesting some more packages to be installed some people where canceling the installation and first installed the packages before they installed Oracle XE
When trying to install the second time they where facing the problem that RPM was telling them that the package was already installed. Actually the package is not installed but there is a incomplete reference to the installation.
Solution:
You have to remove this incorrect RPM installation from the RPM list
(1) verify that it is listed by executing a query to the RPM list for the installation:
$ rpm qa | grep oracle
You will get at least 1 result oracle-xe-10.2.0.1-0.1 Make sure you take the correct one because you now have a overview of all the installations containing the word oracle.
(2) Remove the installation from the RPM list
$ rpm e oracle-xe-10.2.0.1-0.1
(3) Install the RPM again.
$ rpm -ivh downloads/oracle-xe-10.2.0-l.i386.rpm
Most of you will know how to do this but just to help people who not know and facing this problem.