How to Update Kali Linux 2021.2 by Using Single Command

A new version of Kali Linux has been released on 1 June 2021 with new attractive tools and bug fixes. The major release of Kali Linux version 2021 and minor is Kali Linux 2021.2.

It is available for immediate download.

Changelog of Kali Linux is available here

Non-Root Kali Linux:

This is the first release of the year 2020 with non-root kali Linux so, if you are using kali Linux live then the username and password root/toor will not work.

If you are using kali Linux first time the user username and password kali/kali

Username: kali
Password: kali


If you have an old version then you can update kali Linux by using the following command. If you will face any error then read the complete article.

[email protected]:~# apt update && apt -y full-upgrade 

Latest Operating System always gives better performance, Security, and results. No matter it is Linux, Windows or MAC.

Always Update Kali Linux before using it. If you want to good hacker or penetration tester then make a rule in your life. Update each and every tool before using it.

Lots of vulnerability and patches released every day, so you need to update Kali Linux regularity.

I have created a video to cover update and upgrade kali linux in Hindi Language. If you are good to understand Hindi then this video sure will be helpful for you

Today I am going to discuss how to update Kali Linux in simple steps. Updated Kali Linux and its tools are working properly and give a better result. Update Kali Linux every time before using it. The updation of Kali Linux will give you modern, latest and better working toolsets. You can update Kali Linux by following simple steps given below:

Add repository in Kali Linux
Check Kali Linux version
How to Update Kali Linux
How to Upgrade Kali Linux
How to Dist-upgrade Kali Linux

Add Repository in Kali Linux

A repository is a place where all the updated tools and utility are stored. There are multiple Kali Linux repositories are available worldwide. the tools are available on repositories are tested and maintained by the offensive security team.

It means, downloading or installing tools from the repository is secure and pretested. I suggest you always install tools from the repositories.

You must make the repositories server entry inside the file /etc/apt/sources.list

First, open the file by using any text editor, I am using leafpad text editor. It is preinstalled in Kali Linux.

Step 1: Run the following command to open repository source list file

$gedit /etc/apt/sources.list

Step 2: Add the following line.

deb kali-rolling main non-free contrib

Step 3: Save the file and exit.

More details Visit How to Add Kali Linux repository

Check Kali Linux version

If you are going to update the Kali Linux in the latest version. Your first step, check the installed Kali Linux version.

If you don’t know how to check the kali Linux version, don’t worry, and follow the given steps to check it

the following command is useful to check the Kali Linux version.

#lsb_release -a

[email protected]:~$lsb_release -a
No LSB modules are available.
Distributor ID:	Kali
Description:	Kali GNU/Linux Rolling
Release:	2020.2
Codename:	n/a 
[email protected]:~$

In some cases, if lsb_release -a command is not working,  So it is not a big issue, because there are other methods and commands to check Kali Linux version

Here its

cat /etc/os-release 

[email protected]:~#cat /etc/os-release 
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
[email protected]:~

I have an older version of Kali Linux 2020.2, running on my system and the newer version has been released. And I am always eager to learn new things and getting a new experiences. So I am going to update and upgrade Kali Linux to 2021.2

How to Update Kali Linux

Hey, my dear friend, Do you want to know how to update Kali Linux in the new version 2021.2 Newer version of Kali Linux has been released It is Kali Linux 2021.2.  The newer version fixes bugs and the latest kernel, latest tools, and sometimes adds new tools. In the update, advanced package tool (APT)  fetched headers data of available tools on the repository and saved into a local drive.

You can use the following command to update the Kali Linux.

# apt-get update


$ sudo apt-get update (This command is only for sudo user)

[email protected]:~$sudo apt-get update
[sudo] password for vijay: 
Get:1 kali-rolling InRelease [30.5 kB]
Get:2 kali-rolling/main amd64 Packages [16.5 MB]
Get:3 kali-rolling/non-free amd64 Packages [199 kB]
Get:4 kali-rolling/contrib amd64 Packages [99.8 kB]
Fetched 16.9 MB in 1min 36s (176 kB/s)                                    
Reading package lists... Done
[email protected]:~$

What does update mean in Kali Linux?

When you run the update command it will fetch the information of available tools and its version from the repository and stored in the local computer.

Have a close look on the above result after running update Kali Linux command. This command fetched only 17.4 MB data from the repository.

#apt-get update command does not update a single tool.

If you want to install a newer version to tools / OS/ Other utility then you will have to run upgrade and dist-upgrade command.

How to Upgrade Kali Linux

The upgrade is a process to remove the older version of tools from the Kali Linux and install a newer version.

If the installed tool has a similar version with the available tool on the repository, then it will not be upgraded.

run the following command to upgrade Kali Linux

#apt-get upgrade

When I run the above command then I found the result. I am going the share some lines with you.

These are the last 4 lines before started up-gradation. 1015 tools will be upgraded and 179 will not be upgraded. 179 tools will remain the same.

1780 MB size of files will be downloaded, and 419 MB of additional disk space will be used.

If everything looks good press y and hit enter the up-gradation process will be completed.

1015 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
Need to get 1,780 MB of archives.
After this operation, 419 MB of additional disk space will be used.
Do you want to continue? [Y/n]

How to Dist-upgrade Kali Linux

apt-get command followed by upgrade will only upgrade installed tools. This command will not touch the core system and its utility.

If you want to upgrade core operating system as well as tools at same time then you will have to run the following command.

#apt-get dist-upgrade

1194 upgraded, 73 newly installed, 1 to remove and 0 not upgraded.
Need to get 2,238 MB of archives.
After this operation, 1,042 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

You can see the big difference in the result of running upgrade and dist-upgrade command


You have seen all the points of running Kali Linux update, upgrade and dist-upgrade. If you install the Kali Linux first time then I suggest you run apt-get command followed by dist-upgrade.

After that, you can run the apt-get command with an update and upgrade switch.

Tech Tip : Now you can also access your windows apps and data on your Linux environment in a hassle-free way with Cloud Citrix VDI from CloudDesktopOnline. Learn more about Hosted SharePoint, Office 365 Enterprise E5 plan and QuickBooks Hosting by visiting Apps4Rent.

Do you like this post? if you have any query relate to Update and upgrade Kali Linux please comment below. if you have any questions, let me know in the comment box.


MODULE 3:- Basics of Kali Linux

  1. Install Kali Linux on Hard drive with Full disk Encryption
  2. How to create Kali Linux bootable USB live in windows 10
  3. 20 basics about how to use Kali Linux
  4. 6 steps to change Kali Linux IP address (Easy)
  5. How to Add Kali Linux repository – With pictures
  6. How to update and upgrade Kali Linux to 2017.1
  7. apt-get package handling utility in Kali Linux
  8. How to use Linux debian package manager “dpkg”
  9. How to use Kali Linux SSH Server and client
  10. Start Restart Apache2 Web Server In Kali Linux

If Appreciate My Work, You should consider:

42 thoughts on “How to Update Kali Linux 2021.2 by Using Single Command”

  1. i have installed and updated/upgraded kali 2016.2 64 bit on 16 gig usb drive with persistance.

    now i want to install this to my pc.
    does the fully updated version will be installed on PC or should i have to update/upgrade again ?

  2. Pingback: How to update and upgrade Kali Linux to 2017.1 – Computersystem PC & MAC
  3. When I tried to upgrade my OS I got this error message:
    E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    can you please help me with this?

  4. When I tried to run this update command “apt-get update”
    It just shows”reading package lists…. Done ” and nothing else .every time same thing nothing gets updated same with upgrade
    0 installed 0 ugraded

  5. Hello Sir ,
    Will you completely guide me in learning kali linux because i got this things after months of searching on internet i learned-installing,using in vmware,virtual box,usb persistence and updating the os and the tools now the next for me is learning the the codes and commands and using the tools , I know for you it may not be even a single step but for me doing this is a achievement .
    Hope you guide me to become who i want to an Ethican Hacker and penetration tester.
    Thankyou —–you can connect me through gmail my id is——[email protected]

  6. okay so i have an issue, when i try to update and it asks me press y or n to continue so I put y then it says y is not found, so I type in the word yes and the terminal spam’s thousands of y’s into the terminal. I think kali is broken, I cant even use the app store or create a user. What can I do to fix this?

  7. Hello I’m running kali linux on virtual box and when I type #apt-get update and #apt-get upgrade It won’t install do you know why this happens?

  8. Hi Vijay, i like to say thanks for an excellent article .. Awesome stuff.
    I have a relative simple query if you couldnt help answer this.
    In the terminal after runnning this command: uname -r
    the result is 4.12.0-kali1-amd64.
    if i run an update it would go to 4.13.0-kali1.amd64
    i would like to try and update it to 4.12.0-kali2-amd64 rather than 4.13.0-kali1-amd64.

    I would really appreciate any kind of help.

    Thank you once again.


  9. Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Calculating upgrade… Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    No luck
    Plz help me …

  10. i am getting the error called “there are problems and -y was used without –force yes”. how do i fix this and what does this even mean?

  11. hey, I upgrade my kali linux system into 2018.4 from 2018.3
    , but i want back my 2018.3 . so, how can i do this….
    please help!

    Thank you!

  12. Hi. Just apt-get dist-upgrade now Friday 19 April 2019. Would I be able to get Black Arch tools on this Kali Linux, or should I overwrite Black Arch? Thank You,

    • Hi Dubber Ruckie,
      Apt-get dist-upgrade will upgrade kali linux base system and latest tools. if you want other tools exist in Black Arch, You will have to install on kali Linux manually. If you are good in linux then go through black arch, Using Black Arch is not too difficult.
      Have you any doubt? Ask feel free!



  13. Sir, I want to install pip on kali-rolling version 2019.4 using these commands:
    apt install python3-pip
    apt install python-pip
    apt install pip
    apt install pip3
    It says unable to locate package python-pip.


Leave a Comment