Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 21 down vote accepted

You can use:

yum -y install packagename

The "-y" implies "yes".

share|improve this answer
5  
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

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.