Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reinstall the latest cmake version?

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 ....?

like image 793
Juniar Avatar asked Apr 16 '18 14:04

Juniar


People also ask

How do I install the latest CMake version?

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.

What is CMake latest version?

CMake 3.23. 0 is available for download.

How do I remove old versions of CMake?

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 .


1 Answers

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 
like image 88
GNUton Avatar answered Oct 03 '22 06:10

GNUton