Linux CentOS 6.6 Install yum source Simple processing method
The installation environment is as follows:
[[email protected] ~]# cat/etc/redhat-release ======== "View version of CentOS release 6.6 (Final) [[email protected] ~]# uname-r ======== "kernel 2.6.32-504.el6.x86_64[[email protected] ~]#
1. Backup (must be backed up)
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.backup = = = Execute this command
2. Download the installation source
Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo = = = Execute to command line
[[email protected] ~]# wget -o /etc/yum.repos.d/centos-base.repo http:// mirrors.aliyun.com/repo/centos-6.repo--2015-06-08 10:27:56-- http://mirrors.aliyun.com/repo/ Centos-6.repo mirrors.aliyun.com... 112.124.140.210, 115.28.122.210 mirrors.aliyun.com| 112.124.140.210|:80... ttp ... 200 ok72 (2.5K) [application/octet-stream]tc/yum.repos.d/centos-base.repo100%[============================== ===============================================================================================>] 2,572 --.-k/s in 0s 2015-06-08 10:27:58&nBSP; (272 mb/s) - c/yum.repos.d/centos-base.repo2572/2572]) The figure here shows the results after the download is installed.
This article is from the "I am a Little bird" blog, please make sure to keep this source http://liyanchao.blog.51cto.com/9954601/1659669
Linux CentOS 6.6 Installation Simple processing method for adding Yum sources