Installing the default Linux Kernel on a Linode CentOS 6 box

While creating the new web-server for my employers, to replace a Fedora 10 box which gets no security updates, I needed to compile some software from source, meaning I needed the kernel sources.

Since I couldn’t easily obtain these I needed to install the Kernel provided by the distribution rather than the more recent kernel provided by Linode themselves.

The Linode Library provided a way of doing this for CentOS 5 but not for CentOS 6, thus I adapted the provided script for v5 into one that works with CentOS 6 et voila, distro provided kernel.

Here’s the full source available as a gist on github:

Could not embed GitHub Gist 2787972: API rate limit exceeded for 178.79.178.69. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

2 thoughts on “Installing the default Linux Kernel on a Linode CentOS 6 box”

  1. Your script needs to be changed from

    mkdir /mnt/dev/pts

    to

    mkdir -p /mnt/dev/pts

    or else it may complain that directory is not there.

    Sorry, did not know how to contact you otherwise. You don’t have to publish my comment. 🙂

    1. The script doesn’t require the -p flag as on a base linux install disk the /dev directory exists, thus when mounting /dev/xda to /mnt the directory /mnt/dev will already exist, but thanks for looking it over, whomever you may be 🙂

Leave a Reply