Epel and Atomic Yum repositories are popular open-source package repositories that provide additional software packages for Red Hat Enterprise Linux (RHEL) 6. These repositories are not included in the default RHEL 6 installation but can be easily added. In this guide, we will show you how to set up Epel and Atomic Yum repositories on RHEL 6.
Step 1: Enable the Epel Yum Repository
To enable the Epel Yum repository, you need to download and install the appropriate Epel RPM package for your RHEL version. Run the following command:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
This command will download the Epel RPM package to your current directory. Once the download is complete, install the package by running the following command:
sudo rpm -ivh epel-release-latest-6.noarch.rpm
This command will install the Epel repository on your RHEL 6 system.
[root@rhel6 tmp]# yum repolist Loaded plugins: rhnplugin This system is not registered with RHN. RHN support will be disabled. epel/metalink | 3.8 kB 00:00 epel | 4.3 kB 00:00 epel/primary_db | 3.4 MB 00:38 repo id repo name status RHEL6-Repository RHEL6 repository 13,395 epel Extra Packages for Enterprise Linux 6 - i386 5,625 repolist: 19,020
Step 2: Enable the Atomic Yum Repository
To enable the Atomic Yum repository, you need to download and install the appropriate Atomic RPM package for your RHEL version. Run the following command:
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
This command will download and execute the Atomic installation script. The script will install the Atomic repository on your RHEL 6 system.
Step 3: Verify the Repositories
Once you have enabled both repositories, you can verify that they are working correctly by running the following command:
yum repolist
This command will display a list of all enabled repositories on your system, including Epel and Atomic.
[root@rhel6 ~]# yum repolist Loaded plugins: rhnplugin This system is not registered with RHN. RHN support will be disabled. repo id repo name status RHEL6-Repository RHEL6 repository 13,395 atomic CentOS / Red Hat Enterprise Linux 6Server - atomicrocketturtle.com 394 epel Extra Packages for Enterprise Linux 6 - i386 5,625 repolist: 19,414
Step 4: Install Packages from the Repositories
Now that you have enabled the Epel and Atomic repositories, you can install packages from these repositories using the yum command. For example, to install the htop package from the Epel repository, run the following command:
sudo yum install htop
To install the mod_security package from the Atomic repository, run the following command:
sudo yum install mod_security
Commands Mentioned:
- wget – Download files from the internet
- sudo rpm -ivh – Install RPM packages
- yum repolist – Display a list of enabled repositories
- sudo yum install – Install packages from repositories
Conclusion
In this guide, we have shown you how to set up the Epel and Atomic Yum repositories on RHEL 6. By following these steps, you can enable these repositories and install additional software packages on your RHEL 6 system. We hope this guide has been helpful to you. If you have any comments or suggestions for improvements, please feel free to share them below.