Differences between Redhat5 and 6YUM source configuration

Source: Internet
Author: User
I. overview with the continuous upgrade of various software versions, We need to master more and more software features, and the continuous update of technology also promotes the circulation of our brain cells. Today, an interesting thing happened when configuring the yum source of RedHat6.3. II. The problem was solved by a buddy. He built a testing system simulation environment and tried to restore it as much as possible. Because the operating system cannot be mounted on a CD, the image can be copied to the system. However, the system image is too large, that is, it is a lazy practice, just to pass several required packages. Simplified

I. Overview

With the continuous upgrade of various software versions, We need to master more and more software features, and the continuous update of technology also promotes the circulation of our brain cells. Today, an interesting thing happened when configuring the yum source of RedHat6.3.

Ii. troubleshooting

The problem stems from the Buddy's problem. He built a testing system simulation environment and tried to restore it as much as possible.

Because the operating system cannot be mounted on a CD, the image can be copied to the system. However, the system image is too large, that is, it is a lazy practice, just to pass several required packages. Simply put, the actual environment is different.

The error message is shown below:

[Root @ firsoul rpm] #/usr/bin/yum upgrade

Loaded plugins: product-id, refresh-packagekit, security, subrole-manager

Updating certificate-based repositories.

Unable to read consumer identity

File: // soft/rpm/repodata/repomd. xml: [Errno 14] cocould not open/read file: // soft/rpm/repodata/repomd. xml

Trying other mirror.

Setting up Upgrade Process

No Packages marked for Update

Follow the prompts above to copy the missing file to the corresponding directory or report an error. The error is as follows: view related information, the system yum source has a cache (the specific configuration information and system environment are not detailed). At that time, the yum clean all command was not used.

[Root @ linuxidc yum. repos. d] #/usr/bin/yum upgrade

Loaded plugins: refresh-packagekit, security

Pipeline [Errno 14] pycurl error 6-"Couldn't resolve host 'public -yum.oracle.com '"

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd. xml) for repository: public_ol6_UEKR3_latest. Please verify its path and try again

[Root @ linuxidc yum. repos. d] #

Because I haven't used Redhat6 or above for a long time, I just did a test on the Redhat5.4 system. I checked the rpm package required by the Server into the specified directory, and copied the repodata under the Server Directory to the specified directory, you can install it. Let it find the directory repodata, which is not found in the RPM directory Packages. Suddenly, when the system above Redhat6.0 is configured, the directory written by the yum source does not specify Packages in the rpm directory, or specify the Server Directory, view the Server directory under Redhat6, and find the file repomd. xml. In fact, Redhat5 and redhat6 only change the location of the rpm package (6 is under the same directory as the Server Packages). There are several more Packages and the rpm package list files in the 6 Server directory, when setting the yum, the 6 Directory should still be set to the Server directory. In fact, yum-based errors are easier to solve. That is, the repodata directory is still under the Server, regardless of 5 or 6.

As my buddy was in a hurry and couldn't check the reason, I asked him to use rpm as needed. Send me an error message

[Root @ linuxidc Packages] # rpm-ivh glibc-2.12-1.132.el6.i686.rpm

Error: Failed dependencies:

Libfreebl3.so is needed by glibc-2.12-1.132.el6.i686

Libfreebl3.so (NSSRAWHASH_3.12.3) is needed by glibc-2.12-1.132.el6.i686

[Root @ linuxidc Packages] # rpm-ivh nss-softokn-freebl-3.14.3-9.el6.i686.rpm

Error: Failed dependencies:

Libc. so.6 is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.0) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.1) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.1.3) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.3) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.3.4) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.4) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libc. so.6 (GLIBC_2.7) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libdl. so.2 is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libdl. so.2 (GLIBC_2.0) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

Libdl. so.2 (GLIBC_2.1) is needed by nss-softokn-freebl-3.14.3-9.el6.i686

From the above information, we can see that, in particular, the yellow part, the package required to install glibc is libfreebl3.so, and then install the package, or report an error. The libfreebl3.so package also depends on the glibc package, so the two rpm packages must be executed simultaneously. The result is as follows:

[Root @ linuxidc Packages] # rpm-ivh glibc-2.12-1.132.el6.i686.rpm nss-softokn-freebl-3.14.3-9.el6.i686.rpm

Preparing... ######################################## ### [100%]

1: nss-softokn-freebl ################################### ####### [1, 50%]

2: glibc ####################################### #### [100%]

[Root @ linuxidc Packages] #

Iii. Summary

I don't know what to say in this summary. One is to understand some changes and new features of the new system. In this process, we need to be careful. In fact, his yum problem has not been fundamentally solved, we just removed the installation of glibc and had the opportunity to trace it again. In many cases, we are not blocked by difficult technologies, but by habits and carelessness. Serious and changeable (flexible mind), the problem is often solved. Of course, my technical capabilities must reach a certain level. I am just learning it slowly.

RedHat 6.2 Linux modify yum source free use CentOS source http://www.linuxidc.com/Linux/2013-07/87383.htm

Configure epel yum source http://www.linuxidc.com/Linux/2012-10/71850.htm

Redhat local yum source configuration http://www.linuxidc.com/Linux/2012-11/75127.htm

Yum profile description http://www.linuxidc.com/Linux/2013-04/83298.htm

Install yum http://www.linuxidc.com/Linux/2013-06/86535.htm in RedHat 6.1

YUM installation and cleaning http://www.linuxidc.com/Linux/2013-07/87163.htm

Build yum local ground source http://www.linuxidc.com/Linux/2014-07/104533.htm on CentOS 6.4

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-10/108696.htm

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.