Hello Njaal,
Miniconda installer doesn't have such option, however it's possible to install miniconda in non-interactive way, by passing all the necessary replies to the installer via pipe. Another issue with non-interactive miniconda installation is the output of license using the command "more", that is not possible to quit by sending reply via pipe. But anyway we can suggest some solution.
Prerequisites:
Now we can run non-interactive miniconda installation:
(more() { :; }; export -f more; printf '%s\n' y '' y '' n n | bash ./miniconda-*.run -p "installation_path")
Some details:
The command declares empty shell function "more()" to override the command "more" inside the miniconda installer. It allows to skip license output, but the license is saved in the file "installation_path/IBM_LICENSE.txt" and can be reviewed later.
The command "printf '%s\n' y '' y '' n n" sends to the installer the set of predefined replies for the next installation questions:
- y - Installing Miniconda distribution to 'installation_path'. Continue? [Y/n];
- '' (two single quotes without space) - Please, press ENTER to continue (before the license output);
- y - Do you accept the license terms? [y/n];
- '' (two single quotes without space) - Please, press ENTER to continue (after the license output);
- n - Configure to use Rocket's secure conda server? [Y/n];
- n - Do you wish the installer to initialize Miniconda by running conda init? [Y/n].
------------------------------
Vladimir Kudriakov
Software Engineer
Rocket Software
------------------------------
Original Message:
Sent: 05-16-2024 07:07
From: Njaal Sletten
Subject: Silent install of miniconda
Hi,
Is it possible to run miniconda-zos-<X.Y>-<yyyy-mm-dd>.run in "silent mode" (with a responsefile or something similar)?
/Njål
------------------------------
Njaal Sletten
DNB
Bergen NO
------------------------------