{"id":24204,"date":"2024-01-31T14:08:27","date_gmt":"2024-01-31T14:08:27","guid":{"rendered":"https:\/\/linuxways.net\/?p=24204"},"modified":"2024-01-31T14:08:27","modified_gmt":"2024-01-31T14:08:27","slug":"update-kernel-kali-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/update-kernel-kali-linux\/","title":{"rendered":"How to Update Kernel on Kali Linux"},"content":{"rendered":"<p>A <strong>Linux Kernel <\/strong>is the backbone of an operating system that works as a bridge between the software and hardware components of your system. An updated Kernel ensures compatibility with the latest hardware, latest software updates, bugs and crash fix that helps optimize your system security. The newer Kernel version also includes updated drivers for hardware like graphic processors, Wi-Fi cards and more. Thus, keeping your <strong>Linux Kernel <\/strong>updated is not just an option, it is necessary.<\/p>\n<p>If you are using the Kali Linux system, you must update your system Kernel to protect your system from vulnerability and ensure updating the important performance improvement.<\/p>\n<p>In this guide, you will learn:<\/p>\n<ul>\n<li><a href=\"#post-24204-_6l6lb07d1mdo\"><strong>How to Update Kernel on Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24204-_t85gutvjew7t\"><strong>How to Select a Specific Kernel Version for Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24204-_hb6svb4v3izd\"><strong>How to Install Kernel on Kali Linux from Apt Repository<\/strong><\/a><\/li>\n<li><a href=\"#post-24204-_l482frysp2sg\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24204-_6l6lb07d1mdo\"><\/a><strong>H<\/strong><a id=\"post-24204-c4zcvp53d3h4\"><\/a><strong>ow to Update Kernel on Kali Linux<\/strong><\/h2>\n<p>Updating a <strong>Kernel <\/strong>on Kali Linux is a simple task, which can be done from the below-given steps:<\/p>\n<p><strong>Step 1: Check Kernel Version on Kali Linux<\/strong><\/p>\n<p>Before proceeding towards the update process, you should check your current Kernel version on Kali Linux from the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">uname<\/span> <span class=\"re5\">-r<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"162\" class=\"wp-image-24222\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-1.png 740w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-1-300x66.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p><strong>Step 2: Update System Packages<\/strong><\/p>\n<p>It is also mandatory to update your system packages on Kali Linux so that it will prepare the latest <strong>Kernel version<\/strong> from the repository. The packages on Kali Linux can be updated from the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"304\" class=\"wp-image-24224\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-2.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-2-300x124.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p>While applying the <strong>update<\/strong> command, all the packages in the repository will be available for upgrade. You can quickly upgrade those packages on Kali Linux from the following<strong> upgrade<\/strong> command with<strong> -y<\/strong> flag for approval:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"259\" class=\"wp-image-24227\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-3.png 746w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-3-300x104.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/p>\n<p>Though after the upgrade process, it may update the <strong>Kernel version<\/strong>, but it is recommended to perform additional steps to fully upgrade your system. This will help remove the conflicts between the packages that may cause issues with the latest <strong>Kernel version<\/strong>.<\/p>\n<p><strong>Step 3: Perform Full System Upgrade<\/strong><\/p>\n<p>It is a good approach to perform a full system upgrade so that all the dependencies, libraries associated with the packages are upgraded. This also includes removing packages that conflict with your latest <strong>Kernel version<\/strong>. You can perform full system upgrade on Kali Linux by running the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt dist-upgrade <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt full-upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"206\" class=\"wp-image-24231\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-4.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-4-300x79.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-4-768x202.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p>The <strong>dist-upgrade<\/strong> command handles the packages&#8217; dependency in a smart way, as it removes dependency packages that are no longer required on the system or have conflicts with your system. Thus, this command streamlines your system and helps to free up disk space.<\/p>\n<p>On the other hand, the <strong>full-upgrade<\/strong> command works similar to <strong>dist-upgrade<\/strong>, but it may remove packages that directly prevent the installation of a required update. So, it is better to use both these packages besides using the <strong>upgrade<\/strong> command to ensure updating the <strong>Kernel<\/strong> on Kali Linux, removing the conflicted packages and freeing up the disk space on the system.<\/p>\n<p><strong>Step 4: Reboot Kali Linux<\/strong><\/p>\n<p>Once the upgrade process is completed, reboot your Kali Linux system using the <strong>reboot <\/strong>command.<\/p>\n<p><strong>Step 5: Check Kernel Version<\/strong><\/p>\n<p>By default, the system will select the upgraded Kali Linux version on your system after the reboot. You can confirm the updated Kali Linux\u2019s <strong>Kernel <\/strong>version by running the below-given command again:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">uname<\/span> <span class=\"re5\">-r<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"177\" class=\"wp-image-24236\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-5.png 695w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-5-300x76.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/p>\n<p>The above command ensures that the Kali Linux system is upgraded to the latest <strong>Kernel<\/strong> version.<\/p>\n<h2><a id=\"post-24204-cffxyzul7xve\"><\/a><a id=\"post-24204-_t85gutvjew7t\"><\/a><strong>How to Select a Specific Kernel Version for Kali Linux<\/strong><\/h2>\n<p>While updating the<strong> Kernel <\/strong>on Kali Linux, your previous <strong>Kernel version<\/strong> will not be deleted from the system. You can enter the system with the previous <strong>Kernel version<\/strong> by selecting it from the GRUB menu using the following steps:<\/p>\n<p><strong>Step 1: <\/strong>First, run your Kali Linux system and select the <strong>Advanced options for Kali GNU\/Linux <\/strong>from the GRUB Menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"868\" height=\"543\" class=\"wp-image-24245\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-6.png 868w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-6-300x188.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-6-768x480.png 768w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Then choose the <strong>Kernel<\/strong> version you want to use for Kali Linux<strong>, <\/strong>once selected, press the <strong>Enter <\/strong>button to enter the system with the selected <strong>Kernel <\/strong>version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"523\" class=\"wp-image-24254\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-7.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-7-300x199.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-7-768x510.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p><strong>Step 3: <\/strong>To ensure the system uses the selected <strong>Kernel<\/strong> on Kali Linux, you can run the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">uname<\/span> <span class=\"re5\">-r<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"162\" class=\"wp-image-24262\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-8.png 740w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-8-300x66.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<h2><a id=\"post-24204-snbz2dy29rwb\"><\/a><a id=\"post-24204-_hb6svb4v3izd\"><\/a><strong>How to Install Kernel on Kali Linux from Apt Repository<\/strong><\/h2>\n<p>Besides using the <strong>upgrade, dist-upgrade <\/strong>and <strong>full-upgrade <\/strong>commands to update the <strong>Kernel <\/strong>on Kali Linux system, you can also install it manually through the apt repository. This can be done from the steps given below:<\/p>\n<p><strong>Step 1: Update System Packages<\/strong><\/p>\n<p>Before installing <strong>Kernel <\/strong>on Kali Linux from apt repository, you should update repository using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt upgrade<\/div><\/div>\n<p><strong>Step 2: Find the Latest Linux Kernel <\/strong><\/p>\n<p>Then execute the <strong>apt-cache search<\/strong> command followed by<strong> linux-image<\/strong> keyword to find the Kernel images in the default Kali Linux repository:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">apt-cache search<\/span> linux-image<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"314\" class=\"wp-image-24272\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-9.png 808w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-9-300x117.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24204-9-768x298.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/p>\n<p>From the above command, you will be able to see the updated <strong>Kernel <\/strong>version as well as the previous <strong>Kernel <\/strong>version installed on Kali Linux.<\/p>\n<p><strong>Note: <\/strong>Ensure selecting the Kernel version starting with the prefix <strong>linux_image_Ver-kali3-amd64.<\/strong><\/p>\n<p><strong>Step 3: Install Latest Kernel Version on Kali Linux<\/strong><\/p>\n<p>After you find the latest <strong>Kernel <\/strong>version, you can install it on Kali Linux system from the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> linux_image_Ver-kali3-amd64<\/div><\/div>\n<p><strong>Note: <\/strong>You must replace the<strong> linux_image_Ver-kali3-amd64 <\/strong>in the above command with the Kernel version you want to install for the Kali Linux system. In my case, the latest version is <strong>6.5.0, <\/strong>which can be installed from below command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> linux_image-6.5.0-kali3-amd64<\/div><\/div>\n<p>After installing the Kernel, you can reboot the device and select the <strong>Kernel version<\/strong> you want to use through the <strong>GRUB<\/strong> menu. Once your system is booted, you can confirm the Kernel version again by using the <strong>uname -r <\/strong>command.<\/p>\n<h2><a id=\"post-24204-r9v7olukc93u\"><\/a><a id=\"post-24204-_l482frysp2sg\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p>Updating your <strong>Kernel version<\/strong> on Kali Linux is an essential task for improving the system security and ensuring compatibility with the latest hardware. You can update <strong>Kernel<\/strong> on Kali Linux by first running the update command with sudo privileges to check for packages update. Then run the upgrade command to upgrade packages and <strong>Kernel <\/strong>on the Kali Linux system. You should also require running the <strong>dist-upgrade<\/strong> and <strong>full-upgrade<\/strong> commands to ensure upgrading the <strong>Kernel version<\/strong> and removing the conflicted packages. You will find how to update <strong>Kernel<\/strong>, switch to specific <strong>Kernel <\/strong>and install <strong>Kernel<\/strong> from apt repository in the above sections of this guide. Follow these methods to seamlessly run Kali Linux with an updated <strong>Kernel version<\/strong>.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can update Kernel on Kali Linux by running the update, upgrade, dist-upgrade and full-upgrade commands. Read this guide for more details.<\/p>","protected":false},"author":116,"featured_media":24453,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-24204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24204"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24204\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24453"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}