How do you answer yes for yum install automatically

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


Solution 1:

You can use:

yum -y install packagename

The "-y" implies "yes".

Solution 2:

Add the following line to /etc/yum.conf

assumeyes=1