RedHat6.4 Configuring the CentOS Yum source (2015.01.01 update)

Source: Internet
Author: User

1. View current system version and kernel version

[Email protected] ~]# uname-a

Linux mdadm.lvmadm 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 11:47:41 EST x86_64 x86_64 x86_64 gnu/linux

[Email protected] ~]# cat/etc/redhat-release

Red Hat Enterprise Linux Server release 6.4 (Santiago)

2, the Test network connectivity

[[email protected] ~]# Ping www.baidu.com

PING www.a.shifen.com (115.239.211.112) bytes of data.

Bytes from 115.239.211.112:icmp_seq=1 ttl=54 time=43.5 ms

Bytes from 115.239.211.112:icmp_seq=2 ttl=54 time=43.3 ms


3. Official start

a total of 3 packages will be installed and can be downloaded from the 163 mirror server


    1. yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

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

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

[[Email protected] ~] #cd/etc/yum.repos.d/
[Email protected] yum.repos.d]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/ yum-3.2.29-60.el6.centos.noarch.rpm
--2015-01-13 00:22:27--http://mirrors.163.com/centos/6/os/x86_64/Packages/ Yum-3.2.29-60.el6.centos.noarch.rpmresolving mirrors.163.com ... 123.58.173.106Connecting to mirrors.163.com|123.58.173.106|:80 ... Connected. HTTP request sent, awaiting response ... oklength:1029384 (1005K) [application/x-redhat-package-manager]saving to: "yum-3.2.29-60.el6.centos.noarch.rpm" 100%[=====================================================>] 1,029,384 197k/s in 5.1s 2015-01-13 00:22:32 (197 KB/S)-"yum-3.2.29-60.el6.centos.noarch.rpm" saved [1029384/1029384]
[Email protected] yum.repos.d]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/ yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
--2015-01-13 00:23:16--http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_ 64.rpmResolving mirrors.163.com ... 123.58.173.106Connecting to mirrors.163.com|123.58.173.106|:80 ... Connected. HTTP request sent, awaiting response ... oklength:27224 (27K) [application/x-redhat-package-manager]saving to: "Yum-metadata-parser-1.1.2-16.el6.x86_64. RPM "100%[=====================================================> 27,224--.-k/s in 0.1s 2015-01-13 00:23:16 ( 274 kb/s)-"yum-metadata-parser-1.1.2-16.el6.x86_64.rpm" saved [27224/27224]
[Email protected] yum.repos.d]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/ yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
--2015-01-13 00:24:35--  http://mirrors.163.com/centos/6/os/x86_64/packages/ yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpmresolving mirrors.163.com...  123.58.173.106connecting to mirrors.163.com|123.58.173.106|:80... connected. http request sent, awaiting response... 200 oklength: 31340  (31K)  [application/x-redhat-package-manager]Saving to:  " yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm "100%[===================================================== >] 31,340      --.-k/s   in 0.1s     2015-01-13 00:24:35  (310 kb/s)  -  " yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm " saved [31340/31340] 
[Email protected] yum.repos.d]# RPM-UVH yum-3.2.29-60.el6.centos.noarch.rpm yum-metadata-parser-1.1.2-16.el6.x86_ 64.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Warning:yum-3.2.29-60.el6.centos.noarch.rpm:header V3 rsa/sha1 Signature, key ID c105b9de:nokeypreparing ... ########################################### [100%] 1:yum-metadata-parser ######################################## # # [33%] 2:yum-plugin-fastestmirro########################################### [67%] 3:yum ###### ##################################### [100%]
[Email protected] yum.repos.d]# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
--2015-01-13 00:26:13--http://mirrors.163.com/.help/CentOS6-Base-163.repoResolving mirrors.163.com ... 123.58.173.106Connecting to mirrors.163.com|123.58.173.106|:80 ... Connected. HTTP request sent, awaiting response ... oklength:2006 (2.0K) [application/octet-stream]saving to: "Centos6-base-163.repo" 100%[========================= ============================>] 2,006--.-k/s in 0s 2015-01-13 00:26:14 (168 MB/s)-"Centos6-base-163.repo "Saved [2006/2006]


[Email protected] yum.repos.d]# vim Centos6-base-163.repo

With the command g/$releasever/s//6/ Replace all the $releasever in the file with the version number, which is 6 last saved.

4. Test Yum

[[email protected] YUM.REPOS.D] #yum clean All

[[email protected] YUM.REPOS.D] #yum Makecache

[[email protected] YUM.REPOS.D] #yum install vim*

# yum Install vim* # test if the domain name is available

at this point, Redhat6 can use CentOS of the Yum source on-line installation software.


This article is from the "Cloud Computing Litter" blog, make sure to keep this source http://leegh.blog.51cto.com/8764149/1606881

RedHat6.4 Configuring the CentOS Yum source (2015.01.01 update)

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.