- Go to Download Page and download the .sh version for Linux x86_64.
-
# We can find tar.gz files are included in the shell
code cmake-3.14.0-rc3-Linux-x86_64.sh
# Help list for cmake.sh
sh cmake-3.14.0-rc3-Linux-x86_64.sh --help
# prefix=/usr/local : All the user packages should be put here
# exclude-subdir : Exclude the directory cmake-3.14.0-rc3-Linux-x86/ itself,
# then the /bin /man /share etc. can be put under separate corresponding folders under /usr/local/
# Also remember to say no to "Do you want to include the subdirectory cmake-3.14.0-rc3-Linux-x86_64?"
# Otherwise the folders of cmake will come under only one subdirectory
sudo sh cmake-3.14.0-rc3-Linux-x86_64.sh --prefix=/usr/local/ --exclude-sudir