Instale o binário mais recente do cmake e aceite a licença automaticamente

0

Estou tentando instalar a última versão binária do cmake, no Ubuntu 16.04 LTS, automaticamente (via ansible).

Eu tenho feito até agora:

mkdir ~/tmp
cd ~/tmp
wget https://cmake.org/files/v3.10/cmake-3.10.0-rc4-Linux-x86_64.sh
chmod +x cmake-3.10.0-rc4-Linux-x86_64.sh
sudo ./cmake-3.10.0-rc4-Linux-x86_64.sh

No entanto, isso traz os acordos de licenciamento.

Existe alguma maneira de adicionar um prefixo ou algo que aceite automaticamente os acordos?

    
por Rekovni 10.11.2017 / 12:00

1 resposta

3

Se você executar o instalador com --help , verá que ele tem uma opção de linha de comando --skip-license :

$ ./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
    
por steeldriver 10.11.2017 / 13:42