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