-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade CMake version on Ubuntu
Sriranga Kashyap edited this page Dec 13, 2024
·
4 revisions
-
Remove existing cmake by executing
sudo apt purge cmake
-
Download the latest stable binaries from the CMake Github
-
As of writing, is version 3.31.2
-
Extract the archive
tar -xf cmake-3.31.2-linux-x86_64.tar.gz
-
Navigate into directory
cd cmake-3.31.2-linux-x86_64
-
Put the binaries into proper folders:
sudo cp -r bin /usr/ && sudo cp -r share /usr/ && sudo cp -r doc /usr/share/ && sudo cp -r man /usr/share/
-
Navigate out of directory
cd ..
-
Clean up
rm -rf cmake-3.31.2-linux-x86_64 && rm cmake-3.31.2-linux-x86_64.tar.gz