Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In centos how do you answer yes automatically for yum install so that it is an unassisted install?

share|improve this question
up vote 73 down vote accepted

You can use:

yum -y install packagename

The "-y" implies "yes".

share|improve this answer
13  
Or, 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 5:23
2  
@DavidSchwartz i had no idea what yes was for until just now. amazing! – Conrad.Dean Feb 12 at 2:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.