Wednesday, April 18, 2012

HowTo: Install LibreOffice on CentOS 6.2 / SL 6.2

Update:

With the release of RHEL, CentOS and SL 6.3 LibreOffice replaces OpenOffice as the default office suite available in the standard repositories. As such this HowTo isn't relevant anymore.
On RHEL / CentOS / SL 6.3 issue yum install libreoffice to install LibreOffice. If you had OpenOffice installed, with the 6.3 release you'll end up pulling libreoffice as part of the upgrade process.

By default, CentOS 6.2 and SL 6.2 come with OpenOffice in the official repositories with LibreOffice nowhere to be found.

In this post I'll go over the steps needed to install LibreOffice on RHEL6 clones such as CentOS 6.2 and Scientific Linux 6.2. Up until recently we'd have to manually download and install LibreOffice, however thanks to the efforts of Nux! a repository in now available and makes everyone life easier.

32 bit users

If you dont' have OpenOffice installed in your system you just need to run the following commands:

  1. $ su
  2. # rpm -ivh http://li.nux.ro/download/nux/libreoffice.org-rpms/el6/i386/nux-libreoffice.org-rpms-release-0-1.el6.nux.noarch.rpm
  3. # yum install libreoffice.org

If on the other hand you have OpenOffice installed:

  1. $ su
  2. # yum remove openoffice*
  3. # rpm -ivh http://li.nux.ro/download/nux/libreoffice.org-rpms/el6/i386/nux-libreoffice.org-rpms-release-0-1.el6.nux.noarch.rpm
  4. # yum install libreoffice.org

64 bit users

If you dont' have OpenOffice installed in your system you just need to run the following commands:

  1. $ su
  2. # rpm -ivh http://li.nux.ro/download/nux/libreoffice.org-rpms/el6/x86_64/nux-libreoffice.org-rpms-release-0-1.el6.nux.noarch.rpm
  3. # yum install libreoffice.org

If on the other hand you have OpenOffice installed:

  1. $ su
  2. # yum remove openoffice*
  3. # rpm -ivh http://li.nux.ro/download/nux/libreoffice.org-rpms/el6/x86_64/nux-libreoffice.org-rpms-release-0-1.el6.nux.noarch.rpm
  4. # yum install libreoffice.org

And that's it!

Nux is working on Centos 6 desktop oriented remix called Stella so do take a look at his site over at http://www.nux.ro/.

4 comments:

Anonymous said...

I think you may have a copy+paste error:
your two example boxes - both contain the exact same commands.

tangram said...

Hi there!

It wasn't a copy&paste error but I was missing the OpenOffice uninstall step ;)

On both examples you need to change to root, add the repository and install the LibreOffice. However if you have OpenOffice installed you need to uninstall it first. Hence the 2 examples.

I've updated the post.

Thanks for the feedback. It helped the post be more clear and helpful.

tangram said...

I've also added instructions for those with 64 bit systems.

The fact that I've upgraded to a 64 bit processor made me more "x86_64 conscious".

Anonymous said...

thank you, I'm not sure why I was having issues, this should have been easy, thanks for your time sharing.. and saving my sanity