How To Install LibreOffice on Rocky Linux 9

Install LibreOffice on Rocky Linux 9

In this tutorial, we will show you how to install LibreOffice on Rocky Linux 9. For those of you who didn’t know, LibreOffice is a free and open-source office suite and is often considered a good alternative to the Microsoft Office suite. It offers impressive features, a user-friendly interface, comprehensive, and compatibility with MS Office files. LibreOffice is available for Windows, macOS, and Linux operating systems, and it can be downloaded and installed for free from the LibreOffice website.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of LibreOffice on Rocky Linux. 9.


  • A server running one of the following operating systems: Rocky Linux 9.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for LibreOffice.
  • A non-root sudo useror access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install LibreOffice on Rocky Linux 9

Step 1. The first step is to update your system to the latest version of the package list. To do so, run the following commands:

sudo dnf check-update
sudo dnf install dnf-utils

Step 2. Installing LibreOffice on Rocky Linux 9.

  • Install LibreOffice using AppStream Repository √

By default, LibreOffice is available on Rocky Linux 9 AppStream repository. Now run the following command below to install LibreOffice on your Rocky Linux system:

sudo dnf install libreoffice-writer libreoffice-base libreoffice-impress libreoffice-draw libreoffice-math
  • Install LibreOffice from the official source √

Run the following command to download the latest stable release of LibreOffice:


Next, extract the downloaded file:

tar -xvf LibreOffice_7.4.3_Linux_x86-64_rpm.tar.gz

After that, install using the following command below:

cd LibreOffice_7.4.3_Linux_x86-64_rpm/RPMS/
sudo dnf install *.rpm

Step 3. Accessing LibreOffice on Rocky Linux 9.

Once the installation is completed, you can run LibreOffice from your activities or AppManager by typing “LibreOffice

Install LibreOffice on Rocky Linux 9

Congratulations! You have successfully installed LibreOffice. Thanks for using this tutorial for installing LibreOffice on your Rocky Linux 9 system. For additional help or useful information, we recommend you check the official LibreOffice website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!