เปิด EPEL Repo ของ CentOS 5, CentOS 6 and CentOS 7

ประเด็นที่เกี่ยวข้องกับการใช้งานและปัญหาซอฟต์แวร์ ของ CentOS
ตอบกลับ
รูปประจำตัวสมาชิก
slwt2002
Administrator
โพสต์: 126
ลงทะเบียนเมื่อ: พุธ 24 มิ.ย. 2015 18:03

เปิด EPEL Repo ของ CentOS 5, CentOS 6 and CentOS 7

โพสต์ โดย slwt2002 »

What is the EPEL repo?

The EPEL (Extra Packages for Enterprise Linux) yum repository is an excellent source for additional packages for CentOS. Instead of having to compile applications that aren’t included in CentOS’ built-in repositories from source, EPEL can be used.
Install/enable the EPEL repo:

โค้ด: เลือกทั้งหมด

yum install epel-release -y
Disable the EPEL repo:

Open /etc/yum.repos.d/epel.repo and set any instance of ‘enabled=1’ to ‘enabled=0’


Old Instructions

These are old instructions for installing the EPEL repository RPM. Use this if the above process does not work for you.

The EPEL repo is enabled by simply installing an RPM. Please use the command below to install the EPEL repository on your CentOS server. If you are unsure of your CentOS version or architecture, please click here to find your server’s CentOS version and architecture.
CentOS 6 – 32-bit

โค้ด: เลือกทั้งหมด

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
CentOS 6 – 64-bit

โค้ด: เลือกทั้งหมด

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
CentOS 5 – 32-bit

โค้ด: เลือกทั้งหมด

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
CentOS 5 – 64-bit

โค้ด: เลือกทั้งหมด

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
After running the above commands for your relevant CentOS version, the following file is created:

โค้ด: เลือกทั้งหมด

/etc/yum.repos.d/epel.repo
The above file can be edited directly to enable or disable the EPEL repo.

ที่มาhttps://www.centosblog.com/enable-epel-repo-on- ... -centos-6/
ไม่มีลายเซ็นต์ ขอเขียนแล้วกัน
ตอบกลับ