How to Install Latest LibreOffice in Linux Desktop

LibreOffice is an open-source and much more powerful personal productivity office suite for Linux, Windows & Mac, that provides feature-rich functions for word documents, data processing, spreadsheets, presentation, drawing, Calc, Math, and more.

LibreOffice has a large number of satisfied users across the globe with almost 200 million downloads as of now. It supports more than 115 languages and runs on all major operating systems.

The Document Foundation team proudly announced the fresh major release of LibreOffice 7.6.4 on 7, December 2023, which is now available for all major platforms including Linux, Windows, and Mac OS.

This new update features a large number of exciting new features, performance, and improvements and is targeted to all kinds of users, but especially appealing to enterprises, early adopters, and power users.

LibreOffice Requirements

  • Kernel 3.10 or higher version.
  • glibc2 version 2.17 or higher version
  • Minimum 256MB and recommended 512MB RAM
  • 1.55GB available Hard disk space
  • Desktop (Gnome or KDE)

Install LibreOffice on Linux Desktops

The installation instructions provided here are for LibreOffice 7.6.4 using US English as the language on a 64-bit system. For 32-bit systems, LibreOffice has discontinued support and no longer offers 32-bit binary releases.

Step 1: Download LibreOffice

Go to the official LibreOffice download page and grab the latest version that is bundled with all the binary packages as a .tar.gz archive file.

Alternatively, you can use the following wget command to download LibreOffice directly in the terminal as shown.

On RHEL-based distributions such as Fedora, CentOS Stream, Rocky, and Alma Linux.

cd /tmp
wget https://download.documentfoundation.org/libreoffice/stable/7.6.4/rpm/x86_64/LibreOffice_7.6.4_Linux_x86-64_rpm.tar.gz

On Debian-based distributions such as Ubuntu and Linux Mint.

cd /tmp
wget https://download.documentfoundation.org/libreoffice/stable/7.6.4/deb/x86_64/LibreOffice_7.6.4_Linux_x86-64_deb.tar.gz

Step 2: Remove Old LibreOffice

If any previously installed LibreOffice versions you have, remove them using the dnf or apt command as shown.

sudo dnf remove libreoffice*  [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo apt remove libreoffice*  [On Debian, Ubuntu and Mint]

The above command will remove the old LibreOffice installation and associated configuration files from your system.

Make sure to install the new version afterward, following the installation instructions for your specific Linux distribution.

Step 3: Install LibreOffice Packages

After downloading the LibreOffice package, use the tar command to extract it under the /tmp directory or in a directory of your choice.

tar zxvf LibreOffice_7.6.4_Linux_x86-64*

After extracting the package, you will find a directory, and within this directory, there will be a sub-directory named RPMS or DEBS. Now, execute the following command to install it.

On RHEL-based distributions:

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

On Debian-based distributions:

cd /tmp/LibreOffice_7.6.4.1_Linux_x86-64_deb/DEBS/
sudo dpkg -i *.deb

Starting LibreOffice in Linux

Once the installation process completes you will have LibreOffice icons in your desktop under Applications –> Office menu or start the application by executing the following command on the terminal.

libreoffice7.6
LibreOffice in Ubuntu
LibreOffice in Ubuntu

In conclusion, installing the latest version of LibreOffice on a Linux desktop is a straightforward process that involves updating the system’s package database, optionally removing the existing LibreOffice installation, and then installing the desired version.

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

84 thoughts on “How to Install Latest LibreOffice in Linux Desktop”

  1. Hi Ravi,

    Good day and thanks for the great post.

    I’d like to ask you for some help I’m getting an error when trying to run the software from the console.

    I’m using an RHEL 8.5 it’s on AWS.

    The error is:

    /opt/libreoffice7.2/program/soffice.bin: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

    Thank you.
    Elber

    Reply

  2. $ sudo https://download.documentfoundation.org/libreoffice/stable/7.1.2/deb/x86_64/LibreOffice_7.1.2_Linux_x86-64_deb.tar.gz

    >>

    --2021-05-24 15:21:14-- https://download.documentfoundation.org/libreoffice/stable/7.1.2/deb/x86_64/LibreOffice_7.1.2_Linux_x86-64_deb.tar.gz
    Resolving download.documentfoundation.org (download.documentfoundation.org)... 2a00:1828:a012:185::1, 89.238.68.185
    Connecting to download.documentfoundation.org (download.documentfoundation.org)|2a00:1828:a012:185::1|:443... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2021-05-24 15:21:15 ERROR 404: Not Found.

    Reply
    • Article reference (404):
      https://download.documentfoundation.org/libreoffice/stable/7.1.2/deb/x86_64/LibreOffice_7.1.2_Linux_x86-64_deb.tar.gz

      –>

      Available from the primary mirror (7.1.3): – https://www.libreoffice.org/donate/dl/deb-x86_64/7.1.3/en-US/LibreOffice_7.1.3_Linux_x86-64_deb.tar.gz

      Reply
  3. There is a time and a place to install programs/packages using the command line – as when installing obscure software from obscure sites. In the case of LibreOffice, there is no need to complicate one’s life by trying to install it using the esoteric and byzantine CLI commands.

    Most of today’s active distros contain LibreOffice in their default repositories. All a user has to do to install LibreOffice is to use their distro’s Software Center or Software Manager. The additional benefit of a package manager is that it will resolve and install any and all dependencies. The package manager can also be used to uninstall the old LibreOffice version, again taking care of any and all dependencies.

    However, there is no need to explicitly uninstall the old version before installing the new version. As one of the first steps in the upgrade process, LibreOffice asks the user if (s)he wants to delete the old version. If the user answers YES, LibreOffice then proceeds with deleting the old version before installing the new one.

    Using CLI to install popular packages that are readily available in the default repositories is just begging for problems, such as mistyping commands or options or package name(s) in the best-case scenario. In the worst-case scenario, using the wrong option or command can result in totally borking the system.

    While it may be macho and leet to use the command line, GUI package managers are included by default in distros to protect users from their clumsy fingers. Let’s not forget that, from the first release of Ubuntu, Canonical has disabled the explicit ‘root’ account to protect users from their own mistakes.

    Reply
    • @Dragonmouth,

      I completely understand your concerns, but the default repositories don’t provide the latest LibreOffice version, that’s the reason we install it from the command line to test the latest version… Also, I do agree that the latest distributions do provide the latest version of LibreOffice, but what If you are using an older distribution release? in this case, these instructions are useful to test out a recent version of the software…

      Reply
  4. I tried to install g++ compiler using “yum install gcc-c++” command but it’s not working. in fact gcc command is not working, what should i do now??

    Reply
    • @Syva,

      Thanks for notifying about those broken links of LibreOffice download. We’ve updated the article with latest downloads to LibreOffice packages.

      Reply
  5. Libreoffice 5.2 x86-64 version is getting installed perfectly on RHEL 5.9, But unable to run it. Running from command line gives the error “GLIBC_2.17 needed” . The glibc on RHEL 5.9 is only 2.5. Is there any way to run Libreoffice 5.2 on RHEL 5.9.

    Reply
    • @Adam,

      Latest LibreOffice requires GLIBC_2.17, i think you should upgrade your system to most recent version or upgrade your GLIBC version..

      Reply
        • @Adam,

          The only way to get the latest version of GLIBC version is to upgrade your CentOS to 6.x version or else compile it from source in current version, but I think its more complex and will get lots of dependencies issues..

          Reply
  6. After downloading the archive, size is only 4K. Due to this, it is not getting extracted.
    If you have any other download link, kindly provide the same.
    Thanks in advance!

    Reply
    • @Sagar,

      I’ve just tried all the links and they are working fine and have more than 200MB in size, could you try downloading on different machine or network and see?

      Reply
  7. How to locate the directory of my current libreoffice Version: 4.3.7.2 Build ID: 4.3.7.2-2.el6? So that i can delete it and install latest libreoffice as per your blog.

    Reply
  8. Following your steps i m trying to install LibreOffice 5.1.2 on Ubuntu 14.04 64 bit. Installation is giving following error:-

    dpkg: error processing archive libreoffice5.1-debian-menus_5.1.2-2_all.deb (–install):
    trying to overwrite ‘/usr/share/appdata/libreoffice5.1-draw.appdata.xml’, which is also in package libreoffice5.1-freedesktop-menus 5.1.0-4
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

    Errors were encountered while processing:
    libreoffice5.1-debian-menus_5.1.2-2_all.deb

    Reply
    • @Rajen,

      Try to remove LibreOffice completely from the system with the help of following commands.

      $ sudo apt-get purge libreoffice*
      $ sudo apt-get install -f
      

      Then try to install again newest LibreOffice as instructed in this article..

      Reply
  9. I installed version 5.1.2 rc2 on Ubuntu 14 64 bit (trusty) using synaptic from repo http://ppa.launchpad.net/libreoffice/ppa/ubuntu

    this seems to work.

    then I downloaded from libreoffice main page this for the offline help
    http://download.documentfoundation.org/libreoffice/stable/5.1.2/deb/x86_64/LibreOffice_5.1.2_Linux_x86-64_deb_helppack_en-US.tar.gz

    when trying to install this package I get an error:
    libobasis5.1-en-us-help
    Dependency is not satisfiable: libobasis5.1-en-us (>= 5.1.2.2)

    What do I do now?

    Reply
  10. Hi. I have libreoffice 4.3 installed on my Debian 8. When I try to uninstall libreoffice 4.3, the apt-get wants to remove gnome. How can I uninstall libreoffice 4.3 without remove gnome?

    Reply
  11. Thanks for the tutorial.
    Just a comment on Fedora 22 : the command is now dnf install *.rpm but the installation failed :
    Error: nothing provides libreoffice5.0-ure >= 5.0.0.5 needed by libobasis5.0-core-5.0.0.5-5.x86_64.
    package libobasis5.0-en-US-base-5.0.0.5-5.x86_64 is not installable.
    package libobasis5.0-en-US-calc-5.0.0.5-5.x86_64 is not installable.

    Needed to install package per package in finding the right order manually and works fine finally !

    Reply
    • @Pavak,
      Yes, there is a LibreOffice Fresh PPA, you can use this PPA to install directly on Ubuntu systems, but same will not work for other distributions..

      Reply
  12. Hi, How I see version LibreOffice in Centos 7??
    How remove Old LibreOffice… When I put

    yum remove libreoffice.org*

    Show message:

    No hay nada concordante con el argumento: libreoffice.org*
    No se han seleccionado paquetes para ser eliminados

    Thank

    Reply
    • @Saptarshi,
      Thanks for bringing to our notice, yes the article was little out dated and we haven’t updated yet. But will soon update the article with latest release…..

      Reply
  13. Hi Ravi

    I’m trying to install the LibreOffice_4.3.1_Linux_x86-64_rpm.tar.gz from http://download.documentfoundation.org/libreoffice/stable/4.3.1/rpm/x86_64/LibreOffice_4.3.1_Linux_x86-64_rpm.tar.gz

    But i get 2 library error messages. –skipbroken doesn’t work. I have tried nogpgcheck , nothng seems to help.

    I’m working on RHEL 6.5, would it be possible for you to help me out with this, as this is really urgent for me to work on Office Docs and Workbooks.

    -Anurag ([email protected])

    Reply
  14. Ultimate stable version:

    download.documentfoundation.org/libreoffice/stable/4.3.0/rpm/x86_64/LibreOffice_4.3.0_Linux_x86-64_rpm.tar.gz

    enjoy!

    regards!

    Reply
  15. M installing libre office on fedora 14 but at the end of installation i am getting below shown error…

    Total size: 553 M
    Installed size: 553 M
    Is this ok [y/N]: y
    Downloading Packages:

    Package libobasis4.2-base-4.2.5.2-2.i586.rpm is not signed

    so please help in debugging this…

    Reply
  16. Step 2 is not necessary,
    Step 4 worked well
    cd / LibreOffice_4.2.0_Linux_x86_rpm/RPMS /

    copy all well and will be fine
    # # For 32 Bit OS # #
    # Cd / tmp/LibreOffice_4.2.0_Linux_x86_rpm/RPMS /
    # Yum localinstall *. Rpm

    Bye friends

    Reply
  17. Thank you very much for the guide. Installation is successfully done by suppressing sign check. But when I try to open it, program is exiting giving error message “Xlib: extension “XINERAMA” missing on display “:0.0”. I dont have a clue about this, since I am a newbie to linux. (I am Using RHEL). Please help.

    Thanks

    Reply
    • Hi did you ever solve this issue with libre-office and the error

      “Xlib: extension “XINERAMA” missing on display “:0.0″.

      Im having same error

      Reply
  18. Yum complains that the package is not signed.

    Two ways:

    1. Just use the simple “rpm -ivh package.rpm” (you get the same result as doing “yum localinstall package.rpm”); or

    2. Edit /etc/yum.conf and change the value of gpgcheck from 1 to 0.

    Reply
  19. Hi thanks for the tut, just a few things I found:

    On step 4, I had to change my path to:
    cd /tmp/LibreOffice_4.1.0.4_Linux_x86-64_rpm/RPMS/

    On step 5, I had to change to:
    libreoffice4.1

    Then it all worked. If anyone’s having issues just try this.

    Reply
  20. Hello,

    each time I try to install the RPM I got this error :

    Error: Package: libobasis4.1-core01-4.1.0.4-4.x86_64 (/libobasis4.1-core01-4.1.0.4-4.x86_64)
    Requires: libreoffice4.1-ure

    I don’t really know if it is important or not but no matter what I do I can’t solve this and it seem to impact the rest of the installation.

    Reply
  21. Hello,
    On fedora 18, I tried, as suggested here:

    yum remove libreoffice.org*
    Gave me:

    No Match for argument: libreoffice.org*
    No Packages marked for removal

    But this worked:
    yum remove libreoffice*

    Regards,
    Rami Rosen

    Reply
  22. i was installing it on fedora 17 and i have got an error ” File not found by glob: *.rpm” at the step

    rpm -Uvh *.rpm

    before this step all things went good.
    please solve it.

    Reply
    • Go to the actual path, for example cd /tmp/LibO_3.6.5_Linux_x86_install-rpm_en-US/RPMS/ directory and run the command again. You must be under RPMS directory to run the command. or use ‘pwd’ command to check your current working directory.

      Reply
  23. I would have to agree that LibreOffice is the best Office suite I’ve used in a long time. I’ve been lately ridiculed and poked fun at by those who are using MS Office 365 on Windows8….their jeers? That the OS I use looks “outdated”….that no one uses a full on-the-hard-drive office suite anymore, that all documents and office inter-operability is done from the cloud these days, that the office suite looks “old” and “clunky”. To them I usually just reply “at least it does what I want it to do, and what it’s supposed to do…..FLAWLESSLY!” Which to me is the ultimate tipping point when it comes to making the decision on whether or not I install and use a piece of software / hardware. I don’t care if it looks like it belongs in a museum, as long as when I approach my machine, power it on, and am able to work on whatever needs working on, and do it with efficiency and with flawless execution, then what care I if it looks pretty to the outside world or not!?

    Reply
  24. @jRuston @Ravi Saive

    It’s not openoffice anymore, it’s LibreOffice.
    Oracle has sabotaged what used to be openoffice.
    Openoffice now has become something you will want to stay away from as far as possible.

    Reply
  25. After using OpenOffice for several years, now LibreOffice is going to be installed. It is by far easier with more ‘functionality’ than the MS Office bar none.

    Excellent Link!

    Reply
  26. I have Fedora 18, and I have followed your instructions, but it will not install….after unpacking the .tar I copy and paste the next command to install it, but it gives me an error message saying that there’s no such file or directory. I tried changing permissions for the file / folder using Beesu…but it still won’t install. I guess I will just wait until Fedora updates it’s repositories…or else I will just use the websites’ installer packages. Thanks Anyway!

    Reply
    • Yes! OpenOffice is far better than MS Office in many terms. Like it’s open source, Cross-platform compatibility, Faster operation performance, free automatic updates and many more.

      Reply
  27. Hello,

    thank you for the tutorial, I have a small update: for RHEL CentOS I did not used rpm command but yum remove and yum localinstall to avoid the damage on rpm database.

    Lucian

    Reply
  28. Hey,

    I am running Fedora 17 on an Acer 64 bit machine (using 64 bit o/s), using Gnome 3.4.2 with 8gb of RAM. I am a novice to Linux, but not to various other o/s and applicaitons (i.e. reasonably IT literate as a user).

    I have tried installing LibreOffice 3.6.3 per your instructions and whilst I can connect to download.documentfoundation.org, it flounders on the HTTP request coming back with the message:

    404 Not Found

    I have checked syntax (including case).

    Any advice please?

    Regards.

    Reply
    • @Ron Bates,

      We have updated the links with the latest release of LibreOffice 3.6.4 and the older version 3.6.3 links are outdated one. Please try again the links will work.

      Thanks..

      Reply
      • Hi Ravi, one question, we are planning to convert few of the win xp os machines to linux open source platform, which is the best desktop linux os will you suggest us..

        Reply
      • Hey,

        I am running Fedora 14 on an HCL 34 bit machine (using 64 bit o/s), useing 2gb of RAM. I am unexpectedly delete some files i want to recover that file.

        I have tried to use LibreOffice 4.2.4 Released – Install on RHEL/CentOS 6.5/5.9 and Fedora 20/12. but i dont have knowledge of this please mail me a steps of use to file recover.

        Any advice please?

        Regards.

        Reply

Leave a Reply to Yolo Cancel reply

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.