Install CENTOS Yum source in RHEL5.5 system

Source: Internet
Author: User
CentOS is often used and is used to its own yum. because rhel (RedHatEnterpriseLinux) is used for work, although CentOS and rhel have the same kernel, but rhel is not supported by default (YUM is a tool for RedHatLinux to install updates and software online, but it is a paid feature of RHEL5. if you do not buy the Redhat service, you cannot often use CentOS, it is very accustomed to its own yum, because the work needs to use rhel ( Red Hat guest iselinux), Although CentOS and rhel have the same kernel, rhel is not supported by default (YUM is the tool for RedHatLinux to install updates and software online, but this is the charging function of RHEL5, if you cannot use the update source of RHEL5 when you have not purchased the Redhat service, you will be prompted to register it ). Since CentOS is a free Linux version evolved from Redhat, you can use the CentOS yum update source to implement the YUM function of RHEL5:

### 1. create the yum installation package directory and enter the directory:

Mkdir/usr/local/src/yum-packages (I personally prefer to put the installation files in the/usr/local/src/directory)

Cd/usr/local/src/yum-packages

### II. download all rpm packages required by yum:

Wgethttp: // mirror.Centos. Org/Centos-5/5/OS/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

Wgethttp: // response

Wgethttp: // response

Wgethttp: // response

### 3. install the python environment first:

Rpm-ivh python-iniparse-0.2.3-4.el5.noarch.rpm

### 4. install all yum packages:

Rpm-ivh yum-3.2.22-26.el5.centos.noarch.rpmyum-metadata-parser-1.1.2-3.el5.centos.i386.rpmyum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm

### 5. download the configuration file

Wget http://centos.ustc.edu.cn/CentOS-Base.repo-O/etc/yum. repos. d/CentOS-Base.repo

There is also a source (http://sudone.com/download/CentOS-Base.repo)

### 6. Execution

Yum update

Attachment:Collect the fastest centos yum in China (update source)

Bytes.
Users from northern China and CERNET are recommended at a fast speed.
There are also many CentOS versions. Currently, users who use 5.2 and 5.3 are relatively new.
CenOS-Base.repo: no connection, trouble manual

Http://centos.ustc.edu.cn, University of Science and Technology of China, server is located in Hefei.
Recommended for users in South China.
Similarly, the CenOS version is rich and suitable for long-term use.
CenOS-Base.repo: http://centos.ustc.edu.cn/CentOS-Base.repo

Http://mirrors.sohu.com/, sohu's open-source image server, and the server is located in the Shandong provincial/municipal Unicom.
Fast, recommended by users nationwide, and frequent use of FireFox to download CD images.
I can see that almost all open-source projects are supported. The image servers include FreeBSD, archlinux, Fedora, CentOS, Ubuntu, debian, gentoo, slackware, cygwin,Mysql, Php,NginxAnd other mainstream open-source programs.
This backup storage is updated in a timely manner every two days.
Paste the CD and DVD of CentOS along the way:
Http://mirrors.sohu.com/centos/5.5/isos/i386/CentOS-5.5-i386-bin-DVD.iso
Http://mirrors.sohu.com/centos/5.5/isos/i386/CentOS-5.5-i386-LiveCD-Release2.iso
Download the CentOS-Base-sohu.repo and place it in/etc/yum. repos. d/

Http://mirrors.163.com/centos: an image of an easy-to-use source server
The speed is good, recommended for users nationwide.
Download the CentOS-Base-163.repo and place it in/etc/yum. repos. d/

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.