1 00:00:02,130 --> 00:00:03,180 Hello, everyone. 2 00:00:03,660 --> 00:00:11,700 So in this lesson, we are going to see what is RPM and how you can use RPM to install packages into 3 00:00:11,700 --> 00:00:12,480 your computer. 4 00:00:13,430 --> 00:00:17,120 So RPM stands for RedHat Package Manager. 5 00:00:17,360 --> 00:00:25,040 It refers to basically all the dot rpm file format, which are basically the packages that will install 6 00:00:25,040 --> 00:00:27,980 into redhat based operating systems. 7 00:00:28,160 --> 00:00:34,040 Initially, it was created for the use in Red Hat Base Operating system, which is Red Hat Linux. 8 00:00:34,310 --> 00:00:41,480 Then it was ported and then used by Fedora Center was open source, etc.. 9 00:00:42,530 --> 00:00:47,660 So basically all the RPM packages are arbitrary set of files. 10 00:00:48,020 --> 00:00:54,320 Most of the RPM files are basically binary rpms, which is basically nothing but a binary file. 11 00:00:55,330 --> 00:00:57,160 The syntax is again very simple. 12 00:00:57,580 --> 00:01:00,790 It is RPM command and the package name. 13 00:01:00,790 --> 00:01:01,930 So Command stands for. 14 00:01:01,930 --> 00:01:04,450 What do you want to do with that particular package? 15 00:01:04,990 --> 00:01:10,960 So let's quickly jump on to the practical time and let's see how can we use RPM. 16 00:01:12,310 --> 00:01:20,260 So as you can see over here, I have already downloaded a RPM file which is w get from the website which 17 00:01:20,260 --> 00:01:30,040 is a RPM find dot net and you can search over here any package that you want and you can basically download 18 00:01:30,040 --> 00:01:31,510 it from here. 19 00:01:32,050 --> 00:01:34,520 As you can see, I have already downloaded a file. 20 00:01:34,540 --> 00:01:40,090 As you can see it over here, which is w get the version number or RPM. 21 00:01:40,670 --> 00:01:40,960 Okay. 22 00:01:40,960 --> 00:01:49,690 So as you can see, I have downloaded the W gate file from the website which is a RPM find dot net and 23 00:01:49,690 --> 00:01:51,130 the file has been downloaded. 24 00:01:51,130 --> 00:01:59,110 And if you look closely, the extension is dot rpm, which signifies this file is for RPM based systems. 25 00:01:59,800 --> 00:02:00,520 Perfect. 26 00:02:01,210 --> 00:02:08,830 Now let's quickly jump on to our terminal and let's navigate to the downloads directory and we are currently 27 00:02:08,830 --> 00:02:09,520 over here. 28 00:02:10,360 --> 00:02:18,190 Let's quickly list the files and you can see we have our duplicate file over here with the extension 29 00:02:18,190 --> 00:02:19,750 which is dot rpm. 30 00:02:19,990 --> 00:02:25,750 If you check with the file command, it is going to tell us that. 31 00:02:25,750 --> 00:02:27,790 Yeah, it is a binary file. 32 00:02:27,820 --> 00:02:33,280 The name is the blue gate and the extension is dot rpm, which is exactly correct. 33 00:02:33,700 --> 00:02:45,160 Now let us use RPM, which is default install into our this REL operating system to install this file. 34 00:02:45,370 --> 00:02:54,760 So I'm going to just type hyphen I, which signifies that we are going to install something and the 35 00:02:54,760 --> 00:02:58,510 path or the name of that particular file. 36 00:02:59,470 --> 00:02:59,920 Okay. 37 00:02:59,920 --> 00:03:04,720 So now once I hit enter, you have to observe what happens. 38 00:03:06,190 --> 00:03:10,060 So as you can see, when I hit enter, you can see we got an error. 39 00:03:10,960 --> 00:03:14,230 The error says failed dependencies. 40 00:03:14,230 --> 00:03:17,080 And the dependencies are glib. 41 00:03:17,110 --> 00:03:21,580 It is greater than equals to 2.33 and a version number. 42 00:03:21,850 --> 00:03:22,410 Lip. 43 00:03:22,450 --> 00:03:23,440 C lip. 44 00:03:23,470 --> 00:03:25,390 C and lip. 45 00:03:25,390 --> 00:03:25,960 Nettle. 46 00:03:26,320 --> 00:03:27,550 So and so on. 47 00:03:27,940 --> 00:03:34,600 So here we can see that there are multiple dependencies for the package that we are trying to install, 48 00:03:34,600 --> 00:03:42,160 which are not satisfied or fulfilled by just downloading the RPM file. 49 00:03:43,210 --> 00:03:48,520 This is something like you have downloaded a file and you're trying to install, but that particular 50 00:03:48,520 --> 00:03:53,710 file contains more dependencies with itself and you're doing it manually. 51 00:03:53,710 --> 00:03:58,120 So you have to basically install all the dependencies manually as well. 52 00:03:58,150 --> 00:04:01,300 But it is totally oppose it. 53 00:04:01,300 --> 00:04:10,150 When you are using package manager like VM in which we have seen that it automatically resolves all 54 00:04:10,150 --> 00:04:11,260 the dependencies. 55 00:04:12,600 --> 00:04:19,950 We exactly saw the same in Peru wherein we tried to install the blue gate and it just seamlessly installed 56 00:04:19,950 --> 00:04:22,350 all the dependencies without any issues. 57 00:04:22,800 --> 00:04:31,560 But that is an added advantage when we use package managers and try to install packages or apps without 58 00:04:31,560 --> 00:04:33,570 installing them manually like this. 59 00:04:33,750 --> 00:04:40,080 This can also be done, but it is a tedious process and we do not want to waste much time in installing 60 00:04:40,080 --> 00:04:42,390 these tools and the dependencies one by one. 61 00:04:42,900 --> 00:04:44,490 So I hope you guys understood. 62 00:04:44,520 --> 00:04:45,210 Thank you.