RHEL uses yum(yellow-dog update manager) for software management. Yum allows you to add a new repository as a source to install binary software.
-
Understanding yum repository
yum repository configured using /etc/yum.conf file. Additional configuration files are also read from the directories set by the reposdir option (default is /etc/yum.repos.d and /etc/yum/repos.d.
-
EPEL repository (Extra package for enterprise Linux)
Usually repository carries extra and useful packages. EPEL is one of such repository. You can easily configure EPEL repository for RHEL / Fedora just by configuring and running single RPM command:
How to create repository(repo file) for EPEL.
- Now Login as root, and go to /etc/yum.repos.d/ directory, here all the yum repositories are stored.
- create a file named as epel.repo (or whatever you like) in your favourite text editor( vi, Emacs, gedit ).
Write these lines into your epel.repo file(we will use the above copied link here for baseurl)
You can change the release version and basarch in the script, as supported by your distribution.
[epel]
name= epel repository
baseurl=http://download.fedoraproject.org/pub/epel/6/i386
enabled=1
gpgcheck=0
- Dats all for the script part, save the file, and now open terminal(ctrl + alt + T) and type yum search to search for a package, or yum install to install a package.
eg:- For installation of vlc player, we will give this command.
sudo yum install vlc
Then yum will check for the vlc dependencies, and if checked true, it will start downloading vlc and install it.
[epel] #any name to identify repo file
name=epel repository #any name for your repofile to display its info
baseurl=http://download.fedoraproject.org/pub/epel/6/i386/ #URL to point your repodata directory on #web(how to find baseurl is given above in the tutorial).
enabled=1 #enabled=1, to enable the repo. and enabled=0, to disable repo.
gpgcheck=0 #gpgcheck=1, to enable gpgcheck in repo. and gpgcheck=0 to disable gpgcheck.
:p