This short post is to install LibreOffice
on Centos 6/RHEL or similar rpm based distro without the unwanted packages from the repo.
LibreOffice is a very nice lightweight
alternative to Microsoft Office and Open Office and is very well
suited for Centos 6 (or Fedora/Red Hat). With a full set of features such as Spreadsheet, Presentation, Database and Formula it makes a very useful addition to your Linux Desktop. It is very easy to install
with a few simple commands.
Update The pre-release 4.0 edition now has export chart as graphic facility in Calc, so charts can be saved separately.
Note: It can be installed from the repo BUT that comes with packages you may not want such as openjdk and others, this method installs ONLY LibreOffice and we use the Sun JDK for the Java dependencies with NO openJDK necessary whatsoever.
You will need
So first download
- Java installed, follow the tutorial here if not, it covers the Sun JDK and plugins.
- The tar.gz installation pack from
Extract the contents
$ tar xvf
Move to the extracted directory
Move to the RPMS directory
$ cd RPMS
Then install all the rpm files
$ sudo rpm -ivh *.rpm
Now move to the desktop-integration
$ cd desktop-integration
A self explanatory choice of 3 is given
$ sudo rpm -ivh libreoffice3.5-freedesktop-menus-3.5.4-2.noarch.rpm
Is the one you need for Centos/RedHat
To run it just type
$ libreoffice3.5 (or the version you use)
(Ensure you have the desktop
integration package installed)
The Desktop integration pack is required even though it doesn't actually place anything on the Desktop in Fluxbox.
If using Fluxbox you can add an entry
to your ~/.fluxbox/keys file, for example
$ vi ~/.fluxbox/keys
Mod1 o : ExecCommand libreoffice3.5
Labels: Centos 6, LibreOffice, NO openJDK, RHEL