This tutorial provides all the required steps to install Flatpak as well as downloading, installing, and running LibreOffice* on Clear Linux* OS.

Please visit the Flatpak website for more information about Flatpak and how to use it. You can also download it here.

Before you begin

This tutorial assumes you have installed Clear Linux OS on your host system. For detailed instructions on installing Clear Linux OS on a bare metal system, visit our bare metal installation tutorial.

Install Flatpak on your host system

Flatpak is included as part of the bundle desktop. To install the application, log in to your user account and enter the following command:

sudo swupd bundle-add desktop

Install and run the LibreOffice Flatpak image

Application developers have the option to bundle their applications using Flatpak to allow the installation of a single distribution of their application on different distributions of Linux, including Clear Linux OS. Flatpak provides a list of applications available through Flathub.

Clear Linux OS enables the Flathub repository by default.

Installing using gnome software

All you need to do is to launch gnome software, search for the LibreOffice app, and click the install button.

install libreoffice step by step

Figure 1: Installing LibreOffice using gnome-software

Installing using the command line

Open the gnome-terminal and type the following command to install the LibreOffice app.

flatpak install --user flathub org.libreoffice.LibreOffice
Installing in user:
org.libreoffice.LibreOffice/x86_64/stable        flathub 2aff77bd5cf1
  permissions: ipc, network, pulseaudio, wayland, x11, dri
  file access: host, xdg-run/dconf
  dbus access: ca.desrt.dconf, org.gtk.vfs.*
  dbus ownership: org.libreoffice.LibreOfficeIpc0
org.libreoffice.LibreOffice.Locale/x86_64/stable flathub 924157b3b009
Is this ok [y/n]: y
Installing for user: org.libreoffice.LibreOffice/x86_64/stable from flathub
[####################] 403 metadata, 4661 content objects fetched; 222574 KiB transferred in 99 seconds
Now at 2aff77bd5cf1.
Installing for user: org.libreoffice.LibreOffice.Locale/x86_64/stable from flathub
[####################] 10 metadata, 71 content objects fetched; 1013 KiB transferred in 3 seconds
Now at 924157b3b009.

Launch LibreOffice

A new set of icons will appear in your Gnome applications list titled LibreOffice. To execute the application, highlight the application and click on the LibreOffice icon. LibreOffice will start normally.

Opening LibreOffice app

Figure 2: Select LibreOffice app

Using the command line

flatpak run org.libreoffice.LibreOffice