more production-y way of installing packages

don't call yum install unless we have to.  exit if any package
install failed.