How to update LibreOffice without removing previosu versions?

From LIbreOffice, I keep getting an icon about updating the system. From the help menu, check for updates I get the lines:

LibreOffice 24.2.4 is available.

The installed version is LibreOffice 7.6.7.2.

I downloaded the gz file (LibreOffice_24.2.4_Linux_x86-64_rpm.tar.gz) and tried to install it (update) with:

sudo dnf install ./LibreOffice_24.2.4_Linux_x86-64_rpm.tar.gz

I also extract the folder and tried

sudo dnf install ./LibreOffice_24.2.4_Linux_x86-64_rpm.tar

But I got the same answer:

No match for argument: ./LibreOffice_24.2.4_Linux_x86-64_rpm.tar.gz
Error: Unable to find a match: ./LibreOffice_24.2.4_Linux_x86-64_rpm.tar.gz

From the internet, I have seen many solutions that require erasing the old version and reinstalling it from scratch.
My question is: Is it possible to update LibreOffice (and other software, for that matter) without manually erasing the older versions?

I ask because I am afraid that, by manually erasing targets, there is the risk of (a) losing previous customization files and (b) installing two versions, one on top of the other.

Thank you

First extract the files from the tar file and changed directory into the resulting directory

tar xf ./LibreOffice_24.2.4_Linux_x86-64_rpm.tar.gz
cd LibreOffice_24.2.4.2_Linux_x86-64_rpm/RPMS

Here you should find quite a lot of rpm files which you can install individually using dnf, for example dnf install libreoffice24.2-writer-24.2.4.2-2.x86_64.rpm

Thank you. I tried to launch a recursive installation with:

$ sudo dnf install ./libreoffice24.2-*.rpm
[sudo] password for gigiux: 
Last metadata expiration check: 1:06:50 ago on Fri 21 Jun 2024 11:33:20 AM CEST.
Error: 
 Problem 1: conflicting requests
  - nothing provides libobasis24.2-core >= 24.2.4.2 needed by libreoffice24.2-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-core <= 24.2.4.2-2 needed by libreoffice24.2-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-images >= 24.2.4.2 needed by libreoffice24.2-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-images <= 24.2.4.2-2 needed by libreoffice24.2-24.2.4.2-2.x86_64 from @commandline
 Problem 2: conflicting requests
  - nothing provides libobasis24.2-base >= 24.2.4.2 needed by libreoffice24.2-base-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-base <= 24.2.4.2-2 needed by libreoffice24.2-base-24.2.4.2-2.x86_64 from @commandline
 Problem 3: conflicting requests
  - nothing provides libobasis24.2-calc >= 24.2.4.2 needed by libreoffice24.2-calc-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-calc <= 24.2.4.2-2 needed by libreoffice24.2-calc-24.2.4.2-2.x86_64 from @commandline
 Problem 4: conflicting requests
  - nothing provides libobasis24.2-core >= 24.2.4.2 needed by libreoffice24.2-dict-en-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-core <= 24.2.4.2-2 needed by libreoffice24.2-dict-en-24.2.4.2-2.x86_64 from @commandline
 Problem 5: conflicting requests
  - nothing provides libobasis24.2-core >= 24.2.4.2 needed by libreoffice24.2-dict-es-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-core <= 24.2.4.2-2 needed by libreoffice24.2-dict-es-24.2.4.2-2.x86_64 from @commandline
 Problem 6: conflicting requests
  - nothing provides libobasis24.2-core >= 24.2.4.2 needed by libreoffice24.2-dict-fr-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-core <= 24.2.4.2-2 needed by libreoffice24.2-dict-fr-24.2.4.2-2.x86_64 from @commandline
 Problem 7: conflicting requests
  - nothing provides libobasis24.2-draw >= 24.2.4.2 needed by libreoffice24.2-draw-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-draw <= 24.2.4.2-2 needed by libreoffice24.2-draw-24.2.4.2-2.x86_64 from @commandline
 Problem 8: conflicting requests
  - nothing provides libobasis24.2-en-US >= 24.2.4.2 needed by libreoffice24.2-en-US-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-en-US <= 24.2.4.2-2 needed by libreoffice24.2-en-US-24.2.4.2-2.x86_64 from @commandline
 Problem 9: conflicting requests
  - nothing provides libobasis24.2-impress >= 24.2.4.2 needed by libreoffice24.2-impress-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-impress <= 24.2.4.2-2 needed by libreoffice24.2-impress-24.2.4.2-2.x86_64 from @commandline
 Problem 10: conflicting requests
  - nothing provides libobasis24.2-math >= 24.2.4.2 needed by libreoffice24.2-math-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-math <= 24.2.4.2-2 needed by libreoffice24.2-math-24.2.4.2-2.x86_64 from @commandline
 Problem 11: conflicting requests
  - nothing provides libobasis24.2-writer >= 24.2.4.2 needed by libreoffice24.2-writer-24.2.4.2-2.x86_64 from @commandline
  - nothing provides libobasis24.2-writer <= 24.2.4.2-2 needed by libreoffice24.2-writer-24.2.4.2-2.x86_64 from @commandline
(try to add '--skip-broken' to skip uninstallable packages)

Is there a more effective way to install the whole content of RPMS?
And why the problem with libobasis24.2?

I recommend you to install Libreoffice from Fedora repos.

sudo dnf install @libreoffice
1 Like

Hi @gigiux ,
I notice LibreOffice version 24.2.4 is packaged for Fedora 40 see … libreoffice - Fedora Packages so you should be okay to just do an update with dnf if you are using F40. If you are still on F39, do a sudo dnf distro-sync first then sudo dnf system-upgrade download --releasever=40 followed with a sudo dnf system-upgrade reboot and that should get you to the latest LibreOffice via a Fedora package.
Edit: Without removing previous versions. Is this strictly necessary?
Edit: Just checked my installed version of LibreOffice on F40 and it is 24.2.4.2

F39 has the older version the OP wanted to update, F40 has the latest.

He is trying to install from a tar.gz file. Also, programs from Fedora repositories don’t check for updates themselves AFAIK (at least this is the case with Firefox). That is why I suggest him to use dnf to install and keep Libreoffice up to date.

1 Like

Yeah I got that, it’s why I noted the update in F40 for LibreOffice. F39 has the version noted by the OP which is why I also included the system upgrade info just in case.

I updated the sstem with sudo dnf -y update but LO continues to tell me there are updates. Shall I download the files in the link and install them one by one?

What does uname -r give you?

6.8.11-300.fc40.x86_64

Since you’re on F40 you could do sudo dnf reinstall libreoffice and the sudo dnf distro-sync should do it for you as well.

Thank you. I tried with:

$ sudo dnf reinstall libreoffice
[sudo] password for gigiux: 
Last metadata expiration check: 1:36:18 ago on Fri 21 Jun 2024 11:33:20 AM CEST.
Package libreoffice available, but not installed.
No match for argument: libreoffice
Error: No packages marked for reinstall.

and

$ sudo dnf distro-sync
Last metadata expiration check: 1:36:54 ago on Fri 21 Jun 2024 11:33:20 AM CEST.
Dependencies resolved.
Nothing to do.
Complete!

So I guess I simply need to ignore the LO icon warning…

The libobasis package which are mentioned in the message should be included in the dnf command.

So dnf install ./libreoffice24.2-*.rpm libobasis24.2-base-24.2.4.2-2.x86_64.rpm libobasis24.2-calc-24.2.4.2-2.x86_64.rpm libobasis24.2-core-24.2.4.2-2.x86_64.rpm libobasis24.2-draw-24.2.4.2-2.x86_64.rpm libobasis24.2-en-US-24.2.4.2-2.x86_64.rpm and repeat with adding rpm files to the list intil no missing packages are reported. Or just install every rpm files found in the directory.

If you just want to test out the latest Libreoffice, installing the flatepak version is way easier, and doesn’t conflict with your current installed version.

1 Like

That’s not really optimal. We should try to sort this.

1 Like

I’ll try the flatepak then, thank you. The icon is still there:
Screenshot from 2024-06-21 13-16-56

Is it possible that the reinstall command doesn’t yield any results since the initial LibreOffice package wasn’t installed from the repos in the first place? This would explain why there was no update proposed by dnf, and why LibreOffice proposes for updates directly from the app. The LibreOffice version from the repos doesn’t propose for updates AFAIK.

Presuming that the user config files are kept in the same location, removing the existing LibreOffice installation and installing it from the repos, via sudo dnf install libreoffice might do the trick?

2 Likes

With the Flatpak, you can revert to a different commit aor mask the the package altogether so it won’t update.