How To Add EPEL Repository To CentOS/Fedora/Redhat

FREQUENTLY ASKED QUESTIONS (Linux)
Q: How to add EPEL repository to yum in CentOS/Fedora/Redhat? 


EPEL repository a large collection of packages based on RPM distributions. Follow the step by step instructions below to install the EPEL repository to yum in your CentOS/Redhat/Redhat linux systems. Login as root user and run the commands. If your system is use a http proxy server to access internet,
configure that proxy server to use yum commands.



Add RPMforge Repository
[root@server ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
[root@server ~]# rpm --import RPM-GPG-KEY-EPEL-6

[root@server ~]# vi /etc/yum.repos.d/epel.repo
#Creating a new epel.repo file, Add the following 5 lines(Green) to the new file.
[epel]
name=EPEL RPM Repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/fedora/epel/6/$basearch/
gpgcheck=1
enabled=0
#And now save the file.


Install package from EPEL Repository
[root@server ~]# yum --enablerepo=epel install [package]
eg: # yum --enablerepo=rpmforge list wine
eg: # yum --enablerepo=rpmforge install wine


Check Related Posts:

Was this helpfull ?

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons