Skip to content

Instantly share code, notes, and snippets.

@Xenosb
Last active March 25, 2020 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xenosb/9037234e664478f1ea1a14bbc65ad7b7 to your computer and use it in GitHub Desktop.
Save Xenosb/9037234e664478f1ea1a14bbc65ad7b7 to your computer and use it in GitHub Desktop.
Update newer cmake on Ubuntu 18.04
#!/usr/bin/env bash
# Run as root
VERSION="3.13.4-1"
# Download packages
wget "http://archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake-data_${VERSION}_all.deb"
wget "http://archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake_${VERSION}_amd64.deb"
# Install packges
dpkg -i "cmake-data_${VERSION}_all.deb"
dpkg -i "cmake_${VERSION}_amd64.deb"
# Clean packages
rm "cmake_${VERSION}_amd64.deb" "cmake-data_${VERSION}_all.deb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment