Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

Import the public key

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
For CentOS7

RPM-GPG-KEY-CentOS-7
For CentOS8
RPM-GPG-KEY-centosofficial

It is better to check inside the /etc/pki/rpm-gpg/ directory

Now the warning message will no longer be displayed.

Copied title and URL