Skip to content

Instantly share code, notes, and snippets.

@OPerepadia
Last active April 8, 2024 00:56
Show Gist options
  • Save OPerepadia/eba3beb62b6b127badd7b74fd62ae711 to your computer and use it in GitHub Desktop.
Save OPerepadia/eba3beb62b6b127badd7b74fd62ae711 to your computer and use it in GitHub Desktop.
Update cmake on Ubuntu 16.04/18.04/20.04
#!/bin/bash
# Uninstall the default version of cmake
sudo apt remove cmake
sudo apt clean all
# Add Kitware apt repository
sudo apt install wget
wget -qO - https://apt.kitware.com/kitware-archive.sh | sudo bash
# Install cmake from Kitware repository
sudo apt update
sudo apt install cmake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment