13

In Ubuntu 20.04 LTS, for general use, how to update LibreOffice from the default version installed by Canonical?

Are there reasons to leave it as is? I regularly use Software Updater to install recommended updates, and wonder why LibreOffice is still on an older version.

Archisman Panigrahi
  • 25,210
  • 17
  • 90
  • 185
Frank P
  • 402
  • 1
  • 6
  • 14
  • 2
    Does this answer your question? [Why don't the Ubuntu repositories have the latest versions of software?](https://askubuntu.com/questions/151283/why-dont-the-ubuntu-repositories-have-the-latest-versions-of-software) – muru Sep 09 '21 at 05:03

1 Answers1

17

It is opinion-based, but having newer version of LibreOffice is IMHO good because of new features.

To install newer LibreOffice you have to use their official PPA:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice
sudo apt-get dist-upgrade # to get newest dependencies for sure

As the result you will get 7.1.6 (at time of writing) instead of default 6.4.7.

Note: reverting to default version is possible by sudo apt-get install ppa-purge && sudo ppa-purge ppa:libreoffice/ppa .

N0rbert
  • 97,162
  • 34
  • 239
  • 423
  • for some odd reason, when I first installed LO on 20.04 I added the repo `ppa:libreoffice/ppa libreoffice-7-0` and that's where it remains. Will your command `ppa-purge ppa:libreoffice-7-0/ppa` remove it to be followed by `sudo add-apt-repository ppa:libreoffice/ppa` followed by the other two lines restore good order or should I just uncheck the ppa in `Software & Updates` and then install the simpler `ppa:libreoffice/ppa` as outlined? – graham Sep 09 '21 at 07:15
  • 1
    Running `sudo ppa-purge ppa:libreoffice/libreoffice-7-0` and then `sudo add-apt-repository ppa:libreoffice/ppa` looks good. – N0rbert Sep 09 '21 at 07:33
  • Thanks - done although the old ppa was still listed in `Software & Updates - Other Software` so I just unchecked it. – graham Sep 09 '21 at 08:45
  • 2
    ¡last step isn't necessary! update to new ubuntu version is NOT necessary: `sudo apt-get dist-upgrade # to get newest dependencies for sure` – Rogelio Prieto May 26 '22 at 18:46