1
00:00:01,140 --> 00:00:04,920
In this lesson, we are going to learn about updating packages.

2
00:00:06,400 --> 00:00:09,730
So why do we need to update packages?

3
00:00:10,000 --> 00:00:12,820
There could be possible many reasons to it.

4
00:00:13,630 --> 00:00:18,100
There is a new version of that specific package with added features.

5
00:00:18,280 --> 00:00:23,710
Or was there any bug or any security issue that was fixed?

6
00:00:23,890 --> 00:00:28,840
So we should always keep our packages updated to the latest version.

7
00:00:29,960 --> 00:00:37,040
Now we are going to update the packages and also going to update our repositories.

8
00:00:37,460 --> 00:00:41,780
So when we run the command app update, what does it do?

9
00:00:42,050 --> 00:00:49,460
It basically updates the repo first, which is the source dot list file, then it checks.

10
00:00:49,580 --> 00:00:54,710
What are the new versions available for the installed packages in your system?

11
00:00:55,670 --> 00:01:00,980
So it's a practical time and let's see how to practically use this command.

12
00:01:01,910 --> 00:01:09,770
So I'm onto my terminal and I'm going to use the command apt update when I do this, the first thing

13
00:01:09,770 --> 00:01:16,520
that is going to happen is it is going to update all the sources start list file that is being added

14
00:01:16,520 --> 00:01:23,720
in my system to verify if there are any new updates for any packages that are currently installed.

15
00:01:23,720 --> 00:01:24,680
In my system.

16
00:01:25,160 --> 00:01:33,880
As you can see, it is send a request to Google Sublime Text, Protonvpn, etc. and the default sources

17
00:01:33,890 --> 00:01:36,950
not list package repository of Kali Linux.

18
00:01:38,120 --> 00:01:47,120
It is fetch the data from here and you can see the result which is 332 packages can be upgraded here.

19
00:01:47,120 --> 00:01:53,300
We can confirm that there are new versions for already installed packages in our system.

20
00:01:53,870 --> 00:02:01,010
Let's run the command once more and here you can see this time it has only sent request to these new

21
00:02:01,010 --> 00:02:08,840
sources dot list to verify if there are any available packages because it has already verified any new

22
00:02:08,840 --> 00:02:12,590
updates from the official repo of Kali.

23
00:02:13,490 --> 00:02:19,070
Here we can confirm that there are 332 packages and if you want you can update those packages to the

24
00:02:19,070 --> 00:02:20,000
latest version.

25
00:02:20,360 --> 00:02:21,020
Thank you.
