171

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

DiverseAndRemote.com
  • 2,011
  • 3
  • 15
  • 16

2 Answers2

253

You can use:

yum -y install packagename

The "-y" implies "yes".

ewwhite
  • 194,921
  • 91
  • 434
  • 799
12

Add the following line to /etc/yum.conf

assumeyes=1
Dan
  • 121
  • 1
  • 2