A few tips on configuring your yum repository.
1. First update your yum repository.
yum update
2. Make sure you clean your repository so that there isn’t much of a mess.
yum clean
3. Once the yum repository is cleaned check for the packages.
yum list
The above command shows the various packages in the repository.
Every time one installs packages make sure to do the above steps
HTH