how to uninstall libreoffice 6.4 that comes in the ubuntu LTE 20.4?

I’m new to linux and ubuntu. The Libreoffice 6.4 was installed together with the full installation of ubuntu, but it doesn’t work. it opens, show a failure and craches. As I found a version 7, I have installed it and it works perffectly. But I would like to keep my system cleam of softwares that I no longer use. So, can some one help me with instructions on how to uninstall libre office version 6.4?

This site is about LibreOffice, not about Ubuntu or any other operating system, thus, your question is off-topic. Use your operating system’s procedure (I guess, there are plenty web sites with documentation and other reference materials on Ubuntu).

The answer to your question depends from where you installed version 7.0,x. If you used PPA repository for fresh, then you don’t need to do anything, since PPA versions replace base Ubuntu versions. If you downloaded and installed TDF packages from libreoffice.org the answer would be different. Hence the required info is: From where did you download and install version 7.0.x?

I’m sorry if I mistakely made a question out of the topic objetive. I endded up here through some clicks in a help environment, so I didn’t analyse the objective of the topic. and buy the way, wouldn’t be able to… But Thanks for taking the time to answer my question. Although your answer did not solve my problem (wich is realy mine), you gave me directions on how to to solve it. So, thanks! Your time invested has caused a proress on my path!

Though slightly off-topic I’ll try to answer to clarify a bit…

Might be best to fire up the aptitude terminal-based package manager as root and look for the libreoffice metapackage of the 6.4 release installed, if that is, and remove it, which should remove also the automatically installed libreoffice-* packages it depends on. You may want to be careful that it doesn’t remove something you’d like to keep and switch those from automatically to manually installed before actually removing anything. Things may get more complicated if the libreoffice metapackage wasn’t used to install but components are individually installed, but then you could remove the libreoffice-core package that all other components should depend on.

However, if you had to ask this question that might not be the proper tool for you…

Another possibility would be to use an apt command line, but since you now have two versions installed (assuming you installed 7.0 packages via some package manager) you need to make sure to purge the correct one, so

apt list --installed libreoffice

should display two entries, one with the codename of your Ubuntu release separated by a / slash, for example focal (whatever that actually is for your Ubuntu release) and separated with blank and followed by the version string, for example 1:6.4.7-0ubuntu0.20.04.4 or similar, so to deinstall

sudo apt purge libreoffice=1:6.4.7-0ubuntu0.20.04.4

Or, again, if the libreoffice metapackage wasn’t used to install then

apt list --installed libreoffice-core
sudo apt purge libreoffice-core=1:6.4.7-0ubuntu0.20.04.4

(with whatever version string is correct for you).

But for these commands there’s no control over individual dependencies you’d might want to keep (unless you tweak the command line), you’d have to reinstall them later if needed. Instead, you could also use whatever GUI package manager you’re using to remove the LibreOffice 6.4 packages, that wouldn’t be much difference but easier.

Thank you for your directions. I will follow them. I’m quite sure this may be the solution I was looking. for. I’m not really waried about loosing the version 7, becaus I can easily reinstall it through the snap store. wich , by the way, convinced me to abandon windows forever… at least in this this computer of mine.
thank you for your time invested! where are the 5 stars to click on your answer?

Hello,

in a terminal (i.e. xterm, gnome-terminal, etc. ) , type these 3 commands.

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove

You will be prompted for your user password.

Hope that helps.

And if LibreOffice 7.0 was installed via the package manger then that will remove both versions… no?

Btw, since a few years the more friendly apt frontend exists for apt-cache.

And be careful with the autoremove axe, especially if someone usually does not use the apt tools some packages may be pending for autoremove as their parent was deinstalled but in fact are wanted to be kept.

I had found a sugestion like this and have given it a try… there was a failure message with a reason why the procedure was oborted. I don’t really remenber what was it. But, removing both versions wouldn’t be a problem because I know how to install version 7 through snap store. Wich is very easy!
Thanks both of you for the time tken trying to help me on my issue!