Last active
March 25, 2020 15:45
-
-
Save Xenosb/9037234e664478f1ea1a14bbc65ad7b7 to your computer and use it in GitHub Desktop.
Update newer cmake on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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