在centos系统中使用yum报错



yum install xxx.rpm


warning:


Package xxx.rpm is not signed



google一下,解决方法都是

1、修改yum.conf


路径:/etc/yum.conf


找到 gpgcheck=1


将其修改为0:gpgcheck=0


2、修改/etc/yum.repos.d /utterramblings.repo


找到 gpgcheck=1


将其修改为0:gpgcheck=0



如果不行


只要在在后面加上--nogpgcheck就可以了,格式如下


yum install *rpm --nogpgcheck