A strange Yum record in centos 5.8

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.