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.
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 is now an official CMake APT repository, hosted by Kitware (announcement), which has the latest CMake version. Currently, Ubuntu 16.04 (Xenial) and 18.04 (Bionic) are supported, but not Trusty. Instructions to set it up can be found at https://apt.kitware.com/ . I've reproduced key details here:
After this,
sudo apt-get install cmake
will install the latest CMake.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:
https://blog.kitware.com/cmake-python-wheels/
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
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 thecmake
download page the following should help (for 64bit Ubuntu):This is not integrated with the Ubuntu package management system but installs neatly to
/usr/local
and on my system then demonstrates the following:Subsequent removal is simply a matter of running the following single command in a Terminal window:
This leaves your system clean and perhaps ready to install an even more modern version :).
References: