ONLYOFFICE is a powerful and versatile office suite that allows you to edit text documents, spreadsheets, or presentations easily. In the following tutorial, you will learn how to install OnlyOffice on Fedora Linux by downloading the official RPM repository and installing it manually or using the third-party package manager Flatpak which is natively installed.
Before proceeding with the tutorial, ensuring your system is up-to-date with all existing packages is good.
sudo dnf upgrade --refresh
Method 1: OnlyOffice with RPM
The first task is downloading the official RPM package from OnlyOffice’s website. Luckily, this can be done using the command line terminal with the wget command as follows.
Next, install OnlyOffice with the following command.
sudo dnf install onlyoffice-desktopeditors.x86_64.rpm -y
Method 2: OnlyOffice with Flatpak and Flathub
The next best option is to use the Flatpak package manager since it will be easier to receive binary updates if required. This comes installed on Fedora unless you remove it. This is another popular option similar to Snap but is featured amongst many distributions as an alternative third-party installation package manager for the latest packages.
First, re-install the Flatpak manager; this can be skipped if you already have it installed.
sudo dnf install flatpak -y
Next, you need to enable Flatpack using the following command in your terminal.
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
This is optional, but you may need to reboot; for Fedora users, this is not required, but if you install any applications from Flatpak before rebooting your system, do so quickly as you may find issues with icon paths being incorrect, leading to problems launching the applications.
Now run the installation using the following flatpak command.
flatpak install flathub org.onlyoffice.desktopeditors -y
Troubleshoot OnlyOffice Flatpak Installation
First, the most common error when installing a Flatpak from Flathub is the following error output.
"error: Unable to load summary from remote flathub: Can't fetch summary from disabled remote 'flathub,"
The fix is simple, run the following command to enable Flathub.
flatpak remote-modify --enable flathub
This will fix the issue the above issue. The next issue can be access to system files. I would only recommend using the following command if you have access permission with your installation accessing files; use the override command below.
sudo flatpak override org.onlyoffice.desktopeditors --filesystem=host
Please do not use this command by default unless it is needed.
How to Launch OnlyOffice Suite
Now that you have completed the installation launching, it can be done in a few ways.
Using the command line terminal, you can open the software quickly by using the following command.
Alternatively, Flatpak installations can use the following command.
flatpak run org.onlyoffice.desktopeditors
The best way to use OnlyOffice for desktop users that prefer not to use the command line terminal is to open the GUI of the application by following the path.
Activities > Show Applications > OnlyOffice
Once opened, you can create a document, spreadsheet, presentation, or template. You can connect to the cloud from the default screen if you have this available.
Example Word (Click Image to Enlarge):
Example Document (Click Image to Enlarge):
Example Spreadsheet (Click Image to Enlarge):
Example Presentation (Click Image to Enlarge):
Additional Commands & Tips
Update OnlyOffice Suite
Users that installed the DNF version will need to re-download the RPM package and re-install to upgrade your OnlyOffice. But, Flatpak installations can check for updates and quickly install these using the following command.
How to Remove OnlyOffice
Use one of the following commands if you no longer require the application that matches the installation method.
DNF Remove Method
sudo dnf autoremove onlyoffice-desktopeditors.x86_64 -y
Flatpak Remove Method
flatpak remove --delete-data org.onlyoffice.desktopeditors -y
Next, run the following command for any leftover clean-ups required, similar to the autoremove command described for the DNF remove example command.
flatpak remove --unused
In this small tutorial, you have learned two methods to install OnlyOffice on your Fedora desktop for an alternative office suite to Microsoft or, most notably, LibreOffice. Overall, from my testing, OnlyOffice works well on Fedora, but with Flatpak installations, you may need to grant additional permissions, as explained in the troubleshooting.