I'm looking for a way to completely uninstall LibreOffice, which comes pre-installed with Ubuntu 24.04. I have tried removing it through the package manager, but I keep finding leftover libraries that don't seem to go away. What's the best method to ensure everything is removed? Appreciate any help!
5 Answers
If you’re seeing leftover config files after using `purge`, remember that they might be hiding in your home directory. To get rid of those as well, check the `~/.config` folder for any LibreOffice files and delete them manually.
If you want a more graphical approach, try using Synaptic Package Manager. Just install it with `sudo apt install synaptic`, and you’ll find it much easier to manage packages. You just search for LibreOffice, mark it for complete removal, and it will take care of dependencies too.
You can completely remove LibreOffice along with any unused dependencies using the `sudo apt purge libreoffice*` command. The asterisk ensures that all related packages are removed. After that, run `sudo apt autoremove` to clean up any leftover libraries that are no longer needed.
Some folks say there's really no harm in leaving the old version of LibreOffice installed since it doesn't take up much space. But if the clutter bothers you and you're installing a new version, definitely go for the uninstall route!
After you remove LibreOffice, if you want to clean everything up, you should also use `sudo apt clean` to clear your package cache.
Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux