Solve the Public key for xxx.rpm is not installed public key is not installed

解决 Public key for xxx.rpm is not installed

Problem overview

After failing to install the software with yum, a message similar to the following is prompted

# 对应的公钥未安装
Public key for 67ffa375b03cea72703fe446ff00963919e8fce913fbc4bb86f06d1475a6bdf9-cri-tools-1.19.0-0.x86_64.rpm is not installed

The meaning is that I have not installed the public key to verify this software, because when using yum to download the software, the downloaded file will be verified, and the corresponding public key will be used for verification.

Solutions

1. Use the public key

# 进入公钥所在目录
cd /etc/pki/rpm-gpg/

# ll查看此目录下的文件
ll

# 指定公钥(下面的命令中最后的X是你CentOS的版本号,在上面的ll中可以看到)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-X

2. Do not use the public key for checking

installAdd parameters after the command --nogpgcheckso that no checks are done during installation

yum install -y --nogpgcheck xxx

Guess you like

Origin blog.csdn.net/weixin_44829930/article/details/123336232