Rhel5 is upgraded to centos5 and yum source is configured

Source: Internet
Author: User
My computer platform is dell's d620. I have installed the rehhat5client and Windows XP dual systems. However, rhel5 is cumbersome to use local updates and cannot be updated to the latest package. After finding a related post on the Internet, follow the instructions to install the post and install it successfully. Record the installation process. For backup. 1. Configure yum to delete the yum package that comes with RHEL5 first, rpm-qa | grepyum, four packages are generated, all rpm-e is dropped, and one

My computer platform is dell's d620. I installed the rehhat5 client and windows xp dual-system.

However, it is complicated to use the local source update settings of rhel 5, and it cannot be updated to the latest package.

After finding a related post on the Internet, follow the instructions to install the post and install it successfully. Record the installation process.

For backup.

1. Configure yum

First, delete the yum package that comes with RHEL5, rpm-qa | grep yum. Four packages are generated, all are rpm-e, and there is a RedHat-release, which requires-nodeps. Then. The package after installation is as follows:

Yum-metadata-parser-1.0-8.fc6

Yum-3.0.5-1.el5.centos.5

Yum-updatesd-3.0.5-1.el5.centos.5

Modify the configuration file of yum, vi/etc/yum. repos. d/CentOS-Base.repo

# CentOS-Base.repo

#

# This file uses a new release list system developed by Lance Davis for CentOS.

# The mirror system uses the connecting IP address of the client and

# Update status of each mirror to pick mirrors that are updated to and

# Geographically close to the client. You shoshould use this for CentOS updates

# Unless you are manually picking other mirrors.

#

# If the specified list = does not work for you, as a fall back you can try

# Remarked out baseurl = line instead.

#

#

[Base]

CentOS-5.1-Base

Baseurl = http://developer.tini4u.net/centos/5.1/ OS /?basearch/

Http://centos.ustc.edu.cn/centos/5.1/ OS /?basearch/

Http://ftp.daum.net/centos/5.1/ OS /?basearch/

Http://developer.secuidc.com/centos/5.1/ OS /?basearch/

Http://centos.ermly.com/centos/5.1/ OS /?basearch/

Http://ftp.hostrino.com/pub/centos/5.1/ OS /?basearch/

Gpgcheck = 1

Gpgkey = http://centos.ermly.com/centos/5.1/ OS /i386/RPM-GPG-KEY-CentOS-5

# Released updates

[Updates]

CentOS-5.1-Updates

Baseurl = http://developer.tini4u.net/centos/5.1/ OS /?basearch/

Http://centos.ustc.edu.cn/centos/5.1/ OS /?basearch/

Http://ftp.daum.net/centos/5.1/ OS /?basearch/

Http://developer.secuidc.com/centos/5.1/ OS /?basearch/

Http://centos.ermly.com/centos/5.1/updates/?basearch/

Http://ftp.hostrino.com/pub/centos/5.1/ OS /?basearch/

Gpgcheck = 1

Gpgkey = http://centos.ermly.com/centos/5.1/ OS /i386/RPM-GPG-KEY-CentOS-5

# Packages used/produced in the build but not released

[Addons]

CentOS-5.1-Addons

Baseurl = http://developer.tini4u.net/centos/5.1/ OS /?basearch/

Http://centos.ustc.edu.cn/centos/5.1/ OS /?basearch/

Http://ftp.daum.net/centos/5.1/ OS /?basearch/

Http://developer.secuidc.com/centos/5.1/ OS /?basearch/

Http://centos.ermly.com/centos/5.1/addons/?basearch/

Http://ftp.hostrino.com/pub/centos/5.1/ OS /?basearch/

Gpgcheck = 1

Gpgkey = http://centos.ermly.com/centos/5.1/ OS /i386/RPM-GPG-KEY-CentOS-5

# Additional packages that may be useful

[Extras]

Name = CentOS-5.1-Extras

Baseurl = http://developer.tini4u.net/centos/5.1/ OS /?basearch/

Http://centos.ustc.edu.cn/centos/5.1/ OS /?basearch/

Http://ftp.daum.net/centos/5.1/ OS /?basearch/

Http://developer.secuidc.com/centos/5.1/ OS /?basearch/

Http://centos.ermly.com/centos/5.1/extras/?basearch/

Http://ftp.hostrino.com/pub/centos/5.1/ OS /?basearch/

Gpgcheck = 1

Gpgkey = http://centos.ermly.com/centos/5.1/ OS /i386/RPM-GPG-KEY-CentOS-5

# Additional packages that extend functionality of existing packages

[Centosplus]

CentOS-5.1-Plus

Baseurl = http://developer.tini4u.net/centos/5.1/ OS /?basearch/

Http://centos.ustc.edu.cn/centos/5.1/ OS /?basearch/

Http://ftp.daum.net/centos/5.1/ OS /?basearch/

Http://developer.secuidc.com/centos/5.1/ OS /?basearch/

Http://centos.ermly.com/centos/5.1/centosplus/?basearch/

Http://ftp.hostrino.com/pub/centos/5.1/ OS /?basearch/

Gpgcheck = 1

Enabled = 0

Gpgkey = http://centos.ermly.com/centos/5.1/ OS /i386/RPM-GPG-KEY-CentOS-5

# Contrib-packages by Centos Users

[Contrib]

Name = CentOS-5.1-Contrib

Baseurl = http://developer.tini4u.net/centos/5.1/ OS /?basearch/

Http://centos.ustc.edu.cn/centos/5.1/ OS /?basearch/

Http://ftp.daum.net/centos/5.1/ OS /?basearch/

Http://developer.secuidc.com/centos/5.1/ OS /?basearch/

Http://centos.ermly.com/centos/5.1/contrib/?basearch/

Http://ftp.hostrino.com/pub/centos/5.1/ OS /?basearch/

Gpgcheck = 1

Enabled = 0

Gpgkey = http://centos.ermly.com/centos/5.1/ OS /i386/RPM-GPG-KEY-CentOS-5

To ensure source availability, I have added multiple Chinese centos sources.

Import the GPG key of the rpm package

Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY *

3. Update

Execute yum-y update under the terminal. When the network speed is not good, retry several times and you can download it completely. There are as many as MB. At this time, the system prompts a conflict with redhat-logos. Continue to rpm-e-nodeps redhat-logos, and update yum-y again. Then, Updating, CleanUp, and Complete!

4. Fixed the logon interface for the domain name management system.

After the restart, you can see that RHEL5 is replaced with CentOS. However, an error is prompted when you log on to the WordPress logon interface, indicating that you cannot find the relevant topics of the WordPress. It doesn't matter. You can log on, but the interface is a little ugly. After entering the Gnome desktop, log on to the http://art.gnome.org to download a theme of your favorite gmtr logo. In the login input gdmsetup, just download tar.gz to the dialog box to install, and then delete the default Redhat OKay!

5. Speed up your yum.

Yum-fastestmirror is an extension of yum. I personally think this plug-in is very effective and the speed is significantly improved. # yum-y install yum-fastestmirror

Note: On Centos 4, the name is yum-plugin-fastestmirror.

6. Expand your rpm package

Many packages are not officially available. How can I fix it? Should I compile it myself?

Okay. You have installed this package. This is from redhat5. You can

Http://dag.wieers.com/rpm/FAQ.php# B

Here

Rpm-Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Tip 3: search by rpm.

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.