Download Cmake Debian ^new^
If you don't want to add third-party repositories, you can download "portable" binaries directly from the CMake website. Go to the CMake Download Page .
While this is the simplest path, the version in the default Debian repositories can sometimes be outdated, especially if you are on the "Stable" release. Method 2: Using the Official Kitware Repository download cmake debian
If you need a newer version of CMake than what Debian provides but still want the convenience of a package manager, you can use the official repository maintained by Kitware (the creators of CMake). If you don't want to add third-party repositories,
Move it to /opt or add the bin folder to your PATH : export PATH=$PATH:/path/to/cmake/bin Method 4: Installing via Snap or Flatpak Method 2: Using the Official Kitware Repository If
Download and install the Kitware GPG key: wget -O - https://kitware.com 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null