If you are using rpm -ivh and want to run the setup non-interactively. Follow the steps mentioned.
Tested on Ubuntu and redat/ubi8-init
export ACCEPT_EULA='y' rpm -ivh <package_name>
- export ACCEPT_EULA='y'
- rpm -ivh <package_name>
If you are trying to achieve the same in Dockerfile use the following:
RUN export ACCEPT_EULA='y' && rpm -ivh msodbcsql****.rpm
Note: Make sure export and rpm command is issues against a single RUN.