September 14, 2024

How to Perform Clean Uninstall of MikTex Latex In Linux Ubuntu

In this Latex tutorial, we explain how to perform a clean and complete uninstall of MiKTeX latex compiler in Linux Ubuntu 24.04. Although we are using Linux Ubuntu 24.04 everything explained in this tutorial applies to any other Linux Ubuntu version. The YouTube tutorial accompanying this tutorial is given below.

To uninstall MiKTex from Linux Ubuntu, you first need to open the MikTex console, and then to click on Clean, and click on reset to the factory state. This will erase a lot of configuration files and packages. After that, you need to type the following

sudo apt-get remove miktex
sudo apt autoremove
apt-get autopurge miktex

Then install plocate search tool to quickly search for any file or folders that contain the name “miketex” in their names.

sudo apt install plocate
sudo updatedb

Then, search for

plocate miktex

and erase all the files and folders that contain “miketex” in their name. You can erase a file or a folder by using the command

rm -rfv <name of the file or folder>

Use the result returned by plocate to identify the path of the file or folder. For more instructions, see the YouTube tutorial.