Install Latest LibreOffice on AlmaLinux 8 and RHEL 8 | Easy Guide Steps

Posted on

Install Latest LibreOffice on AlmaLinux 8 and RHEL 8 | Easy Guide Steps

In this comprehensive guide, you will learn how to Install Latest LibreOffice on AlmaLinux 8 and RHEL 8 directly from the command line. LibreOffice is a powerful, free, and open-source office suite that serves as an excellent alternative to proprietary software like Microsoft Office. Its user-friendly interface and extensive feature set make it a popular choice for both personal and professional use. LibreOffice encompasses a range of applications, including:

  • Writer: A word processor comparable to Microsoft Word.
  • Calc: A spreadsheet program similar to Microsoft Excel.
  • Impress: A presentation application akin to Microsoft PowerPoint.
  • Draw: A vector graphics editor.
  • Base: A database management program.
  • Math: An equation editor.

You can follow the steps outlined below to successfully install LibreOffice on your AlmaLinux 8 or RHEL 8 system.

To begin the installation of the latest version of LibreOffice, you need to have administrative access to your server. This can be achieved either through a root user account or a non-root user with sudo privileges. If you require assistance with setting up a user with sudo privileges, you can refer to a guide on Initial Server Setup with AlmaLinux 8.

Now, let’s proceed with the detailed steps to Install Latest LibreOffice on AlmaLinux 8 and RHEL 8.

Install Latest LibreOffice on AlmaLinux 8 and RHEL 8
Install Latest LibreOffice on AlmaLinux 8 and RHEL 8

Step 1 – Download Latest LibreOffice RPM Package from Linux Command Line

First, ensure your system is up-to-date by running the following command:

sudo dnf update -y

Next, visit the LibreOffice Downloads page. Locate and copy the link for the latest Linux RPM package compatible with AlmaLinux 8 or RHEL 8. Use the wget command to download the package:

sudo wget https://saimei.ftp.acc.umu.se/mirror/documentfoundation.org/libreoffice/stable/7.5.5/rpm/x86_64/LibreOffice_7.5.5_Linux_x86-64_rpm.tar.gz

Once the download is complete, extract the archive using the following command:

sudo tar -xvf LibreOffice_7.5.5_Linux_x86-64_rpm.tar.gz

Now proceed to the next step to Install Latest LibreOffice on AlmaLinux 8 and RHEL 8.

Step 2 – Install LibreOffice using Linux Terminal

Change your current directory to the extracted LibreOffice directory:

sudo cd LibreOffice_*_rpm

Then, navigate to the RPMS subdirectory and list the packages contained within:

# cd RPMS
# ls

This will display a list of RPM packages similar to the following:

**Output**
libobasis7.5-base-7.5.5.2-2.x86_64.rpm
libobasis7.5-calc-7.5.5.2-2.x86_64.rpm
libobasis7.5-core-7.5.5.2-2.x86_64.rpm
libobasis7.5-draw-7.5.5.2-2.x86_64.rpm
libobasis7.5-en-US-7.5.5.2-2.x86_64.rpm
libobasis7.5-extension-beanshell-script-provider-7.5.5.2-2.x86_64.rpm
libobasis7.5-extension-javascript-script-provider-7.5.5.2-2.x86_64.rpm
libobasis7.5-extension-mediawiki-publisher-7.5.5.2-2.x86_64.rpm
libobasis7.5-extension-nlpsolver-7.5.5.2-2.x86_64.rpm
libobasis7.5-extension-pdf-import-7.5.5.2-2.x86_64.rpm
libobasis7.5-extension-report-builder-7.5.5.2-2.x86_64.rpm
libobasis7.5-firebird-7.5.5.2-2.x86_64.rpm
libobasis7.5-gnome-integration-7.5.5.2-2.x86_64.rpm
libobasis7.5-graphicfilter-7.5.5.2-2.x86_64.rpm
libobasis7.5-images-7.5.5.2-2.x86_64.rpm
libobasis7.5-impress-7.5.5.2-2.x86_64.rpm
libobasis7.5-kde-integration-7.5.5.2-2.x86_64.rpm
libobasis7.5-librelogo-7.5.5.2-2.x86_64.rpm
libobasis7.5-libreofficekit-data-7.5.5.2-2.x86_64.rpm
libobasis7.5-math-7.5.5.2-2.x86_64.rpm
libobasis7.5-ogltrans-7.5.5.2-2.x86_64.rpm
libobasis7.5-onlineupdate-7.5.5.2-2.x86_64.rpm
libobasis7.5-ooofonts-7.5.5.2-2.x86_64.rpm
libobasis7.5-ooolinguistic-7.5.5.2-2.x86_64.rpm
libobasis7.5-postgresql-sdbc-7.5.5.2-2.x86_64.rpm
libobasis7.5-python-script-provider-7.5.5.2-2.x86_64.rpm
libobasis7.5-pyuno-7.5.5.2-2.x86_64.rpm
libobasis7.5-writer-7.5.5.2-2.x86_64.rpm
libobasis7.5-xsltfilter-7.5.5.2-2.x86_64.rpm
libreoffice7.5-7.5.5.2-2.x86_64.rpm
libreoffice7.5-base-7.5.5.2-2.x86_64.rpm
libreoffice7.5-calc-7.5.5.2-2.x86_64.rpm
libreoffice7.5-dict-en-7.5.5.2-2.x86_64.rpm
libreoffice7.5-dict-es-7.5.5.2-2.x86_64.rpm
libreoffice7.5-dict-fr-7.5.5.2-2.x86_64.rpm
libreoffice7.5-draw-7.5.5.2-2.x86_64.rpm
libreoffice7.5-en-US-7.5.5.2-2.x86_64.rpm
libreoffice7.5-freedesktop-menus-7.5.5-2.noarch.rpm
libreoffice7.5-impress-7.5.5.2-2.x86_64.rpm
libreoffice7.5-math-7.5.5.2-2.x86_64.rpm
libreoffice7.5-ure-7.5.5.2-2.x86_64.rpm
libreoffice7.5-writer-7.5.5.2-2.x86_64.rpm

Install LibreOffice by using the following command:

sudo dnf localinstall *.rpm -y

Step 3 – How To Run LibreOffice on AlmaLinux 8 and RHEL 8?

Once the installation is complete, you can launch LibreOffice from your Linux desktop. Navigate to your system’s application launcher and search for "LibreOffice." You should see the individual LibreOffice applications listed. Click on the desired application to launch it.

Step 4 – Uninstall LibreOffice from AlmaLinux and RHEL 8

If you wish to remove LibreOffice from your system, you can do so using the following command:

sudo dnf remove libreoffice7.5*

Conclusion

Congratulations! You have successfully learned how to Install Latest LibreOffice on AlmaLinux 8 and RHEL 8 from the command line. LibreOffice provides a comprehensive suite of document-based tools, enabling you to perform various tasks such as writing documents, creating spreadsheets, editing presentations, and much more.

Hopefully, this guide was helpful. You might also be interested in these related articles:

Slack Installation Steps on Rocky Linux 8 from CLI

How To Copy Files and Folders on AlmaLinux

How To Install OpenCV on AlmaLinux 8

FAQs

What is LibreOffice compatible with?

LibreOffice is compatible with a wide range of document formats such as Microsoft Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx), and Publisher.

What version of LibreOffice do I have Linux?

When you open your LibreOffice panel, you can see your version and build number on your dashboard.

Alternative Installation Methods for LibreOffice on AlmaLinux 8 and RHEL 8

While the method described above works perfectly fine, there are a couple of other ways to achieve the same result, each with its own advantages. These alternatives provide flexibility and cater to different preferences. One is using Flatpak, and the other is using Snap.

Alternative 1: Installing LibreOffice using Flatpak

Flatpak is a universal package manager for Linux that allows you to install applications regardless of the underlying distribution. It’s a great way to get the latest versions of software, as packages are often more up-to-date than those available in the distribution’s repositories. This is a great way to Install Latest LibreOffice on AlmaLinux 8 and RHEL 8.

Prerequisites:

  • Flatpak needs to be installed and configured on your system. If you don’t have it, you can install it with the following commands:
sudo dnf install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Installation Steps:

  1. Install LibreOffice:
flatpak install flathub org.libreoffice.LibreOffice

This command will download and install the latest version of LibreOffice from the Flathub repository. You’ll be prompted to confirm the installation and provide your password.

  1. Run LibreOffice:

Once the installation is complete, you can run LibreOffice from the command line:

flatpak run org.libreoffice.LibreOffice

Alternatively, you can find LibreOffice in your application menu, just like any other installed application.

  1. Updating LibreOffice:

To update LibreOffice, use the following command:

flatpak update org.libreoffice.LibreOffice

Advantages of using Flatpak:

  • Latest Versions: Flatpak often provides the most up-to-date versions of applications.
  • Sandboxing: Flatpak applications are sandboxed, meaning they are isolated from the rest of your system. This improves security and prevents conflicts with other applications.
  • Distribution Agnostic: Flatpak works on most Linux distributions, so you can use the same installation method regardless of your operating system.

Alternative 2: Installing LibreOffice using Snap

Snap is another universal package manager that, similar to Flatpak, allows installing applications across different Linux distributions. Snaps are containerized software packages that include all dependencies needed to run the application.

Prerequisites:

  • Snap needs to be installed on your system. On AlmaLinux 8 and RHEL 8, you can install it with:
sudo dnf install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

Installation Steps:

  1. Install LibreOffice:
sudo snap install libreoffice

This command downloads and installs the latest stable version of LibreOffice from the Snap Store.

  1. Run LibreOffice:

You can run LibreOffice after installation by simply typing:

libreoffice

Like Flatpak, the application should also appear in your application menu.

  1. Updating LibreOffice:

Snap automatically updates applications. However, you can manually check for updates and apply them with:

sudo snap refresh libreoffice

Advantages of using Snap:

  • Automatic Updates: Snap automatically updates applications, ensuring you always have the latest security patches and features.
  • Dependency Management: Snaps bundle all dependencies, eliminating compatibility issues.
  • Ease of Use: Snap provides a simple and consistent way to install and manage applications.

Choosing Between Flatpak and Snap:

Both Flatpak and Snap offer similar benefits. The choice between them often comes down to personal preference or the availability of specific applications in each store. It’s also worth noting that some users have preferences based on how the packages are managed and updated. Both will let you Install Latest LibreOffice on AlmaLinux 8 and RHEL 8.

By exploring these alternative installation methods, you can choose the one that best suits your needs and preferences. Whether you opt for the traditional RPM package installation, Flatpak, or Snap, you can enjoy the benefits of LibreOffice on your AlmaLinux 8 or RHEL 8 system.