install the right repo for centos 6 and 7