Saturday, March 5, 2011

How to get RHEL 6 for free

I thought of a way to get RedHat Enterprise Linux for free. RHEL clones such as CentOS and Scientific Linux takes the sources from RedHat and rebuild them. I am going to install CentOS or Scientific Linux and then update via a SRPMS repository. This is also significant if you are a current non-RHEL user that wants the security updates faster than what your current non-RHEL distro provides. The biggest downside to this is that each package will have to be compiled.

SRPMS location:
Desktop ftp://ftp.redhat.com/redhat/linux/enterprise/6Workstation/en/os/SRPMS/
Server ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/

Add the following REPO to /etc/yum.repos.d/ or yum.conf


[rhel-src-Desktop]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-src-Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-src-Client]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Client/en/os/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

A new perl script has been made to make this much easier. If you decide to use the automated script, ignore the instructions below.Click here to see the script.

No comments:

Post a Comment