RHEL 6.5 x86_64 configure CentOS yum Source

Source: Internet
Author: User

RHEL 6.5 x86_64 configure CentOS yum Source

1. Delete the yum source that comes with rhel.

# Rpm-aq | grep yum | xargs rpm-e -- nodeps

2. download the new yum installation package

Wget http://mirrors.163.com/CentOS/6/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
Wget http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm
Wget http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

3. Install the yum package. Note that the highlighted red package must be installed together with dependencies.

Rpm-ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

4. Change to 163 yum Source

# Cd/etc/yum. repos. d/

# Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

# Ls
CentOS6-Base-163.repo

Replace all $ releasever in the file with the version number, that is, 6.

# Sed-I's # $ releasever #6 # G' CentOS6-Base-163.repo

5. Clear yum Cache

# Yum clean all

# Yum makecache # cache the software package information on the server to a local machine to speed up searching and installing software

For more YUM tutorials, see the following:

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

Build yum local source on CentOS 6.4

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.