How To 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 that provides a comprehensive range of productivity tools similar to Microsoft Office. It was developed by The Document Foundation, a non-profit organization dedicated to promoting open-source office software. LibreOffice is available for various operating systems, including Windows, macOS, and Linux, making it accessible to a wide range of users.
LibreOffice Components
LibreOffice includes several applications that cover most office productivity needs:
- Writer – Word processing application (similar to Microsoft Word)
- Calc – Spreadsheet program (similar to Microsoft Excel)
- Impress – Presentation software (similar to Microsoft PowerPoint)
- Draw – Drawing and diagram creation tool
- Base – Database management application (similar to Microsoft Access)
- Math – Mathematical formula editor
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.
Prerequisites
- 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 user
or access to theroot user
. We recommend acting as anon-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:
wget https://www.libreoffice.org/donate/dl/rpm-x86_64/7.4.3/en-US/LibreOffice_7.4.3_Linux_x86-64_rpm.tar.gz
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
”
Step 4. Security and Updates.
For enterprise environments using Rocky Linux, it’s important to consider:
- Security Updates: Rocky Linux provides security updates for packages in their repositories
- Version Management: While repository versions may be older, they receive security patches
- Manual Updates: If using manually installed versions, you’ll need to update them manually
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.