Download CMake from: https://cmake.org/download/
wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.tar.gz
tar zxvf cmake-3.*
cd cmake-3.*
./bootstrap --prefix=/usr/local
make -j$(nproc)
make install
cmake --version
cmake version *.*.*
CMake suite maintained and supported by Kitware (kitware.com/cmake).