179

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

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

2 Answers2

266

You can use:

yum -y install packagename

The "-y" implies "yes".

ewwhite
  • 197,159
  • 92
  • 443
  • 809
13

Add the following line to /etc/yum.conf

assumeyes=1
Dan
  • 131
  • 1
  • 2