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 Red Hat package manager.
It refers to basically all the dot
RPM file format.
Which are basically the packages that will install
into red hat based operating systems initially.
It was created for the use in Red
Hat base operating system, which is red hot
Linux.
Then it was ported and then used by Fedora
Centos open suse Etc.
So basically all the RPM packages are arbitically
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 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 RPM
file which is wget from
the website, which is
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 wget the
version number dot RPM.
Okay, so as you can see, I have downloaded the wget
file from the website, which is 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 base 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 extension which is dot RPM if
we check with the file command.
It was going to tell us that yeah,
it is a binary file. The name is
wget 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 - 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 a
error.
The error says failed dependencies and
the dependencies are g-lib which
is greater than equals to 2.33 and
a version number lip C
Lipsy and lip nettle
dot 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 installed
all the dependencies manually as
well, but
it is totally opposite when you're using package manager
like
em
in which we have seen that it automatically
results all the dependencies.
We exactly saw the same in Brew wherein we
tried to install wget, and it just seamlessly installed
all the dependencies without any issues.
But that is an added Advantage when you 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 this tools and their dependencies one
by one.
So I hope you guys understood. Thank you.