How do you answer yes for yum install automatically You can use: yum -y install packagename The “-y” implies “yes”.