I am looking for a reliable PPA for cmake backports.

I need it for both Xenial and Trusty (travis-ci). Ideally I would like to have at least cmake 3.8.

There seems to be no reliable PPA with the most modern version of cmake in place but if you are happy with using prebuilt binaries from the cmake download page the following should help (for 64bit Ubuntu):

cd $HOME
wget https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.sh
sudo sh cmake-3.12.0-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir

This is not integrated with the Ubuntu package management system but installs neatly to /usr/local and on my system then demonstrates the following:

andrew@ilium:~$ cmake --version | head -n1
cmake version 3.12.0

Subsequent removal is simply a matter of running the following single command in a Terminal window:

sudo rm -rfv /usr/local/bin/{cmake,cpack,ccmake,cmake-gui,ctest} \
             /usr/local/doc/cmake \
             /usr/local/man1/{ccmake.1,cmake.1,cmake-gui.1,cpack.1,ctest.1} \
             /usr/local/man7/cmake-* \

This leaves your system clean and perhaps ready to install an even more modern version :).


  • cmake: Get the Software The official download page for cmake. Some extra information concerning the .sh installer files.
  • Thanks. I was looking for a ppa for ubuntu to use in travis-ci. I could build things myself for a local computer but I would like to avoid that in a CI server. Still, I got the answer I was looking: No reliable PPA available... – purpletentacle Sep 5 '17 at 22:50
up vote 8 down vote accepted

I know I was asking for a PPA but in general terms any reliable deployment of cmake for 14.04/16.04 is good. Kitware's blog shows an answer:


They seem to officially support a pip wheels release. So you can get latest cmake just by doing:

pip install --upgrade cmake

In addition, if you are using virtualenv or conda, you can have different cmake versions at the same time.

Update: the pip package may show a low version number. At the moment, it is 0.8, however, it does install cmake 3.9

  • it was about to install cmake-0.8.0 – Mina Michael Oct 22 '17 at 11:52
  • Sorry, I am not sure I understand you comment – purpletentacle Oct 22 '17 at 11:54
  • I did pip install --upgrade cmake but I got this: Downloading cmake-0.8.0-cp27-cp27mu-manylinux1_x86_64.whl (19.2MB) 1% |▋ | 337kB thx – Mina Michael Oct 22 '17 at 12:39
  • 1
    yes, the version 0.8.0 refers to the pip package version. The cmake version that it installs is 3.9 (check here pypi.python.org/pypi/cmake) – purpletentacle Oct 22 '17 at 13:54
  • 1
    I see. My mistake, but it is confusing! thx a lot – Mina Michael Oct 22 '17 at 15:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.