
Add the repository to your sources list and update.įor Ubuntu Jammy Jellyfish (22.04): echo 'deb jammy main' | sudo tee /etc/apt//kitware.list >/dev/nullįor Ubuntu Focal Fossa (20.04): echo 'deb focal main' | sudo tee /etc/apt//kitware.list >/dev/nullįor Ubuntu Bionic Beaver (18.04): echo 'deb bionic main' | sudo tee /etc/apt//kitware.list >/dev/null. Wget -O - 2>/dev/null | gpg -dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
If you are using a minimal Ubuntu image or a Docker image, you may need to install the following packages:.It allows you to install latest CMake via apt-get.
Now CMake developer team in Kitware Inc provides APT repositiory. Edit: As GNUton has pointed out, the following only works on Ubuntu.