I work with Amazon Linux instances and I have a couple scripts to populate data and install all the programs I work with, but a couple of the programs ask:
D
You just need to put -y with the install command.
-y
For example: yum install -y
yum install -y