Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS6.x uses 163and epel yum source selection

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

What is EPEL?

II. CentOS 6.x install 163YUM source

Third, CentOS 6.x installation using EPEL YUM source (recommended)

Uninstall the EPEL source

Note: operating system CentOS 6.x

Use 163YUM source, because it is a domestic YUM source, relatively fast, but there are many rpm packages do not, so it is not recommended. (if you cannot connect to a foreign network, use the 163yum source; if you can access the foreign network, use the epel yum source. )

What is EPEL?

EPEL, or Extra Packages for Enterprise Linux (http://fedoraproject.org/wiki/EPEL) is a project created by the Fedora community to provide high-quality software packages for RHEL and derivative distributions such as CentOS, Scientific Linux, etc. Here you can get RHEL's high-quality, high-performance, high-reliability, free, easy-to-use software package.

II. CentOS 6.x install 163YUM source

1. View system version

[root@sht-sgmhadoopdn-01 ~] # cd / etc/yum.repos.d/

[root@sht-sgmhadoopdn-01 yum.repos.d] # lsb_release-a

LSB Version:: base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

Distributor ID: CentOS

Description: CentOS release 6.5 (Final)

Release: 6.5

Codename: Final

You have mail in / var/spool/mail/root

[root@sht-sgmhadoopdn-01 yum.repos.d] # cat / etc/issue

CentOS release 6.5 (Final)

Kernel\ r on an\ m

two。 Backup / etc/yum.repos.d/CentOS-Base.repo

Mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup

3. Download the corresponding version of repo file and put it in / etc/yum.repos.d/ (please make a backup before operation)

CentOS7CentOS6CentOS5

[root@sht-sgmhadoopdn-01 yum.repos.d] # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

-- 2016-12-11 16-14-21-12-11-16-21-12-11-16-21-12-11-16-21-12-11-16-21-12-11-- 2016-12-11 16-14-21-03-http://mirrors.163.com/.help/CentOS6-Base-163.repo

Resolving mirrors.163.com... 123.58.173.186, 123.58.173.185

Connecting to mirrors.163.com | 123.58.173.186 |: 80. Connected.

HTTP request sent, awaiting response... 200 OK

Length: 2006 (2.0K) [application/octet-stream]

Saving to: "CentOS6-Base-163.repo"

2006 [= >] 100% [= >] 100% [= >] 2006 -.-Kmax s in 0s

2016-12-11 16:21:04 (239 MB/s)-"CentOS6-Base-163.repo" saved [2006Univer]

[root@sht-sgmhadoopdn-01 yum.repos.d] # ll

Total 12

-rw-r--r-- 1 root root 2006 Sep 18 2014 CentOS6-Base-163.repo

-rw-r--r-- 1 root root 133 Dec 3 09:34 cloudera-manager.repo

-rw-r--r-- 1 root root 129 Nov 25 18:10 cloudera-manager.repo.~1~

4. Regenerate the cache

[root@sht-sgmhadoopdn-01 yum.repos.d] # yum clear all

[root@sht-sgmhadoopdn-01 yum.repos.d] # yum makecache

Third, CentOS 6.x installation using EPEL YUM source (recommended)

1. View operating system version

[root@sht-sgmhadoopdn-02 ~] # cd / etc/yum.repos.d/

[root@sht-sgmhadoopdn-02 yum.repos.d] # ll

Total 12

-rw-r--r-- 1 root root 2006 Nov 25 19:34 CentOS6-Base.repo.bak

-rw-r--r-- 1 root root 133 Dec 3 08:52 cloudera-manager.repo

-rw-r--r-- 1 root root 129 Nov 25 18:11 cloudera-manager.repo.~1~

[root@sht-sgmhadoopdn-02 yum.repos.d] # uname-a

Linux sht-sgmhadoopdn-02 2.6.32-431.el6.x86_64 # 1 SMP Fri Nov 22 03:15:09 UTC 2013 x86'64 GNU/Linux

[root@sht-sgmhadoopdn-02 yum.repos.d] # cat / etc/issue

CentOS release 6.5 (Final)

Kernel\ r on an\ m

two。 Download the appropriate EPEL source

[root@sht-sgmhadoopdn-02 yum.repos.d] # wget http://mirrors.hust.edu.cn/epel//6/x86_64/epel-release-6-8.noarch.rpm

-- 2016-12-11 16 Fran 25RO 19muri-http://mirrors.hust.edu.cn/epel//6/x86_64/epel-release-6-8.noarch.rpm

Resolving mirrors.hust.edu.cn... 202.114.18.160

Connecting to mirrors.hust.edu.cn | 202.114.18.160 |: 80. Connected.

HTTP request sent, awaiting response... 200 OK

Length: 14540 (14K) [application/x-redhat-package-manager]

Saving to: "epel-release-6-8.noarch.rpm"

14540 67.9K/s in 0.2s

2016-12-11 16:25:22 (67.9 KB/s)-"epel-release-6-8.noarch.rpm" saved [14540A14540]

3. Install the EPEL source (Note: this is a 64-bit system)

[root@sht-sgmhadoopdn-02 yum.repos.d] # rpm-ivh epel-release-6-8.noarch.rpm

Preparing... # [100%]

1:epel-release # # [100%]

4. Import key Fil

[root@sht-sgmhadoopdn-02 yum.repos.d] # rpm--import / etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

6. Regenerate the cache

[root@sht-sgmhadoopdn-02 yum.repos.d] # yum clean all

[root@sht-sgmhadoopdn-02 yum.repos.d] # yum makecache

[root@sht-sgmhadoopdn-02 yum.repos.d] #

Uninstall the EPEL source

[root@sht-sgmhadoopdn-02 yum.repos.d] # rpm-e epel-release

Note: if you don't want to use EPEL's YumSource for the time being, just change the enabled=1 in the corresponding file to enabled=0. If you don't need it at all, just uninstall it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report