If you have a customer project where the specified operating system was RedHat enterprise, you know it can be a long bureaucratic road to get an official RedHat license procured for your project. To avoid any downtime as a result of licensing, one quick file addition can allow you to install packages on RedHat without a license. Since RedHat is essentially a commercial “maintained” version of CentOS, CentOS packages are generally compatible with RedHat. From wikipedia:

Looking to get a head start on your next software interview? Pickup a copy of the best book to prepare: Cracking The Coding Interview!

Buy Now On Amazon

CentOS is a Linux distribution that provides a free, community-supported computing platform functionally compatible with its upstream source, Red Hat Enterprise Linux”.

This means that if you update the RedHat yum package manager repos to include CentOS packages, you can install compatible CentOS packages onto your RedHat system without a license. Here are the steps to install packages on RedHat without a license:

  1. Create a new file centos.repo in /etc/yum.repos.d/ with the content:
    [centos]
    name=CentOS-7
    baseurl=http://ftp.heanet.ie/pub/centos/7/os/x86_64/
    enabled=1
    gpgcheck=1
    gpgkey=http://ftp.heanet.ie/pub/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
  2. Run yum repolist
  3. Run yum install <your_package> -y

Contact Us