How can we uninstall LibreOffice when installed from .debs via their website? These make no entries in the Software Center, so cannot be uninstalled that way. And following other guides such as How to uninstall LibreOffice? or Deleting duplicate LibreOffice programs do not work on Lubuntu/APT 1.6.12 - no packages are displayed.
I would avoid any wildcards in
apt
commands unless absolutely necessary. In your case I'd opt for listing what is installed (dpkg -l
) and just remove those specific packages thus avoiding all complications from the use of wildcards. FYI: Lubuntu is no different to any other Ubuntu (or flavor) for the 18.04 in this regard.Package managers are an easier bet though; as they list all packages and not just 'selected' ones like Software Centre.
synaptic
is installed by a default Lubuntu 18.04 LTS installation (https://packages.ubuntu.com/bionic/lubuntu-desktop) and is another option, though there there are many others too.Also please note I booted a very recent QA-test install of Lubuntu 18.04.4 (for the picture), and no LibreOffice packages are installed by default (see prior list of packages installed) so none were found. Your packages may have been installed manually, thus removing them will depend on how you installed them, thus prior details could differ if you installed flatpak, snap etc.
Lubuntu 18.04 LTS comes with
abiword
andgnumeric
only by default, not LibreOffice.The trick is to use double-quotes in an APT search for Lubuntu:
Now it is possible to list only those which you want to remove with
apt list "libreoffice6.1*" "libobasis6.1*"
:Now these can be removed with
sudo apt purge "libreoffice6.1*" "libobasis6.1*"
. Check any other versions withlist
before purging them withpurge
to ensure it doesn't remove anything else accidentally.Note at least on my removal of 6.3, it left two dead .desktop files for LibreOffice 6.3 Draw and Math. Solution was to delete them with MenuLibre.
Presto! Left with only v6.4 installed, and over 650MB of disk space freed.