4

I need to uninstall cmake from my Ubuntu machine. I tried via command line as I saw in How can I uninstall software in Ubuntu?

sudo apt-get remove cmake
sudo apt-get purge cmake
sudo apt remove cmake

But it didn't worked, the cmake is still exist in ~/.local/bin dir and when I check the version how to check whether CMake is installed in ubuntu?

cmake --version

I get the cmake version . How can I uninstall and remove cmake?

lior.i
  • 152

1 Answers1

4

It is absolutely normal that ~/.local/bin folder is not maintained by APT.

Remove the file with:

rm -rf ~/.local/bin/cmake

and retry running which cmake or cmake --version to confirm its removal.

N0rbert
  • 103,263