Kali Linux requires constant updating to keep the tools in functional order. Today, we’re going to properly update and upgrade your Kali Linux.
The most common causes of a broken Kali Linux installation is updating and upgrading from unofficial repositories.
Step 1: Official Repositories For Kali LinuxThe first step is to set correct Kali Linux official repositories. Make sure that your
/etc/apt/sources.listfile contains the following official Kali repositories:
deb https://http.kali.org/kali kali-rolling main non-free contrib deb-src https://http.kali.org/kali kali-rolling main non-free contrib
Step 2: Updating Your Kali LinuxLet's begin updating your Kali Linux operating system. Open up your terminal and type:
sudo apt updateOR
apt update && apt upgrade -yThis command in the terminal, it will upgrade everything, remove old packages:
sudo apt full-upgradeIf you want to see the list upgradeable tools. which we can upgrade individually or which are schedule for update.
apt list --upgradable
sudo apt upgrade
Step 3: Upgrade Kept Back PackagesWe can upgrade individual packages using
apt install PACKAGE-NAMEor upgrade all packages at once using
sudo apt dist-upgrade
Step 4: Uninstall No Longer Required PackagesTo remove all no longer required Kali Linux packages try
sudo apt autoremove