Can we git clone the redhat kernel source code and see the changes made by them?

10.4k Views Asked by At

I read in an article that the redhat takes the kernel from kernel.org for their releases and make some changes according to their requirement in that kernel and then they embeds that kernel in their upcoming releases.

My question is that can we git clone the redhat kernel source code and see the changes made by them?

2

There are 2 best solutions below

4
On

(Updated, thx to @TheCodeArtist) You can see the kernel configuration files used by Red Hat for compiling its kernels at: https://git.centos.org/rpms/kernel/branches

Source code for individual releases is available from source packages (SRPMs). You can get those from the Red Hat Customer Portal. For the current release (RHEL 7.3), see https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.3/x86_64/product-sources. These packages are also available from CentOS: http://vault.centos.org/7.3.1611/os/Source/SPackages/.

To see the individual changes made by Red Hat, you can use the Red Hat Code Browser (only available to subscribers). It's described in Red Hat Code Browser User Guide.

1
On

You can use my Github mirror of the CentOS kernel to see actual source diffs. I have scripts to automatically create commits every time the CentOS kernel git repo is being updated. With the CentOS guarantee that updates correspond to RHEL kernel updates, the changes in these commits should reflect the same changes as in the RHEL kernels.

Here are the relevant Github kernel branches of the mirror:

My scripts also generate tags that match the source tarball, so you can use git to diff specific kernel sources between releases. For example, to see what Red Hat updated in their 1062.4.1 kernel patch in CentOS 7.7:

   git diff linux-3.10.0-1062.el7.tar.xz..linux-3.10.0-1062.4.1.el7.tar.xz