LibreOffice

From Gentoo Wiki
Jump to:navigation Jump to:search

LibreOffice is a full office productivity suite. It's a successor to OpenOffice.org and strives to be a better and less bloated office suite.[1][2]

Installation

USE flags

USE flags for app-office/libreoffice A full office productivity suite

accessibility Add support for accessibility (eg 'at-spi' library)
base Enable full support for LibreOffice Base databases (involves additional bundled libs)
bluetooth Enable Bluetooth Support
branding Enable Gentoo specific branding
clang Use Clang compiler instead of GCC
coinmp Use sci-libs/coinor-mp as alternative solver
cups Add support for CUPS (Common Unix Printing System)
custom-cflags Build with user-specified CFLAGS (unsupported)
dbus Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
debug Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
eds Enable support for Evolution-Data-Server (EDS)
firebird Add support for the Firebird relational database
googledrive Enable support for remote files on Google Drive
gstreamer Add support for media-libs/gstreamer (Streaming media)
gtk Add support for x11-libs/gtk+ (The GIMP Toolkit)
java Add support for Java
kde Add support for software made by KDE, a free software community
ldap Add LDAP support (Lightweight Directory Access Protocol)
mariadb Prefer mariadb connector over mysql connector
odk Build the Office Development Kit
pdfimport Enable PDF import via the Poppler library
postgres Add support for the postgresql database
qt5 Add support for the Qt 5 application and UI framework
qt6 Add support for the Qt 6 application and UI framework
test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
valgrind Enable annotations for accuracy. May slow down runtime slightly. Safe to use even if not currently using dev-debug/valgrind
vulkan Enable Vulkan usage via the skia library (clang recommended)

USE flags for app-office/libreoffice-bin A full office productivity suite. Binary package

gnome Add GNOME support
java Add support for Java
kde Add support for software made by KDE, a free software community

LibreOffice does not start without a database enabled. Most users should choose one to enable.

Emerge

Install app-office/libreoffice:

root #emerge --ask --verbose app-office/libreoffice

Binary installation

Since LibreOffice is such a large package to compile, it is also offered in pre-compiled binaries in app-office/libreoffice-bin.

root #emerge --ask --verbose app-office/libreoffice-bin

The binary packages are compiled such that they fit to the libraries of a stable Gentoo system. Attempting to use them on an ~arch system may result in difficulties; this is not supported.

The app-office/libreoffice-bin may not be compatible with the use of the Base application. In this case it may be necessary to use a source build and enable the java and firebird USE flags.

Flatpak

Important
This method uses third party installation from Flathub (which can be potentially compromised by attackers one day) and therefore should not used in trusted or critical environments such as enterprises. The Gentoo Security team does not approve this method. Gentoo Linux is about choice, so please be careful.

An alternative method is to use the package from Flathub. Follow the Flatpak guide to setup prerequisites, then LibreOffice can be installed with:

user $ flatpak install org.libreoffice.LibreOffice

and run via:

user $ flatpak run org.libreoffice.LibreOffice

Spell check

By default, LibreOffice uses app-text/hunspell for spell check. To enable spell checking for a specific language, enable the corresponding language in the L10N useflags of hunspell - either globally in /etc/portage/make.conf or in /etc/portage/package.env.

A package specific to the Finnish language is also available: app-office/libreoffice-voikko.

External resources

References