add extra warning when installing EPEL fails, do not install EPEL if libyaml is not needed, fix #1909