check repolist instead of rpm -qa