step -1) go to /etc/yum.repos.d
step 2) create file with extension .repo
ex: myrepo.repo
add belwo details into myrepo.repo file
[epel-source] ==> Id
name=Extra Packages for Enterprise Linux 7 - $basearch - Source ==> name of repository
baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS ==> base url where we are downloading packages
failovermethod=priority
enabled=1 ==> repository is enabled
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
step 3) yum repolist ==> you will see the repository which is configured by you
step 4) try to install pakcages using yum
ex: yum install httpd
step 5) remove packages:
yum erase pkg-name
No comments:
Post a Comment