Hello, everyone.
So in this lesson, we are going to see what is RPM and how you can use RPM to install packages into
your computer.
So RPM stands for RedHat Package Manager.
It refers to basically all the dot rpm file format, which are basically the packages that will install
into redhat based operating systems.
Initially, it was created for the use in Red Hat Base Operating system, which is Red Hat Linux.
Then it was ported and then used by Fedora Center was open source, etc..
So basically all the RPM packages are arbitrary set of files.
Most of the RPM files are basically binary rpms, which is basically nothing but a binary file.
The syntax is again very simple.
It is RPM command and the package name.
So Command stands for.
What do you want to do with that particular package?
So let's quickly jump on to the practical time and let's see how can we use RPM.
So as you can see over here, I have already downloaded a RPM file which is w get from the website which
is a RPM find dot net and you can search over here any package that you want and you can basically download
it from here.
As you can see, I have already downloaded a file.
As you can see it over here, which is w get the version number or RPM.
Okay.
So as you can see, I have downloaded the W gate file from the website which is a RPM find dot net and
the file has been downloaded.
And if you look closely, the extension is dot rpm, which signifies this file is for RPM based systems.
Perfect.
Now let's quickly jump on to our terminal and let's navigate to the downloads directory and we are currently
over here.
Let's quickly list the files and you can see we have our duplicate file over here with the extension
which is dot rpm.
If you check with the file command, it is going to tell us that.
Yeah, it is a binary file.
The name is the blue gate and the extension is dot rpm, which is exactly correct.
Now let us use RPM, which is default install into our this REL operating system to install this file.
So I'm going to just type hyphen I, which signifies that we are going to install something and the
path or the name of that particular file.
Okay.
So now once I hit enter, you have to observe what happens.
So as you can see, when I hit enter, you can see we got an error.
The error says failed dependencies.
And the dependencies are glib.
It is greater than equals to 2.33 and a version number.
Lip.
C lip.
C and lip.
Nettle.
So and so on.
So here we can see that there are multiple dependencies for the package that we are trying to install,
which are not satisfied or fulfilled by just downloading the RPM file.
This is something like you have downloaded a file and you're trying to install, but that particular
file contains more dependencies with itself and you're doing it manually.
So you have to basically install all the dependencies manually as well.
But it is totally oppose it.
When you are using package manager like VM in which we have seen that it automatically resolves all
the dependencies.
We exactly saw the same in Peru wherein we tried to install the blue gate and it just seamlessly installed
all the dependencies without any issues.
But that is an added advantage when we use package managers and try to install packages or apps without
installing them manually like this.
This can also be done, but it is a tedious process and we do not want to waste much time in installing
these tools and the dependencies one by one.
So I hope you guys understood.
Thank you.