Linux yum 安装 fio 提示需要 gpg.key

[root@localhost tmp]# yum -y install fio
Loaded plugins: fastestmirror

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 use
for 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.

Problem repository: iso



[root@localhost tmp]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7



Total download size: 13 M
Downloading packages:
Package fio-2.15-0.gab42d06.el7.smartxos.x86_64.rpm is not signed
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                105 MB/s |  13 MB  00:00:00     
warning: /mnt/iso/Packages/perl-IO-Socket-SSL-1.94-7.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY


#再次安装就可以成功了
[root@localhost tmp]# yum -y install fio --nogpgcheck

版权声明:本文为qq_43603365原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。