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 apt update.
What does it do?
It basically updates the repo first,
which is the sources.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 want to 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 has sanded request to Google Sublime
Text proton VPN Etc
and the default source.list package
repository of Kali Linux.
It is fetched the data from here and you
can see the result if it says 332 packages
can be upgraded.
Here we can confirm that there are newer 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.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.