open the file repository file

/etc/yum.repos.d/example.repo or you can turn it off globally for all the repositories by editing yum.conf also.

and turn the gpgcheck=1 to gpgcheck=0 , restart yum

and try installing the package once again using yum and it should work now.