Skip to content

Instantly share code, notes, and snippets.

@ryujaehun
Created June 20, 2018 17:15
Show Gist options
  • Save ryujaehun/ed85074abe345ed7130a859289af543c to your computer and use it in GitHub Desktop.
Save ryujaehun/ed85074abe345ed7130a859289af543c to your computer and use it in GitHub Desktop.
cmake upgrade
#! /bin/bash
sudo apt purge cmake -y
wget https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.tar.gz -O $HOME/cmake-3.11.3-Linux-x86_64.tar.gz
tar -xvf cmake-3.11.3-Linux-x86_64.tar.gz -C $HOME/
cd $HOME/cmake-3.11.3-Linux-x86_64
sudo cp -r bin /usr/
sudo cp -r share /usr/
sudo cp -r doc /usr/share/
sudo cp -r man /usr/share/
cd .. && rm -rf $HOME/cmake-3.11.3-Linux-x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment