Sign up ×
Server Fault is a question and answer site for 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 52 down vote accepted

You can use:

yum -y install packagename

The "-y" implies "yes".

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


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.