I am installing Geant4.10.04 in Ubuntu 14.04 and it needs CMake version 3 but while installing it is taking the old CMake version which leads to failure in installation.

Please guide me how to uninstall the old version or uninstall all CMake versions and then reinstall latest CMake version.


The default version of CMake in Ubuntu 14.04 is 2.8.12. However, 14.04 also supports CMake 3.5.1 using the package cmake3. To install it, use the following command:

sudo apt-get install cmake3

It should automatically uninstall the current version of CMake – check the output before confirmation. (Unfortunately, I don’t have any 14.04 machine available to check it for you now.)

If it wouldn’t uninstall the current version of CMake, cancel the installation and use this command first:

sudo apt-get remove cmake

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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