180

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

DiverseAndRemote.com
  • 2,101
  • 3
  • 16
  • 16

2 Answers2

267

You can use:

yum -y install packagename

The "-y" implies "yes".

The long option is --assumeyes

ewwhite
  • 198,150
13

Add the following line to /etc/yum.conf

assumeyes=1
Dan
  • 131