HowTo: Linux Install LibreOffice

Posted on in Categories , , last updated March 31, 2017

How do I install newly released LibreOffice under Debian, Ubuntu or Fedora Linux?

LibreOffice is a productivity suite that is compatible with other major office suites, and available on a variety of platforms. It is free software and therefore free to download, use and distribute. The following software packages are intended to give you a first impression of what LibreOffice is. Please note that you must have Gnome version 2.16 or higher desktop installed on your system.

Method #1 – Install libreoffice using apt-get command on Debian/Ubuntu Linux

This is the easiest method. Open the terminal and type the apt-get command or apt command:
$ sudo apt-get update
$ sudo apt-get install libreoffice

OR
$ sudo apt update
$ sudo apt install libreoffice

You can now start using libreoffice from GUI menus.

Method #2 – Install latest version of libreoffice from the official site for Debian/Ubuntu Linux

Visit this page and grab the 32 or 64 bit tar ball. You can use the wget command:
$ cd /tmp
$ wget http://download.documentfoundation.org/libreoffice/stable/5.3.1/deb/x86_64/LibreOffice_5.3.1_Linux_x86-64_deb.tar.gz

Sample outputs:

Fig.01: Downloading LibreOffice
Fig.01: Downloading LibreOffice

Untar File

Type the following tar command:
$ tar -zxvf LibreOffice_5.3.1_Linux_x86-64_deb.tar.gz
Sample outputs:

LibreOffice_5.3.1.2_Linux_x86-64_deb/
LibreOffice_5.3.1.2_Linux_x86-64_deb/readmes/
LibreOffice_5.3.1.2_Linux_x86-64_deb/readmes/README_en-US
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-en-us-math_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-gnome-integration_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-filter-data_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-calc_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-dict-fr_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-kde-integration_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-images_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-en-us-base_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-extension-javascript-script-provider_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-ogltrans_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-graphicfilter_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-dict-es_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-calc_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-en-us_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-base_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-librelogo_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-pyuno_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-impress_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-xsltfilter_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-ure_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-en-us-calc_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-extension-mediawiki-publisher_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-en-us-res_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-ooofonts_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-core_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-writer_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-writer_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-extension-beanshell-script-provider_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-math_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-draw_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-onlineupdate_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-en-us_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-base_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-debian-menus_5.3.1-2_all.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-dict-en_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-postgresql-sdbc_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-extension-report-builder_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3-draw_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-extension-pdf-import_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-en-us-writer_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-ooolinguistic_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-extension-nlpsolver_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libreoffice5.3_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-python-script-provider_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-impress_5.3.1.2-2_amd64.deb
LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS/libobasis5.3-math_5.3.1.2-2_amd64.deb

Install LibreOffice deb files

First, update existing OpenOffice.org, enter:
$ LibreOffice_5.3.1.2_Linux_x86-64_deb/DEBS
Finally, install the same using the dpkg command, enter:
$ sudo dpkg -i *.deb
Sample outputs:

electing previously unselected package libobasis5.3-base.
(Reading database ... 115362 files and directories currently installed.)
Preparing to unpack libobasis5.3-base_5.3.1.2-2_amd64.deb ...
Unpacking libobasis5.3-base (5.3.1.2-2) ...
Selecting previously unselected package libobasis5.3-calc.
Preparing to unpack libobasis5.3-calc_5.3.1.2-2_amd64.deb ...
Unpacking libobasis5.3-calc (5.3.1.2-2) ...
Selecting previously unselected package libobasis5.3-core.
Preparing to unpack libobasis5.3-core_5.3.1.2-2_amd64.deb ...
Unpacking libobasis5.3-core (5.3.1.2-2) ...
....
..
...
Setting up libobasis5.3-writer (5.3.1.2-2) ...
Setting up libobasis5.3-xsltfilter (5.3.1.2-2) ...
Setting up libreoffice5.3 (5.3.1.2-2) ...
Setting up libreoffice5.3-dict-en (5.3.1.2-2) ...
Setting up libreoffice5.3-dict-es (5.3.1.2-2) ...
Setting up libreoffice5.3-dict-fr (5.3.1.2-2) ...
Setting up libreoffice5.3-draw (5.3.1.2-2) ...
Setting up libreoffice5.3-en-us (5.3.1.2-2) ...
Setting up libreoffice5.3-impress (5.3.1.2-2) ...
Setting up libreoffice5.3-math (5.3.1.2-2) ...
Setting up libreoffice5.3-writer (5.3.1.2-2) ...
Setting up libobasis5.3-base (5.3.1.2-2) ...
Setting up libobasis5.3-calc (5.3.1.2-2) ...
Setting up libobasis5.3-librelogo (5.3.1.2-2) ...
Setting up libobasis5.3-postgresql-sdbc (5.3.1.2-2) ...
Setting up libreoffice5.3-base (5.3.1.2-2) ...
Setting up libreoffice5.3-calc (5.3.1.2-2) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...

Installation Location

LibreOffice is located at /opt/libreoffice5.3/ and binaries are stored in /opt/libreoffice5.3/program/ directory. You need to type the following command to use the same:
$ cd /opt/libreoffice5.3/programs/
Various components:

  1. simpress – LibreOffice Impress is a presentation program, similar to Microsoft PowerPoint and Apple Keynote
  2. sdraw – LibreOffice Draw is a vector graphics editor application, similar to Microsoft similar features to desktop-publishing software.
  3. scalc – LibreOffice Calc is a spreadsheet application, similar to Microsoft Excel and Lotus 1-2-3.
  4. swriter – LibreOffice Writer is a word processor application, similar to Microsoft Word and WordPerfect.
  5. sbase – LibreOffice Base is a database management program, similar to Microsoft Access.
  6. smath – LibreOffice Math is a tool for creating and editing mathematical formula, similar to Microsoft Equation Editor.
  7. soffice – LibreOffice

To start LibreOffice Writer, enter:
$ /opt/libreoffice5.3/program/swriter filename
OR
$ cd /opt/libreoffice5.3/program/
./swriter &

Sample outputs:

Fig.02: Libreoffice Writer a word processor in action
Fig.02: Libreoffice Writer a word processor in action

Alternatively, you can type the following and pick program as you like:
./soffice
Sample outputs:
LibreOffice Screenshot
LibreOffice Screenshot

A Note About Fedora Linux (RPM) Installation

Type the following commands to download the same for RPM based distros such as Fedora Linux. All builds are English-only (en-US). Also note that the LibreOffice branding and renaming is new and work in progress. You may still see old graphics, icons or old websites references in help systems. Use the wget command to download rpm tar ball, enter:
$ wget http://download.documentfoundation.org/libreoffice/stable/5.3.1/rpm/x86_64/LibreOffice_5.3.1_Linux_x86-64_rpm.tar.gz
Use the tar command to untar it, enter:
tar -zxvf LibreOffice_5.3.1_Linux_x86-64_rpm.tar.gz
Sample outputs:

LibreOffice_5.3.1.2_Linux_x86-64_rpm/
LibreOffice_5.3.1.2_Linux_x86-64_rpm/readmes/
LibreOffice_5.3.1.2_Linux_x86-64_rpm/readmes/README_en-US
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-math-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-math-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-en-US-res-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-dict-fr-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-en-US-base-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-kde-integration-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-impress-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-calc-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-writer-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-impress-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-en-US-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-en-US-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-images-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-extension-mediawiki-publisher-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-base-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-ooolinguistic-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-ure-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-dict-en-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-gnome-integration-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-en-US-calc-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-extension-javascript-script-provider-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-en-US-writer-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-core-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-graphicfilter-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-ooofonts-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-en-US-math-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-calc-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-extension-nlpsolver-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-draw-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-librelogo-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-python-script-provider-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-ogltrans-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-postgresql-sdbc-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-freedesktop-menus-5.3.1-2.noarch.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-draw-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-filter-data-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-pyuno-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-extension-report-builder-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-writer-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-dict-es-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-extension-pdf-import-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-onlineupdate-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libreoffice5.3-base-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-xsltfilter-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/libobasis5.3-extension-beanshell-script-provider-5.3.1.2-2.x86_64.rpm
LibreOffice_5.3.1.2_Linux_x86-64_rpm/install

Type the following commands to install it:
$ cd LibreOffice_5.3.1.2_Linux_x86-64_rpm/RPMS/
$ sudo yum install *.rpm

All binaries are located at /opt/libreoffice5.3/program directory. To start LibreOffice, enter:
$ /opt/libreoffice5.3/program/soffice
To start OO calc, enter:
$ /opt/libreoffice5.3/program/scalc
To start LibreOffice calc, enter:
$ /opt/libreoffice5.3/program/scalc
Sample outputs:

Fig.04: OpenOffice.Org vs LibreOffice
Fig.04: OpenOffice.Org vs LibreOffice

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

6 comment

  1. if you not have icons menu present,make this .
    Application,clic right edition of menu =>News elements and add icons of you libreoffice,but before make search libreoffice in you system disk. is easy click select libreoffice calc and slid directly in Menu principal.

  2. I have followed all the steps, but when I enter “/opt/libreoffice3/program/soffice” it gives me an error:
    the application cannot be started. exception occured raising singleton. loading component failed: deploymentli.uno.so

Leave a Comment