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

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:  Best Linux Remote Desktop Apps To Share Your Desktop

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

Ubuntu Studio 22.04 LTS Released Ubuntu Studio 22.04 LTS Released Date And Features Ubuntu 22.04
Manjaro Linux 22.0 “Sikaris” Released With Linux Kernel 6.1 Linux Wget Examples Linux
How To Clear Apt Cache In Ubuntu, Debian, And Linux Mint How To Clear Apt Cache In Ubuntu, Debian, And Linux Mint Linux
Best Command Line Music Players For Linux Best Command Line Music Players For Linux Linux
Best Linux Operating Systems For Beginners In 2019 Best Linux Operating Systems For Beginners In 2019 Linux
Linux 5.12 Kernel Reaches End of Life Linux 5.12 Kernel Reaches End of Life Linux

Recent Posts

  • New Job Search October 10, 2025
  • 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

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]
  • Data Scientist (AI)

    • Washington DC
    • Promise
    • Full Time
  • User Experience Writer

    • New York, NY
    • Bask Health
    • Full Time
  • Automotive Service Writer

    • San Antonio, TX
    • Vara Chevrolet
    • Full Time
  • Auto Collision Service Writer

    • Sumter, SC
    • Better Collision Centers
    • Full Time
  • Data Scientist – TS/SCI Poly

    • Maryland
    • Plug
    • Full Time
  • Data Scientist

    • Washington DC (Remote)
    • NS2 Mission
    • Full Time
  • Service Writer

    • Henrico, VA
    • BIG O TIRES - RICHMOND (VA)
    • Full Time
  • Crypto Software Engineering Manager (Global – Remote – Non.US)

    • Austin, TX
    • Token Metrics
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme