aru Posted April 19, 2003 Report Share Posted April 19, 2003 Browse: [About the FAQ forum] [Table of Contents] [FAQs] [Contribute] [KC: Kernel Compilation] KC-03: How do I apply a patch to the kernel? gzip patch:cd /usr/src/linux gzip -dc /path/patch-version.gz | patch -p1 bzip2 patch:cd /usr/src/linux bzip2 -dc /path/patch-version.bz2 | patch -p1 Plain text patch:cd /usr/src/linux patch -p1 < /path/patch-version In case you want to remove a patch: cd /usr/src/linux gzip -dc /path/patch-version.gz | patch -R -p1 Notes: If you try to add several patches to the kernel, be sure that you apply them in the right order; otherwise the kernel won't compile or run. Further refereneces: man patch http://www.tldp.org/HOWTO/Kernel-HOWTO.html KC-01: How do I compile a kernel? Link to comment Share on other sites More sharing options...
Recommended Posts