How can I reinstall the latest CMake version?
07:50 16 Apr 2018

I would like to install CMake the latest version in a Linux environment (Ubuntu).

I have CMake version 3.5 installed, and it is not supported by some applications. I tried to upgrade it by uninstalling the current version. But when I reinstall with sudo apt-get install cmake, I get the same version 3.5 reinstalled. How do I install the latest version with sudo apt-get install?

linux bash ubuntu cmake