In centos how do you answer yes automatically for yum install so that it is an unassisted install?
2 Answers
You can use:
yum -y install packagename
The "-y" implies "yes".
The long option is --assumeyes
-
28Or, if you don't like memorizing the right way to get "yes" into every program, just use
yes | yum ...
. Oct 25, 2012 at 5:23 -
4@DavidSchwartz i had no idea what
yes
was for until just now. amazing! Feb 12, 2016 at 2:29 -
-
1