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:
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:
- 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
yum install <your_package> -y