歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> CentOS配置epel源

CentOS配置epel源

日期:2017/3/3 12:22:44   编辑:Linux技術
CentOS配置EPEL
EPEL (Extra Packages for Enterprise Linux,企業版Linux的額外軟件包) 是Fedora小組維護的一個軟件倉庫項目,為RHEL/CentOS提供他們默認不提供的軟件包。這個源兼容RHEL及像CentOS和Scientific Linux這樣的衍生版本。
詳情請參考:
https://fedoraproject.org/wiki/EPEL
1、判斷本機系統版本:
[root@localhost home]# 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.6 (Final)
Release: 6.6
Codename: Final
2、根據版本下載EPEL的rpm安裝包
CentOS下的6.x和5.x版本下載頁面如下:http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html http://download.fedoraproject.org/pub/epel/5/i386/repoview/epel-release.html
上述鏈接會被重定向到下載速度比較快的一個鏡像源,點擊頁面中的epel-release-6-8.noarch下載
例如:
http://mirrors.opencas.cn/epel/6/i386/epel-release-6-8.noarch.rpm
3、安裝
rpm -ivh epel-release-6-8.noarch.rpm
5. 檢查EPEL 源
安裝好EPEL 源後,用yum 命令來檢查是否添加到源列表
[root@localhost home]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 5.1 kB 00:00
* base: mirrors.opencas.cn
* epel: mirrors.opencas.cn
* extras: mirror.bit.edu.cn
* updates: mirrors.opencas.cn
epel | 4.3 kB 00:00
epel/primary_db | 5.7 MB 00:23
repo id repo name status
base CentOS-6 - Base 6,575
epel Extra Packages for Enterprise Linux 6 - x86_64 11,747
extras CentOS-6 - Extras 44
updates CentOS-6 - Updates 488
repolist: 18,854
6、安裝測試(標准庫中是沒有phpldapadmin的)
[root@localhost httpd]# yum install phpldapadmin
Loaded plugins: fastestmirror, refresh-packagekit, security
...
...
Installed:
phpldapadmin.noarch 0:1.2.3-1.el6
Complete!
7、完成
Copyright © Linux教程網 All Rights Reserved