标签:
[root@localhost yum.repos.d]# rpm -e --nodeps mysql
---------使用 option: --nogpgcheck
[root@localhost yum.repos.d]# yum install mysql --nogpgcheckerror: /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release: import read failed(-1).
3》[root@localhost rpm-gpg]# pwd
/etc/pki/rpm-gpg
[root@localhost rpm-gpg]# ll
total 40
-rw-r--r-- 1 root root 1397 Feb 25 2012 RPM-GPG-KEY
-rw-r--r-- 1 root root 1744 Feb 25 2012 RPM-GPG-KEY-EL4
-rw-r--r-- 1 root root 1519 Feb 25 2012 RPM-GPG-KEY-fedora
-rw-r--r-- 1 root root 1076 Feb 25 2012 RPM-GPG-KEY-fedora-test
-rw-r--r-- 1 root root 1397 Feb 25 2012 RPM-GPG-KEY-oracle
rpm --import /etc/pki/rpm-gpg/RPM*
4》如果可以连外网可以使用下面的方法
RHEL7:
rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
RHEL6:
rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
RHEL5安装mysql 偶遇:warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY
标签:
原文地址:http://blog.csdn.net/lixora/article/details/42031623