If you already have OpenOffice 2.x.x installed, you may have problems installing version 2.4. You may got one of the following message when you executed OOo 2.4’s setup :
An older product is installed
— or —
Same product is installed
Searching on Google revealed almost nothing – but I did find the source code for OOo 2.4’s installer. So I checked it out.
Apparently, here’s OOo 2.4’s installer default behaviour when it encountered existing installation :
(quoted directly from the source code)
// Checking version of installed package:
// If installed package is older: Force update mode, no selection of packages
// If installed package is equal: Force maintenance mode, only selection of packages
// If installed package is newer: Abort installation with message
That’s definitely not sane decisions. There’s no choice to uninstall previous version, for example.
So I’ll have to uninstall the existing installation manually. Question is, how ?
I looked around the source code again, shortly I found this.
So the installation details are in RPM’s database. We can uninstall existing installation via RPM.
To find out existing installation, type rpm -q -a
There are quite a lot of packages installed by existing OpenOffice. Copy the output from the command above, paste into your favorite text editor, and make it into these :
rpm -e –nodeps openoffice.org-core02-2.3.1-9238
rpm -e –nodeps openoffice.org-core03-2.3.1-9238
rpm -e –nodeps openoffice.org-core04-2.3.1-9238
rpm -e –nodeps openoffice.org-core05u-2.3.1-9238
rpm -e –nodeps openoffice.org-core07-2.3.1-9238
rpm -e –nodeps openoffice.org-core09-2.3.1-9238
rpm -e –nodeps openoffice.org-writer-2.3.1-9238
rpm -e –nodeps openoffice.org-impress-2.3.1-9238
rpm -e –nodeps openoffice.org-math-2.3.1-9238
(and so on)
Then paste those lines on terminal / shell. Wait while rpm uninstall everything.
(of course, do take care to just uninstall openoffice packages)
Once finished, try installing OpenOffice 2.4 again. This time it’d work just fine.
btw; I did these all on Ubuntu dapper & gutsy, but it should work on any distro.
Hope it helps someone else out there.