In this lesson, we are going to learn about updating packages.
So why do we need to update packages?
There could be possible many reasons to it.
There is a new version of that specific package with added features.
Or was there any bug or any security issue that was fixed?
So we should always keep our packages updated to the latest version.
Now we are going to update the packages and also going to update our repositories.
So when we run the command app update, what does it do?
It basically updates the repo first, which is the source dot list file, then it checks.
What are the new versions available for the installed packages in your system?
So it's a practical time and let's see how to practically use this command.
So I'm onto my terminal and I'm going to use the command apt update when I do this, the first thing
that is going to happen is it is going to update all the sources start list file that is being added
in my system to verify if there are any new updates for any packages that are currently installed.
In my system.
As you can see, it is send a request to Google Sublime Text, Protonvpn, etc. and the default sources
not list package repository of Kali Linux.
It is fetch the data from here and you can see the result which is 332 packages can be upgraded here.
We can confirm that there are new versions for already installed packages in our system.
Let's run the command once more and here you can see this time it has only sent request to these new
sources dot list to verify if there are any available packages because it has already verified any new
updates from the official repo of Kali.
Here we can confirm that there are 332 packages and if you want you can update those packages to the
latest version.
Thank you.