Note: On Ubuntu 26.04 LTS, this typically installs CMake 4.2.x . Method 2: Installing the Latest Version (Snap)

For developers who prefer APT but need the latest releases directly from the CMake creators, use the Kitware APT Repository .

Visit the CMake Download page to get the latest .tar.gz file, or use wget : wget https://github.com Use code with caution. Extract and compile:

tar -zxvf cmake-4.3.2.tar.gz cd cmake-4.3.2 ./bootstrap make -j$(nproc) sudo make install Use code with caution. Comparison of Methods