Score:1

Different CMAKEs, unable to remove one of them

cn flag
A J

I have two cmake commands, one has a path /usr/local/bin/cmake, which I would like to uninstall. I tried running apt remove cmake but it gives Package 'cmake' is not installed, so not removed. The other one (which I installed using pip) is located in a virtual environment. However, I would like to keep this one.

N0rbert avatar
zw flag
Please run `sudo apt-get install tree` and post output of `tree /usr/local` into question or upload it to pastebin (if long) and share link.
A J avatar
cn flag
A J
@N0rbert It is very long....Also, I am a bit uncomfortable revealing all packages I have installed....is there no other way to resolve this?
N0rbert avatar
zw flag
Output of `find /usr/local -iname '*cmake*'` maybe useful.
A J avatar
cn flag
A J
output of ```find /usr/local -iname '*cmake*' | cut -d '/' -f 1,2,3,4,5,6 | uniq | sed -e 's/\/usr\/local/ul/g'``` is as follows:
A J avatar
cn flag
A J
ul/bin/ccmake ul/bin/cmake ul/share/bash-completion/completions ul/share/vim/vimfiles ul/share/aclocal/cmake.m4 ul/share/emacs/site-lisp ul/share/cmake-3.21 ul/share/cmake-3.21/Templates ul/share/cmake-3.21/Modules ul/share/cmake-3.21/Help ul/share/cmake-3.23 ul/share/cmake-3.23/Templates ul/share/cmake-3.23/Modules ul/share/cmake-3.23/Help ul/share/doc/Catch2 ul/lib/cmake ul/lib/cmake/Catch2 ul/lib/cmake/opencv4 ul/lib/python3.5/dist-packages ul/doc/cmake-3.21 ul/doc/cmake-3.23
Score:0
zw flag

To remove locally installed cmake you have to remove its executable file by

sudo rm /usr/local/bin/cmake

Also it is recommended to inspect whole /usr/local directory tree for other locally installed objects.

A J avatar
cn flag
A J
But even then it's corresponding supporting directories/file will remain right?
N0rbert avatar
zw flag
Right, they will remain.
A J avatar
cn flag
A J
I want to remove those also. So, I want to remove all cmake files and install cmake again.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.