I would like to install cmake the latest version, on Linux environment. I have cmake version 3.5 installed and 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 re-installed. How do I install the latest version with sudo apt-get install ....?
Install the latest CMakeUsing the Snappy package manager is the quickest and easiest way to install the latest version of CMake on Ubuntu Linux. The second option is to download the source code from the CMake website and compile it on your Linux machine.
CMake 3.23. 0 is available for download.
Since you installed cmake by compiling it and then running sudo make install , the solution is for you to: Use cd to go back to the directory where you ran that command. Run sudo make uninstall .
As far as I know the best way to get the latest CMake version installed on any Linux is not by apt but using pip.
Remove the apt cmake and install the latest version from pip which can easily keep up-to-date.
apt remove cmake pip install cmake --upgrade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With