9

Unfortunately the software that I'm using (Alfresco) requires the installation of openoffice, and not libreoffice. If I try and configure it to use libreoffice I receive errors during startup. If I try to install any of the openoffice packages:

yum install openoffice*

I receive errors for all packages similar to:

Package openoffice.org-langpack-bg_BG is obsoleted by libreoffice-langpack-bg, trying to install 1:libreoffice-langpack-bg-3.4.5.2-16.el6.x86_64 instead

Then it proceeds to try and download libreoffice. I don't see anything in man yum with regards to installing obsolete packages. Is there any way to install obsolete packages via yum and not their newer counterparts?

1
  • same problem installing languageweaver. @BengiWiebe below solved my problem perfectly.
    – MattPark
    May 29, 2013 at 18:18

3 Answers 3

0

If you prefer, you can download the proper package (deb, rpm..) from the official website: http://www.openoffice.org/download/other.html

After you can install with rpm or with yum.

12

I found that, when installing openoffice, adding exclude=libreoffice* to your /etc/yum.conf helped with sudo yum update, and I am sure that it would help with your problem too. It tells yum to ignore libreoffice* packages, therefore yum does not even know that there is a package that obsoletes openoffice.

2
  • Best solution because you don't have to download anything manually. Also you don't have to yum clean all and rebuild the cache in case you were wondering.
    – MattPark
    May 29, 2013 at 18:20
  • 1
    Important to note that if it's a single command you are running (e.g. in a script), you don't need to mess around with yum.conf—you can just use --exclude=libreoffice\* as a flag to yum directly on the command line.
    – Wildcard
    Feb 1, 2016 at 22:28
8
sudo yum --setopt=obsoletes=0 install openoffice*

Or you can put obsoletes=0 to /etc/yum.conf

Both ways worked for me on Oracle Linux 6.7.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .