-1

I would like to uninstall cmake from centos 6.5: I installed it manually and I have 3.0 version. I would like to uninstall it to install a previous version with yum. I deleted all cmake files as suggested in

http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F

and I installed cmake with yum. But when I call:

cmake ..

I receive the following error:

-bash: /usr/local/bin/cmake: No such file or directory

That means that previous installation is not clean. How can I clean it?

3 Answers 3

1

For uninstall it. Try to use

sudo yum remove cmake

or for cmake3

sudo yum remove cmake3

0

Please try to clear bash's cache using:

hash -r

Reference: SE

0

You can unistall cmake2 by the command

 sudo yum unistall cmake

or unistall cmake3 by

sudo yum uninstall cmake3

If "uninstall" doesn't work, try using "remove".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.