Recommended way to uninstall the preinstalled libreoffice

For some reason beyond me Fedora 43 Budgie commes with LibreOffice .

Uninstall with

dnf group remove libreoffice

Does not install libreoffice. What does?

1 Like

Suggest you query the installed packages like this to see if you find what needs to be uninstalled.

Rpm -qa | grep libreoffice

Thanks Barry. Incidentely after I removed the groupd and do an autoremove this is the result:

# dnf autoremove
Package                          Arch   Version                         Repository                       Size
Removing:
 libabw                          x86_64 0.1.3-18.fc43                   d18c000dba6d415a8763ac15eba 269.7 KiB
 libe-book                       x86_64 0.1.3-40.fc43                   d18c000dba6d415a8763ac15eba 450.1 KiB
 libepubgen                      x86_64 0.1.1-21.fc43                   d18c000dba6d415a8763ac15eba 376.2 KiB
 libetonyek                      x86_64 0.1.12-7.fc43                   d18c000dba6d415a8763ac15eba   2.4 MiB
 libnumbertext                   x86_64 1.0.11-9.fc43                   d18c000dba6d415a8763ac15eba 764.3 KiB
 libreoffice-calc                x86_64 1:25.8.4.2-2.fc43               updates                      26.9 MiB
 libreoffice-writer              x86_64 1:25.8.4.2-2.fc43               updates                      12.3 MiB
 libwps                          x86_64 0.4.14-6.fc43                   d18c000dba6d415a8763ac15eba   2.1 MiB
 lpsolve                         x86_64 5.5.2.11-9.fc43                 d18c000dba6d415a8763ac15eba 708.2 KiB
 phonon-backend-vlc-common       noarch 0.12.0-7.fc43                   d18c000dba6d415a8763ac15eba  29.9 KiB
 phonon-common                   noarch 4.12.0-10.fc43                  d18c000dba6d415a8763ac15eba 351.3 KiB
 phonon-qt6                      x86_64 4.12.0-10.fc43                  d18c000dba6d415a8763ac15eba 986.2 KiB
 phonon-qt6-backend-vlc          x86_64 0.12.0-7.fc43                   d18c000dba6d415a8763ac15eba 366.7 KiB
 vlc-plugin-ffmpeg               x86_64 1:3.0.22-1.fc43                 updates                     277.6 KiB
 vlc-plugin-pipewire             x86_64 3-6.fc43                        d18c000dba6d415a8763ac15eba  83.8 KiB
 vlc-plugin-pulseaudio           x86_64 1:3.0.22-1.fc43                 updates                      81.5 KiB
 vlc-plugins-base                x86_64 1:3.0.22-1.fc43                 updates                       7.0 MiB
 vlc-plugins-video-out           x86_64 1:3.0.22-1.fc43                 updates                     650.8 KiB

Transaction Summary:
 Removing:          18 packages

I don’t understand why dnf would remove vlc plugins.

Agree, removal of the group should remove all it’s components

I always remove one by one from the Gnome Sofware (which is also a pain, because there is no batch operation and after each removal it reloads the whole list for a while….)

# rpm -qa | grep libreoffice
libreoffice-data-25.8.4.2-2.fc43.x86_64
libreoffice-ure-common-25.8.4.2-2.fc43.x86_64
libreoffice-ure-25.8.4.2-2.fc43.x86_64
libreoffice-opensymbol-fonts-25.8.4.2-2.fc43.noarch
libreoffice-gtk3-25.8.4.2-2.fc43.x86_64
libreoffice-core-25.8.4.2-2.fc43.x86_64
libreoffice-langpack-en-25.8.4.2-2.fc43.x86_64
libreoffice-pyuno-25.8.4.2-2.fc43.x86_64
libreoffice-pdfimport-25.8.4.2-2.fc43.x86_64
libreoffice-ogltrans-25.8.4.2-2.fc43.x86_64
libreoffice-graphicfilter-25.8.4.2-2.fc43.x86_64
libreoffice-writer-25.8.4.2-2.fc43.x86_64
libreoffice-draw-25.8.4.2-2.fc43.x86_64
libreoffice-calc-25.8.4.2-2.fc43.x86_64
libreoffice-math-25.8.4.2-2.fc43.x86_64
libreoffice-x11-25.8.4.2-2.fc43.x86_64
libreoffice-help-en-25.8.4.2-2.fc43.x86_64
libreoffice-gtk4-25.8.4.2-2.fc43.x86_64

I think that’s because “autoremove” is a global command, not limited to libreoffice group

Once you have a list of packages you can do this trick

sudo dnf remove $( rpm -qa | grep libreoffice )

(you wrote “install” instead of “remove”).

The group you need to remove would be office. Run

dnf group info office

to see the members of this group.

sudo dnf remove libreoffice-*

At least partially a syntax issue I think with the changes between dnf4 and dnf5.
should be dnf4 group remove LibreOffice or (for dnf5) dnf remove @libreoffice

$ sudo dnf group list --hidden | grep -i libreoffice
Updating and loading repositories:
Repositories loaded.
libreoffice-development      LibreOffice Development                            no
libreoffice                  LibreOffice                                       yes

The second column is the group name used for dnf4 and the first column name is used by dnf5, as well as the command syntax change.
Also note that libreoffice is a hidden group (the yes in column 3).

1 Like