185

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

ewwhite
  • 201,205

2 Answers2

273

You can use:

yum -y install packagename

The "-y" implies "yes".

The long option is --assumeyes

ewwhite
  • 201,205
14

Add the following line to /etc/yum.conf

assumeyes=1
Dan
  • 141