Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
How To Compile And Install Kernel On Ubuntu

How To Compile And Install Kernel On Ubuntu [2023]

Posted on March 9, 2022January 29, 2023 By admin 3 Comments on How To Compile And Install Kernel On Ubuntu [2023]

Steps To Compile And Install Kernel On Ubuntu In 2023

Linux Kernel is the backbone of the Linux-based operating system. No matter which Linux you are using, Linux Kernel will be the same and will remain the crucial section of your operating systems. Linux Kernel is the heart of the operating system.

Before installing or updating Kernel, you have to make sure that you have a backup of the system and other important files so that you can restore it in case of any emergency.

How To Compile And Install Kernel On Ubuntu In 2023

In this article, We will install and compile the kernel on Ubuntu.

At first, you need to download the Linux kernel from the website of  Linux Kernel Organization, Inc.

Download Linux Kernel

At the time of this article writing, Linux Kernel 5.16.13 is the latest version of Linux Kernel. Meanwhile, you can also download the Linux kernel from the command line.

sudo wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.16.13.tar.xz

Now, you need to install the requirements or dependencies before compiling and installing Linux Kernel on Ubuntu.

sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bcflex libelf-dev bison

Now, run the following command for extracting the downloaded file.

sudo tar xvf linux-5.16.13.tar.xz

Now, you need to move to the directory that is recently created while extracting the file.

cd linux-5.16.13

Let us now configure our Kernel :

cp/boot/config-$(uname -r) .config

Now, execute the make menuconfig command so that you can have access to a configuration tool

make menuconfig

Now, you will see the various module in the configuration tool window. From this window, you can disable or enable the various modules.

READ More Relevant Stuff:  How To Install Grub Customizer On Ubuntu 22.04 LTS And Linux Distros

Compiling Kernel On Ubuntu

The first part will be compiling the kernel with the make command and the second part will be installing the kernel modules.

sudo make

Run the following command to know the number of cores available

sudo nproc

Now, you can mention the core with the make command

sudo make-j<3

The -j option is used to assign more cores to the process so that the process speeds up.

Now, here we need to install all the modules that you enabled on the configuration tool for:

 make modules_install

Install Kernel On Ubuntu

Now, it’s time to install Linux Kernel On Ubuntu.

 sudo make install

Once you are done with installing Kernel, run the following command to enable Kernel for a boot.

 sudo update-initramfs -c -k 5.16.13

Now update-grub

sudo update-grub

Now, reboot your Linux (Ubuntu)

sudo reboot

After restarting your Ubuntu, you can run the following command to verify the new Linux Kernel version:

sudo uname -mrs

Summary:

This post teaches you the method for compiling and installing Linux Kernel on Ubuntu. Let us know if you have suggestions for this article in the comment box below. Share our post on “How To Compile And Install Kernel On Ubuntu” to your community and help us to grow.

Linux, Ubuntu 22.04

Post navigation

Previous Post: Systemctl Command Examples
Next Post: How To Backup Ext2, Ext3, or Ext4 File Systems In Linux [Updated]

Related Posts

Mars 15 Laptop Full Specification - Linux Powered Laptop Mars 15 Laptop Full Specification – Linux Powered Laptop Linux
Zorin OS 16.1 Released Zorin OS 16.1 Released Linux
No route to host SSH Error In Linux [Fixed] How To Fix No route to host SSH Error In Linux [Solved] Linux
How To Install Remmina On Ubuntu 22.04 LTS Jammy JellyFish How To Install Remmina On Ubuntu 22.04 LTS Jammy JellyFish How To Ubuntu
Virtualbox 6.0.12 Released | Install In Ubuntu Virtualbox 6.0.12 Released | Install In Ubuntu Linux
Things To Do After Installing Ubuntu 22.04 LTS Things To Do After Installing Ubuntu 22.04 LTS Ubuntu 22.04

Comments (3) on “How To Compile And Install Kernel On Ubuntu [2023]”

  1. Steve Pate says:
    November 22, 2022 at 6:12 pm

    A few minor things to fix

    1. When installing dependencies you need a space between “bcflex” so it’s “bc flex”
    2. Need to explain that you run “sudo make” or “sudo make -jX” but not both
    3. “make modules_install” should be “sudo make modules_install”

    Reply
  2. Dawei Li says:
    February 14, 2023 at 9:38 pm

    Got error: “E: Unable to locate package bcflex” when installing dependencies.

    Reply
  3. Dawei Li says:
    January 2, 2024 at 7:34 am

    You need a space for the following command:
    cp/boot/config-$(uname -r) .config

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023
  • Linux Wget Examples September 27, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Technical Writer

    • Michigan
    • US Tech Solutions
    • Full Time
  • Technical Writer

    • Houston, TX
    • PTR Global
    • Full Time
  • Senior Data Scientist

    • San Francisco, CA (Remote)
    • Patreon
    • Full Time
  • SERVICE WRITER – FLOAT

    • Sauk City, WI
    • McFarlane's
    • Full Time
  • Technical Writer

    • Hanover, MD
    • TAD PGS, Inc.
    • Full Time
  • Technical Writer

    • Carlsbad, NM
    • Airswift
    • Full Time
  • Customs Entry Writer

    • Long Beach, CA
    • Coda Search│Staffing
    • Full Time
  • Technical Writer

    • Palo Alto, CA
    • DeWinter Group
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme