To repeat the automated Installation Tool of MySQL, I accidentally wrote sudo Yum remove-y crontabs in the script for MySQL cleanup. In centos5.8, due to the package dependency, the yum and RPM System-level packages are deleted (tested, not in centos6.4 ). This is troublesome! Without Yum and rpm, the system package can only be compiled and installed through source code!
Fortunately, from another centos5.8 machine, we copied the relevant RPM command files and library files, and the RPM was usable. Then we found the RPM files of all the deleted packages, installed together. The process is very difficult, but Yum can finally be used!
However, when I use Yum to install mysql-client, the following error occurs:
$ Sudo Yum install mysql-client *
Loaded plugins: fastestmirror, security
Repository custom is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Setting up install process
Examining MySQL-client-5.6.12-1.rhel5.x86_64.rpm: MySQL-client-5.6.12-1.rhel5.x86_64
Marking MySQL-client-5.6.12-1.rhel5.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package MySQL-client.x86_64. 6.12-1. rhel5 set to be updated
--> Finished dependency resolution
Dependencies resolved
========================================================== ========================================================== ========================================================== ========================================================== ========================================================== ======
Package arch version repository size
========================================================== ========================================================== ========================================================== ========================================================== ========================================================== ======
Installing:
Mysql-client x86_64 5.6.12-1. rhel5/MySQL-client-5.6.12-1.rhel5.x86_64 74 m
Transaction Summary
========================================================== ========================================================== ========================================================== ========================================================== ========================================================== ======
Install 1 package (s)
Upgrade 0 package (s)
Total size: 74 m
Is this OK [Y/n]: Y
Downloading packages:
Warning: rpmts_hdrfromfdno: V3 DSA Signature: nokey, key ID 5072e1f5
Public Key for MySQL-client-5.6.12-1.rhel5.x86_64.rpm Is Not Installed
If you use sudo Yum install mysql-client, you can install it normally without adding. At first, I suspected that the yum I re-built had a problem. Later I found a MySQL-client-5.6.12-1.rhel5.x86_64.rpm file under my home directory. Delete it and use sudo Yum install mysql-client * to install it normally.
Summary:
1. Be careful when using Yum to delete a package. Do not add the-y parameter if you do not know how to delete the package.
2. After the commands Yum and RPM are deleted, you can copy files from another machine and install the relevant RPM packages for them.
3. yum will find the relevant RPM package files from the current directory during installation. If it is found, it will be displayed during installation, as to why there will be public key for MySQL-client-5.6.12-1.rhel5.x86_64.rpm is not installed, and normal without * installation will not, this for future research!
This article is from the "trikker" blog, please be sure to keep this source http://trikker.blog.51cto.com/7478890/1545986
A strange Yum record in centos 5.8