ObjectiveThe following article will provide the readers with information on how to update/upgrade Kali Linux system.
Operating System and Software Versions
- Operating System: - Kali Linux - rolling release
RequirementsPrivileged access to your Kali Linux System as root or via
sudocommand is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - given linux commands to be executed as a regular non-privileged user
Step 1: Configure Kali Linux RepositoriesThe first step is to set correct Kali Linux 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-sources https://http.kali.org/kali kali-rolling main non-free contrib
/etc/apt/sources.listfile may break or compromise your Kali Linux system.
Step 2: Update Kali LinuxTo begin the update of your Kali Linux system first update the packages index list. Open up terminal and enter:
$ sudo apt updateNext, optionally, display all packages which are scheduled for update:
$ apt list --upgradableAt this stage we have an option to upgrade individual packages using
apt install PACKAGE-NAMEor upgrade all packages at once:
$ sudo apt upgrade
Step 3: Upgrade Kept Back PackagesDue to package dependency changes some of the Kali Linux packages might be kept back.
If this is this case you will be notified by the
apt upgradeLinux command at the end of the Kali Linux upgrade process. You may upgrade each kept back package individually using the
apt install PACKAGE-NAMEcommand or update all kept back packages at once:
$ sudo apt dist-upgrade