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