# Ubuntu – How to uninstall Latex

latexuninstall

Ubuntu and Latex newbie here. Very basic question I have.

I recently installed Latex using the following code:

sudo apt-get install texlive


However, I want to uninstall this and just get the latex base for now.

I tried the following but it doesn't work:

sudo apt-get remove texlive


dpkg --get-selections | grep tex shows that a number of latex related files are installed.

How do I remove texlive?

Many other dependencies also got in when you ran sudo apt-get install texlive. When you ran the apt-get remove command, then only the texlive package was uninstalled, not its dependencies.
sudo apt-get autoremove