Created
June 20, 2018 17:15
-
-
Save ryujaehun/ed85074abe345ed7130a859289af543c to your computer and use it in GitHub Desktop.
cmake upgrade
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
#! /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