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

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

cd /tmp

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.

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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

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.


Leave a Reply
  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: cannot open shared object file: No such file or directory

    Thank you.


  2. $ sudo


    --2021-05-24 15:21:14--
    Resolving ( 2a00:1828:a012:185::1,
    Connecting to (|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.

    • Article reference (404):


      Available from the primary mirror (7.1.3): –

  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.

    • @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…

  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??

    • @Syva,

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

  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.

    • @Adam,

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

        • @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..

  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!

    • @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?

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

  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:

    • @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..

  9. I installed version 5.1.2 rc2 on Ubuntu 14 64 bit (trusty) using synaptic from repo

    this seems to work.

    then I downloaded from libreoffice main page this for the offline help

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

    What do I do now?

  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?

  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 >= needed by libobasis5.0-core-
    package libobasis5.0-en-US-base- is not installable.
    package libobasis5.0-en-US-calc- is not installable.

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

    • @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..

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

    yum remove*

    Show message:

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


    • @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…..

  13. Hi Ravi

    I’m trying to install the LibreOffice_4.3.1_Linux_x86-64_rpm.tar.gz from

    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])

  14. Ultimate stable version:



  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- is not signed

    so please help in debugging this…

  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

  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.


    • 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

  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.

  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:

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

  20. Hello,

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

    Error: Package: libobasis4.1-core01- (/libobasis4.1-core01-
    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.

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

    yum remove*
    Gave me:

    No Match for argument:*
    No Packages marked for removal

    But this worked:
    yum remove libreoffice*

    Rami Rosen

  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.

    • 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.

  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!?

  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.

  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!

  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!

    • 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.

  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.


  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, it flounders on the HTTP request coming back with the message:

    404 Not Found

    I have checked syntax (including case).

    Any advice please?


    • @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.


      • 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..

      • 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?



Got Something to Say? Join the Discussion...

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.