In centos how do you answer yes automatically for yum install so that it is an unassisted install?
Asked
Active
Viewed 1.7e+01k times
2 Answers
253
You can use:
yum -y install packagename
The "-y" implies "yes".
![](../../users/profiles/13325.webp)
ewwhite
- 194,921
- 91
- 434
- 799
-
28Or, if you don't like memorizing the right way to get "yes" into every program, just use `yes | yum ...`. – David Schwartz Oct 25 '12 at 05:23
-
4@DavidSchwartz i had no idea what `yes` was for until just now. amazing! – Conrad.Dean Feb 12 '16 at 02:29
-
How to provide "No" ? – Chaminda Bandara Jun 24 '21 at 06:48
-
1@ChamindaBandara `yes no` – nacitar sevaht Nov 01 '21 at 15:17