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


You can use:

yum -y install packagename

The "-y" implies "yes".

  • 25
    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
  • 4
    @DavidSchwartz i had no idea what yes was for until just now. amazing! – Conrad.Dean Feb 12 '16 at 2:29

Add the following line to /etc/yum.conf

  • 11
    Shouldn't that be assumeyes=1 to prevent yum from prompting for confirmations? – HBruijn Jan 3 '17 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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