How to update LibreOffice released version easier?

In Fedora 33 Cinnamon Desktop from Fedora Spins, I, an ordinary user, have been doing as follows:

Login as root:
su
Uninstall old version:
sudo dnf remove libreoffice*
Remove configuration folder of LibreOffice:
cd /home/fedora002/.config/
rm -rf libreoffice
rm -rf libreofficedev
Install new version:

  1. Go to rpm directory
  2. Enter root password
  3. su -c ‘dnf install *.rpm’
    Are there any ways to do it easier than this ?

You can install/upgrade it from the Fedora repository:
https://src.fedoraproject.org/rpms/libreoffice

This is my note book, HP 14-ck0023TU.
I have been using Fedora 33 Cinnamon Desktop from Fedora Spins with dual boot with pre-installed Windows10 from the factory.
Now, I am using 7.0.2.2-2 version by upgrading process as shown in my question.
If I would like to upgrade to libreoffice-7.0.2.2-3.fc33 or libreoffice-7.0.3.1-1.fc33, can you please help teach me ?

Manual upgrades, every time there’s a new version, seems tiresome.
https://flathub.org/apps/details/org.libreoffice.LibreOffice Flathub follows LibreOffice fresh branch and upgrades to the latest minor (e.g. 7.0.3) and major (e.g. 7.1) released version pretty quickly.
After LibreOffice 7.1 goes stable, you can have it without waiting for Fedora 34. Just remove RPM version first.

If you’re also not using Gnome Software, for automatic flatpak updates use systemd: https://github.com/flatpak/flatpak/issues/1399#issuecomment-403065567

There’s also a koji CLI client streamlining download of packages that are not yet in repositories, but flatpak (with auto-upgrades, faster releases and much smaller downloads) is just better in that case, even than a one-liner:
cd $(mktemp -d) && koji download-build --arch=x86_64 --arch=noarch libreoffice-7.0.3.1-1.fc33 && dnf upgrade *

1 Like
sudo dnf --enablerepo updates-testing install libreoffice
sudo dnf --enablerepo updates-testing upgrade libreoffice\*
1 Like

Do I have to uninstall LibreOffice 7.0.2.2 before ?

1 Like

Well, you can remove it if you installed it manually from the official site RPMs:

sudo dnf remove libobasis7\* libreoffice7\*

Otherwise, just use the commands listed above.

just write <sudo dnf update --refresh > in Terminal

1 Like

Assuming your install was from the official fedora repo then a simple “sudo dnf upgrade” should be all that is needed.
If it was not installed from the fedora repo then I would suggest you remove it and then do “sudo dnf install libreoffice*”

From that point on it will stay updated with every update you do on your system and you don’t have to deal with the ~/.config part you showed in your original post. You also do not have to remove the older version when a fedora update gives you a newer version.

3 Likes

Thank you so much.
Yesterday, LibreOffice 7.0.2.2 was installed.
Today dnfdragora updated 7.0.3.1 for me.
I’m so happy.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.