When YUM is installed, it prompts: No GPG public key has been installed, please download and install the software signature public key you want to install

  • In the CentOS 7.7 operating system, when installing the KVM component, it appears that no GPG public key has been installed, and it is required to import it using rpm --import public.gpg.key

Insert picture description here
Under normal circumstances, the GPG KEY will be available in the system, in the directory of your Linux installation CD, or in the /etc/pki/rpm-gpg/ directory, for example, my system is in the /etc/pki/rpm-gpg/ directory Next, there is a RPM-GPG-KEY-CentOS-7
Insert picture description here

Solution: Generally, running the command directly can solve this small problem perfectly.

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

After the execution is complete, use yum to install the KVM component package, and you can install it normally
Insert picture description here

Guess you like

Origin blog.csdn.net/panrenjun/article/details/114939110