{"id":23581,"date":"2024-01-18T07:35:22","date_gmt":"2024-01-18T07:35:22","guid":{"rendered":"https:\/\/linuxways.net\/?p=23581"},"modified":"2024-01-23T07:29:02","modified_gmt":"2024-01-23T07:29:02","slug":"update-kali-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/update-kali-linux\/","title":{"rendered":"How to Update Kali Linux"},"content":{"rendered":"<p><strong>Kali Linux <\/strong>is a powerful Linux operating system used for ethical hacking, penetration testing and other security tasks. It includes several tools that allow you to find and fix security weaknesses in your system. Updating your <strong>Kali Linux <\/strong>system is crucial for improving your system security and privacy. An updated system will ensure the installation of up-to-date applications that run smoothly on your system.<\/p>\n<p>In this guide, you learn:<\/p>\n<ul>\n<li><a href=\"#post-23581-etpmhkjylba1\"><strong>How to Update Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-23581-z12b9qko4gu2\"><strong>How to Update Kali Linux from a Single Command<\/strong><\/a><\/li>\n<li><a href=\"#post-23581-ylxoneidm9xc\"><strong>How to Update Kali Linux from apt-get Command<\/strong><\/a><\/li>\n<li><a href=\"#post-23581-iikjjv15e0hf\"><strong>How to Automatically Update Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-23581-7rt71l6c016w\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-23581-etpmhkjylba1\"><\/a><strong>How to Update Kali Linux<\/strong><\/h2>\n<p>On Linux systems, including <strong>Kali Linux, <\/strong>the packages and software are mostly installed through the default apt repository. The repository includes packages that can be installed on the system through the apt command. Once these packages are installed, they are added to the system and can be run any time. These packages are linked with the other default packages or applications installed on your system. Thus, updating the repository will automatically update these packages on the system and keep your system up to date.<\/p>\n<p>To check for package (system) updates on<strong> Kali Linux, <\/strong>first use 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=\"792\" height=\"280\" class=\"wp-image-23594\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-1.png 792w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-1-300x106.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-1-768x272.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>The above command will provide you with the information of the packages that need to be updated on the <strong>Kali Linux<\/strong> system.<\/p>\n<p>If you want to see the packages list that need to be upgraded on <strong>Kali Linux<\/strong>, you can use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--upgradable<\/span><\/div><\/div>\n<p>To upgrade the packages on <strong>Kali Linux<\/strong>, you should run 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 upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"288\" class=\"wp-image-23595\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-2.png 790w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-2-300x109.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-2-768x280.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/p>\n<p>In the above-given command, the <strong>-y <\/strong>flag will provide approval to install the upgraded version of the packages on <strong>Kali Linux<\/strong>.<\/p>\n<p>Besides using the upgrade command to update<strong> Kali Linux<\/strong>, you can also consider running the <strong>dist-upgrade<\/strong> command. It handles the dependencies in a more efficient way compared to <strong>upgrade <\/strong>command. However, the disadvantage <strong>dis-upgrade<\/strong> is that it removes and installs new packages that are required to resolve dependency conflicts.<\/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=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"188\" class=\"wp-image-23596\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-3.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-3-300x70.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-3-768x180.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<p>Apart from <strong>dist-upgrade<\/strong>, you can use the<strong> full-upgrade <\/strong>command to perform a similar action on <strong>Kali Linux<\/strong>, this can be done using:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt full-upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"268\" class=\"wp-image-23600\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-4.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-4-300x102.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-4-768x262.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<h2><a id=\"post-23581-z12b9qko4gu2\"><\/a><strong>How to Update Kali Linux from a Single Command<\/strong><\/h2>\n<p>Besides using the update and upgrade commands individually, you can also combine them to update <strong>Kali Linux<\/strong>, this can be done using:<\/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 <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"185\" class=\"wp-image-23602\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-5.png 627w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-5-300x89.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/p>\n<h2><a id=\"post-23581-g6jc9gkvi9sa\"><\/a><strong>How to Update a Single Package on Kali Linux<\/strong><\/h2>\n<p>If you want to update an individual package on <strong>Kali Linux<\/strong>, you can use the following command by replacing the<strong> package_name:<\/strong><\/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> <span class=\"re5\">--only-upgrade<\/span> package_name<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"231\" class=\"wp-image-23603\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-6.png 636w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-6-300x109.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/p>\n<h2><a id=\"post-23581-ylxoneidm9xc\"><\/a><strong>How to Update Kali Linux from apt-get Command<\/strong><\/h2>\n<p>Apart from using the <strong>apt<\/strong> <strong>update <\/strong>command, you can also use <strong>apt-get<\/strong> <strong>update <\/strong>to update <strong>Kali Linux. <\/strong>However, it is advised to use <strong>apt<\/strong> command instead of <strong>apt-get<\/strong> because <strong>apt<\/strong> command not only installs packages, but it updates the dependencies as well. On the other hand, <strong>apt-get <\/strong>only updates the packages on the system.<\/p>\n<h2><a id=\"post-23581-iikjjv15e0hf\"><\/a><strong>How to Automatically Update Kali Linux<\/strong><\/h2>\n<p>The <strong>unattended-upgrades<\/strong> is a useful command-line utility for Linux systems including <strong>Kali Linux <\/strong>that automate the process of updating the system. It avoids the headache of updating the system again and again using the apt update commands. You can install<strong> unattended-upgrades<\/strong> on <strong>Kali Linux<\/strong> 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 <span class=\"kw2\">install<\/span> unattended\u2013upgrades<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"400\" class=\"wp-image-23614\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-7.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-7-300x152.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-7-768x390.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>After installing<strong> unattended-upgrades<\/strong>, open the configuration file using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">nano<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>apt.conf.d<span class=\"sy0\">\/<\/span>50unattended-upgrades<\/div><\/div>\n<p>Inside this file, uncomment those lines starting with<strong> \/\/<\/strong> according to your choice:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"461\" class=\"wp-image-23625\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-8.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-8-300x176.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-8-768x449.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>Save this file using <strong>CTRL+X<\/strong>, add <strong>Y<\/strong> and press<strong> Enter<\/strong> to exit to the terminal.<\/p>\n<p>Then open the<strong> unattended-upgrades<\/strong> configuration settings on<strong> Kali Linux<\/strong> using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dpkg-reconfigure <span class=\"re5\">--priority<\/span>=low unattended-upgrades<\/div><\/div>\n<p>Select <strong>Yes <\/strong>to allow installing automatic updates on <strong>Kali Linux<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"460\" class=\"wp-image-23628\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-9.png 786w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-9-300x176.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-9-768x449.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>Once completed, ensure the <strong>unattended-upgrades <\/strong>service is running on<strong> Kali Linux<\/strong>, this can be done from the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl status unattended-upgrades.service<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"289\" class=\"wp-image-23636\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-10.png 790w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-10-300x110.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-10-768x281.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/p>\n<p>To test <strong>unattended-upgrades<\/strong> is working, you can try 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> unattended-upgrades <span class=\"re5\">--dry-run<\/span> <span class=\"re5\">--debug<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"287\" class=\"wp-image-23642\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-11.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-11-300x108.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-11-768x277.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p><strong>Note:<\/strong> You can stop the automatic updates on <strong>Kali Linux<\/strong> by executing the below-given command again and select <strong>No <\/strong>option later on:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dpkg-reconfigure <span class=\"re5\">--priority<\/span>=low unattended-upgrades<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"461\" class=\"wp-image-23643\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-12.png 785w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-12-300x176.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23581-12-768x451.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/p>\n<h2><a id=\"post-23581-7rt71l6c016w\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p>Updating <strong>Kali Linux <\/strong>is crucial for enhancing the security of the system. You can update <strong>Kali Linux <\/strong>by running the update and upgrade commands. You can also update an individual package by executing the upgrade command followed by the package name you want to update. You can also install and enable <strong>unattended-upgrades <\/strong>on your system to automatically update your <strong>Kali Linux<\/strong> system. We have provided details about how to update your <strong>Kali Linux <\/strong>system, this will help ensure using up to date packages on the system.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can update Kali Linux by using the update and upgrade command. You can also use unattended-upgrades to automatically update the system. <\/p>","protected":false},"author":116,"featured_media":23687,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-23581","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\/23581","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=23581"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23581\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23687"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}