How to Install LibreOffice on Linux

This guide provides straightforward instructions for installing the LibreOffice productivity suite on various Linux distributions. Whether you use Debian, Ubuntu, Fedora, Arch Linux, or prefer universal package managers like Snap and Flatpak, this article covers the exact terminal commands and methods needed to get the software running on your system quickly.

Installing via Native Package Managers

Most Linux distributions include LibreOffice in their official package repositories. Use the command corresponding to your distribution.

Ubuntu, Debian, and Linux Mint (APT)

Update your local package index and install the suite:

sudo apt update
sudo apt install libreoffice

Fedora, RHEL, and AlmaLinux (DNF)

Install LibreOffice using the DNF package manager:

sudo dnf install libreoffice

Arch Linux and Manjaro (Pacman)

Choose between the latest feature release (libreoffice-fresh) or the well-tested stable release (libreoffice-still):

# For the latest features
sudo pacman -S libreoffice-fresh

# For the stable version
sudo pacman -S libreoffice-still

openSUSE (Zypper)

Install the full suite with Zypper:

sudo zypper install libreoffice

Installing via Universal Package Formats

If you want the newest release regardless of your distribution’s base version, use Flatpak or Snap.

Flatpak (Flathub)

Ensure Flatpak is installed on your system, then run:

flatpak install flathub org.libreoffice.LibreOffice

To run LibreOffice via Flatpak:

flatpak run org.libreoffice.LibreOffice

Snap

If your system supports Snap packages, install LibreOffice with a single command:

sudo snap install libreoffice

Installing via Graphical Software Centers

For a non-terminal approach:

  1. Open your distribution’s application manager (e.g., Ubuntu Software, GNOME Software, or Discover).
  2. Search for LibreOffice.
  3. Select the application and click Install.
  4. Enter your administrator password when prompted to complete the setup.