1 00:00:01,200 --> 00:00:02,940 Hello and welcome, everyone. 2 00:00:03,300 --> 00:00:11,970 So in this lesson we are going to learn about DPG, which is one of the package manager for Debian based 3 00:00:11,970 --> 00:00:12,870 systems. 4 00:00:13,230 --> 00:00:21,420 So I am currently logged in into my Kali Linux operating system, which is basically developed over 5 00:00:21,420 --> 00:00:22,230 Debian. 6 00:00:22,980 --> 00:00:32,880 Now as you can see over here, this is the Debian dot org packages subdomain wherein you can identify 7 00:00:32,910 --> 00:00:40,920 all the packages that are available and can be installed using the dpkg package manager. 8 00:00:41,880 --> 00:00:48,360 Over here you can see you can search for any specific package that you need to install. 9 00:00:48,510 --> 00:00:54,900 So I have searched for curl because I need to install curl for demonstration. 10 00:00:55,590 --> 00:01:04,500 And you can see here it is the version which is in the format which is DB, which is dot db which basically 11 00:01:04,500 --> 00:01:06,660 stands for Debian. 12 00:01:07,320 --> 00:01:09,960 Now here we can confirm that. 13 00:01:09,960 --> 00:01:15,240 Yeah, this is what we need to install into our Debian based operating system. 14 00:01:15,330 --> 00:01:21,420 Similarly, in case you want to install the end right package, you would use dot apk. 15 00:01:21,480 --> 00:01:27,540 In case you need to install a US package, you would be installing dot IPA. 16 00:01:28,290 --> 00:01:31,620 Now we need to download this into our computer. 17 00:01:31,710 --> 00:01:40,650 Now we can see this belongs to Debian and now we have to download this and install it using dpkg. 18 00:01:41,370 --> 00:01:50,520 So here it mentions and strongly suggest that we use package managers to install code, but we will 19 00:01:50,520 --> 00:01:55,200 download the requested file which is cool and this is how it looks like. 20 00:01:55,770 --> 00:01:59,340 Now we have successfully downloaded the latest version of Curl. 21 00:01:59,370 --> 00:02:07,640 7.50 2.1, which is for Debian AMD 64 architecture and this is dot deb. 22 00:02:07,650 --> 00:02:11,250 As I've already expressed, this is for Debian based systems. 23 00:02:11,490 --> 00:02:19,290 Now you need to open up your terminal and you simply have to type dpkg hyphen ie wherein IE stands for 24 00:02:19,290 --> 00:02:28,020 install and the part of the package that you need to install which is curl in our case, which of which 25 00:02:28,020 --> 00:02:29,640 we have just downloaded. 26 00:02:30,030 --> 00:02:37,500 Now you can see it did not install and there are some messages that we can see onto the screen, which 27 00:02:37,500 --> 00:02:41,850 is dependency problems prevented configuration of curl. 28 00:02:42,270 --> 00:02:50,250 We can clearly see that curl depends on lip curl three version which is not installed into our computer. 29 00:02:50,430 --> 00:03:00,600 So we can confirm over here that whatever packages we would like to install using dpkg manually will 30 00:03:00,600 --> 00:03:02,940 give us broken dependencies. 31 00:03:02,940 --> 00:03:11,220 And the conclusion is that we need to install manually all the required dependencies to successfully 32 00:03:11,220 --> 00:03:13,690 install a specific tool that we want. 33 00:03:13,710 --> 00:03:15,630 Like curl, for example. 34 00:03:16,200 --> 00:03:18,540 So what is the alternative to it? 35 00:03:18,570 --> 00:03:26,130 We are going to instead use apt and the command is super simple which is apt hyphen get install and 36 00:03:26,130 --> 00:03:27,870 the package name which is curl. 37 00:03:28,410 --> 00:03:36,180 This will automatically install all the dependencies required for curl and successfully install and 38 00:03:36,180 --> 00:03:38,320 finish it as you can see over here. 39 00:03:38,340 --> 00:03:47,010 So we have now curl installed without manually installing the dependencies and we can confirm that curl 40 00:03:47,010 --> 00:03:49,440 is installed by running the command curl. 41 00:03:49,650 --> 00:03:52,500 Let us also see the help menu and we can see. 42 00:03:52,500 --> 00:03:54,720 Yeah, it is successfully installed. 43 00:03:54,840 --> 00:03:57,390 Let us see the version and here we can see. 44 00:03:57,390 --> 00:04:03,120 Yeah, this is actually the latest version which is 7.70 4.0. 45 00:04:03,720 --> 00:04:05,140 This is it for this lesson. 46 00:04:05,160 --> 00:04:11,460 I hope you guys understood there is an easier way to install your packages than dpkg. 47 00:04:11,490 --> 00:04:18,420 If you want to do it manually, definitely you can, but you have to install all the dependencies one 48 00:04:18,420 --> 00:04:22,350 by one manually, which can be a tiring task for you. 49 00:04:22,830 --> 00:04:24,350 So this is it for this lesson. 50 00:04:24,360 --> 00:04:25,770 I hope you guys understood. 51 00:04:25,800 --> 00:04:26,550 Thank you.