Install latest cmake binary and accept licence automatically
Solution 1:
If you run the installer with --help
you should find that it has a --skip-license
command line option:
$ ./cmake-3.10.0-rc4-Linux-x86_64.sh --help
Usage: ./cmake-3.10.0-rc4-Linux-x86_64.sh [options]
Options: [defaults in brackets after descriptions]
--help print this message
--version print cmake installer version
--prefix=dir directory in which to install
--include-subdir include the cmake-3.10.0-rc4-Linux-x86_64 subdirectory
--exclude-subdir exclude the cmake-3.10.0-rc4-Linux-x86_64 subdirectory
--skip-license accept license