CentOS yum source configuration

Source: Internet
Author: User

CentOS yum source configuration

Step 5: configure the yum source in CentOS

Step 1: uninstall the original yum

[Root @ localhost home] # rpm-qa | grep yum | xargs rpm-e -- nodeps

Xargs converts the parameter list into small segments and passes them to other commands to avoid the problem that the parameter list is too long.

Nodeps force uninstall, regardless of dependency

Step 2: Download the yum configuration file

1st file python-iniparse-0.3.1-2.1.el6.noarch.rpm

Wget http://mirrors.neusoft.edu.cn/centos/6/ OS /x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

2nd file yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

Wget http://mirrors.neusoft.edu.cn/centos/6/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

3rd file yum-3.2.29-60.el6.centos.noarch.rpm

Wget http://mirrors.neusoft.edu.cn/centos/6/ OS /x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm

4th file yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

Wget http://mirrors.neusoft.edu.cn/centos/6/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

In addition, we have attached Netease 163 download (Please copy the link to the address bar to download it)

If the connection cannot be downloaded directly, you need to find your own package.

Http://mirrors.163.com/centos/6/ OS /x86_64/Packages/

First file

Wget http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm

Second file

Wget

Http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

Third File

Wget

Http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

Fourth File

Wget http://mirrors.163.com/centos/6/ OS /x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

Step 3 install

Install command rpm-ivh + package

Rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

Rpm-ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

Rpm-ivh yum-3.2.29-60.el6.centos.noarch.rpm and yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm require one-piece Installation

Step 4: Modify the repo file under yum source/etc/yum. repos. d/

This is the 163. repo file.

[Base]

CentOS-6-Base

Baseurl = http://mirrors.163.com/centos/6/ OS /?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

[Updates]

CentOS-6-Updates

Baseurl = http://mirrors.163.com/centos/6/updates/?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

[Extras]

Name = CentOS-6-Extras

Baseurl = http://mirrors.163.com/centos/6/extras/?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

[Centosplus]

CentOS-6-Plus

Baseurl = http://mirrors.163.com/centos/6/centosplus/?basearch/

Gpgcheck = 1

Enabled = 0

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

[Contrib]

Name = CentOS-6-Contrib

Baseurl = http://mirrors.163.com/centos/6/contrib/?basearch/

Gpgcheck = 1

Enabled = 0

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

Note: replace it with another yum source address. You can use vim to edit and replace the above characters with the address:

% S/mirrors.163.com/mirrors.neusoft.edu.cn/g

Neusoft Intranet: pai.we.neusoft.edu.cn

Neusoft Internet: mirrors.neusoft.edu.cn

Use the repo file of 163 Netease directly

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

Step 5: Test

Clear yum Cache

Yum clean all

Run the yum list, yum update, or package test.

In addition:

Install the automatic source selection plug-in -- automatically select the fastest Source

Yum install yum-fastestmirror-y

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.