Centos7 update cmake
1.check installed cmake version
1 | cmake -version |
2.create a new dir and enter it
1 | mkdir /opt/cmake |
3.get install package
1 | wget https://cmake.org/files/v3.26/cmake-3.26.4.tar.gz |
4.decompression
1 | tar -xzvf cmake-3.26.4.tar.gz |
5.enter cmake-3.26.4 folder
1 | cd cmake-3.26.4 |
6.configure install path
1 | ./configure --prefix=/usr/local/cmake |
7.install cmake
1 | make && make install |
8.create symbolic link to /usr/bin
1 | ln -s /usr/local/cmake/bin/cmake /usr/bin/cmake |