Import the public key
When installing a package with the rpm command, the following warning message may be displayed.
Warning: ncurses-devel-5.7-3.20090208.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
This will result in a message that you do not have a public key, and to prevent this message from appearing, import your public key.
The public key is located in the /etc/pki/rpm-gpg/ directory, so run the rpm command with the "--import" option as follows
|[root@Lion ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-xxxxxxx
The part of RPM-GPG-KEY-xxxxxxx is
It is better to check inside the /etc/pki/rpm-gpg/ directory
Now the warning message will no longer be displayed.