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
- Java installed, follow the tutorial here if not, it covers the Sun JDK and plugins.
- The tar.gz installation pack from
LibreOffice site.
So first download
Extract the contents
$ tar xvf
LibO_3.5.4_Linux_x86_install-rpm_en-US.tar.gz
(or x86_64)
Move to the extracted directory
$ cd
LibO_3.5.4rc2_Linux_x86_install-rpm_en-US
(or x86_64)
Move to the RPMS directory
$ cd RPMS
Then install all the rpm files
$ sudo rpm -ivh *.rpm
Now move to the desktop-integration
folder
$ cd desktop-integration
A self explanatory choice of 3 is given
libreoffice3.5-freedesktop-menus-3.5.4-2.noarch.rpm
libreoffice3.5-mandriva-menus-3.5.4-2.noarch.rpm
libreoffice3.5-suse-menus-3.5.4-2.noarch.rpm
$ sudo rpm -ivh libreoffice3.5-freedesktop-menus-3.5.4-2.noarch.rpm
Is the one you need for Centos/RedHat
Finish
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