How to import the public.gpg.key for yum [root@midhun~]# yum update sendmail
Repository base already added, not adding again You have enabled checking of packages via GPG keys. This is a good thing.However, you do not have any GPG public keys installed. You need to download the keys for packages you wish to install and install them.You can do that by running the command:
rpm --import public.gpg.key
Alternatively you can specify the url to the key you would like to usefor a repository in the 'gpgkey' option in a repository section and yum will install it for you. For more information contact your distribution or package provider. When you get the above message, just import it from web (Here I am using CentOS) as shown below
[root@midhun ~]# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4