Upgrading CMake

Remove existing cmake:

sudo apt purge cmake

Get the latest stable binaries:


which, as of writing, is version 3.16.5


Extract the archive:

tar -xf cmake-3.16.5-Linux-x86_64.tar.gz

Navigate into directory:

cd cmake-3.16.5-Linux-x86_64

and do the following:

  • sudo cp -r bin /usr/
  • sudo cp -r share /usr/
  • sudo cp -r doc /usr/share/
  • sudo cp -r man /usr/share/

Navigate out of directory:

cd ..

Clean up

  • rm -rf cmake-3.16.5-Linux-x86_64
  • rm cmake-3.16.5-Linux-x86_64.tar.gz

Reference: https://peshmerge.io/how-to-install-cmake-3-11-0-on-ubuntu-16-04/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: