Did You Know?
Donate to TecMint

LFCS - Linux Foundation Certified SysAdmin - Exam Preparation Guide

Kernel 3.5 Released – Install/Compile in Redhat, CentOS and Fedora

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

On July 21, 2012, Linux Torvalds and his fellow developers released Linux Kernel 3.5 and made available for download after two months of hard work. The new updated kernel version comes with much new supported modules you can read all the features at http://kernelnewbies.org/Linux_3.5.

Install Kernel 3.5

Install / Compile Kernel 3.5

We have practically tested the latest released kernel by installing one of our testing server called CentOS 6.3 and works successfully. So, here in this article we will explain you all how to install and compile the latest Linux Kernel 3.5 in RHEL 6.3/6.2/6.1/6.0, CentOS 6.3/6.2/6.1/6/6.0 and Fedora 17,16,15 using source file.

Kernel 3.5 Dependencies

Installing or Compiling Kernel 3.5 requires following various required packages and up-to-date system packages.

  1. Latest GCC version
  2. Latest Ncurses development version
  3. System packages Up-to-Date
Install Kernel 3.5 in RHEL 6.3/6.2/6.1/6.0, CentOS 6.3/6.2/6.1/6/6.0 and Fedora 17,16,15

Installing Kernel 3.5 Source in Redhat, CentOS and Fedora

To install Kernel 3.5 you must install all the required dependency packages and keep your system packages up-to-date. To do this just follow all the below commands as root user.

Step 1: Installing Kernel 3.5 Dependencies

Let’s first install dependencies packages gcc, ncurses and then update the system.

# yum install gcc ncurses ncurses-devel

# yum update

Step 2: Downloading Kernel 3.5 Source

Download the latest Kernel 3.5 using wget command under /tmp directory. You can also download the latest kernel by going to http://www.kernel.org/.

# cd /tmp
# wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.tar.bz2

Step 3: Extracting Kernel 3.5 Source

Once the file is downloaded extract it under /usr/src/ directory by running the below command.

# tar -jxvf linux-3.5.tar.bz2 -C /usr/src/
# cd /usr/src/linux-3.5/

Step 4: Configuring Kernel 3.5 Source

For New Kernel Configuration

Now run the make menuconfig command to configure the Linux kernel. Once you execute the below command a pop up window appears with all the menus. Here you can select your new kernel configuration. If you unfamiliar with these menus, just hit ESC key to exit.

# make menuconfig

You will get similar to below screen, where you see number of menus to select configuration for your latest kernel.

Kernel 3.5 Configuration Menu

Kernel 3.5 Configuration Menu

For Old Kernel Configuration

If you like to configure your latest kernel with old configuration then simple type the below command.

# make oldconfig

Step 5: Compiling Kernel 3.5

Next, type the make command to compile the Kernel 3.5. The compilation would take at least 30-40 minutes depends on your system configuration.

# make

Step 5: Installing Kernel 3.5

Once the compliation completes cleanly, now install the Kernel 3.5 in your Linux system. The below command will create files under /boot directory and also make a new kernel entry in your grub.conf file.

# make modules_install install

Step 6: Verifying Kernel 3.5

To verify newly installed Kernel just type the following command on the terminal.

# uname -r

That’s it. We hope this article will be much helpful to you all. If you’re facing any problems or difficulties while compiling or installing feel free to ask or post your questions using our comment form below.

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.
Download Free eBooks
Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

3 Responses

  1. Benito says:


    Upgrading CentOS 6.3 64-bit to 3.5 kernel.

    It is installed on an MSI netbook (wind u135) 1GB of RAM.

    I have successfully completed all the steps up to the 2nd last one .
    When doing a make modules_install install I get :

    Out of memory : Kill process 11891 (depmod) score 861 or sacrifice child
    Killed process 11891, UID 0, (depmod) total-vm:1961888kB, anon-rsss:850832kB,
    /usr/src/linux-3.5/scripts/depmod.sh: line 37:11891 Killed
    make: *** [modinst_post] Error 137

    Do I need more than 1GB of RAM to install the new kernel ? Any ideas for workarounds ?

    Thank you

  2. Thank you for this guide. I just tested this successfully on a CentOS 6.4 system with kernel 3.9.4.

    Apart from the dependencies already mentioned in the article, on a freshly installed minimal CentOS 6.4 I also needed make and bc.

    Note that “make menuconfig” allows you to select the already running kernel’s configuration file (resides in /boot/), and accepts the defaults for all options that were introduced between the old and the new version of the kernel, whereas “make oldconfig” automatically finds the configuration file in /boot/ and asks you questions for all the new configuration options.

    Once again, thanks for the guide!

  3. doujiang24 says:

    I also get the error when install (make modules_install install)
    there only 512RAM, but I set 2GB swap (seems it won’t use swap when I check it via free -m)

    the error: ( hope for your help, thanks very much )

    DEPMOD 3.5.0
    /usr/src/linux-3.5/scripts/depmod.sh: line 37: 8277 Killed “$DEPMOD” “$@” “$KERNELRELEASE”
    make: *** [_modinst_post] Error 137

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.