[[email protected] yum.repos.d]# rpm-e--nodeps MySQL
Error:package MySQL is not installed
[[email protected] yum.repos.d]# rpm-qa |grep MySQL
[[email protected] yum.repos.d]# yum install MySQL
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
MySQL i386 5.0.95-5.el5_9 base 4.9 M
MySQL x86_64 5.0.95-5.el5_9 base 4.9 M
Installing for dependencies:
PERL-DBI x86_64 1.52-2.el5 Base K
Transaction Summary
================================================================================
warning:rpmts_HdrFromFdno:Header V3 DSA Signature:nokey,Key ID e8562897--------------> No GPG key
Base/gpgkey | 1.7 KB 00:00
Public key for mysql-5.0.95-5.el5_9.x86_64.rpm are not installed
---------Use option:--nogpgcheck
[Email protected] yum.repos.d]#yum install MySQL--nogpgcheck
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
MySQL i386 5.0.95-5.el5_9 base 4.9 M
MySQL x86_64 5.0.95-5.el5_9 base 4.9 M
Installing for dependencies:
PERL-DBI x86_64 1.52-2.el5 Base K
Transaction Summary
================================================================================
complete!
Workaround:
1 "Yum install MySQL--nogpgcheck/*--nogpgcheck disable GPG signature checking*/
2 "[[email protected] yum.repos.d]# rpm--import/iso Mirror full path/rpm-gpg/rpm-gpg-key-redhat-release
Error:/etc/pki/rpm-gpg/rpm-gpg-key-redhat-release:import read failed (-1).
3 "[email protected] rpm-gpg]# pwd
/etc/pki/rpm-gpg
[email protected] rpm-gpg]# LL
Total 40
-rw-r--r--1 root root 1397 Feb Rpm-gpg-key
-rw-r--r--1 root root 1744 Feb Rpm-gpg-key-el4
-rw-r--r--1 root root 1519 Feb Rpm-gpg-key-fedora
-rw-r--r--1 root root 1076 Feb rpm-gpg-key-fedora-test
-rw-r--r--1 root root 1397 Feb rpm-gpg-key-oracle
RPM--import/etc/pki/rpm-gpg/rpm*
4 If you can use the following method to connect the extranet
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
RPM--import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
RHEL4
RPM--import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS4
Install MySQL encounter: Warning:rpmts_HdrFromFdno:Header V3 DSA Signature:nokey