compser: function to check if an rpm version is present in the yum repo

we have to try to see if a given package is available in the yum repo
if so we don't need to install the files on the system