merged yum config logic from 4.2, and added support for f9 and centos5