OK, guys, so in this lesson, we are going to cover advanced package management, we have the package
in our environment, we installed it.
We learned those couple of commands earlier and one is Jum and the other one is R.P.M..
Now, R.P.M. is a RedHat Package Management Command.
There are other commands that are used in other Linux distribution, like Atget for a Bunta and many
other different players.
But anyway, our focus is on S.O.S and RedHat, so we will be using R.P.M. and Young Command.
So what exactly we are going to do in advance package management?
Well, in advance package management.
We will learn how we could install packages.
Hey, we could do that through Jumpman, right?
Yeah, of course we could do that.
That's the best way to do the installation of the packages.
What if you already have the package and you just want to install it so that real KOHR, then we'll
learn how we could do the upgrade of those packages, followed by how we could delete those packages.
Then we'll see how we could view a package detail.
Meaning if you have an install package and you want no more information about the package, how or when
it was installed, what that is packages about when it was built, what are the configuration file associated
with it, and a lot of other information related to the package.
Then also identify the source or location information.
If you have a file or if you're running a command, let's say you run a command P WTU or else you want
to know which package that command belongs to.
So that type of information will cover.
So and last one is the package configuration file.
So if you have installed a package, let's call it ABC.
So we all know that all the package configuration files are by default in ETSI.
So once the package is installed and configuration files gets created in Etsy, but then it goes into
Subdirectories.
So Etsy slash the slash that that we don't know.
So sometimes we forget.
So how can you find out that information about a package if he or if you have done the download installation
and now it's about the configuration of that package.
So those are the things that will cover.
So to go where one to one by one, all those things, I'm going to go ahead and log into our Lennix
machine.
I'm going to use our putty session to S.H. into the next machine.
So let's go into our machine right here.
I have already logged in and I am logged in as.
Route and you could also verify by looking at this pound sign.
OK, so the package that we are going to install in this lesson in this practice is called shell package.
Now, corn shell is a shell, which you probably have already know about.
It's just like a Basche or seashell.
So I'm picking this just for practice purposes for just for this lesson.
So corn shell is the package that we do not have in the system and we are going to install needed to
be upgrade, deleted Butte's package information and we'll cover everything that we have listed on on
this lesson.
So let's see if we have a corn shell package already installed in the system.
So to check that, you have to do R.P.M. dash keyway grep for corn shell.
And you'll see we do not have that package installed in our system, so now we have to install the package
through two ways.
One is that we run, jump, install the name of the package.
The second one is that we download the package through a different means.
If you do not have Internet access, then you could download the package, then install it.
But I do have Internet access on this machine.
And I verified by doing ping WWOR, let's say Facebook dot com and you'll see I'll get a response back.
See, it means that I am online.
So you could also check by running if config command and you'll see I have IP one I to 161 dot 13.
You probably have a different IP.
Depends on which network you are in anyway.
So I do have Internet access and I don't need to download a package.
So I could, what I could do is simply some.
Install Kate as Cornhill, anything that is related to corn Shalako just put it Esterbrook, so enter.
And you will see it did find a package, one package and the name of the package and it says 64 package,
it doesn't have any dependencies.
Good.
So I'll go ahead.
Why also, if you noticed the bottom tells you the size of the package stall size, you could confirm
everything before you go ahead and hit.
Why so hit?
Enter.
And this is going to download the package first.
And then once the package is downloaded, then it will go ahead and install that package verifier to
clean it up.
So let's give it a a few seconds and then finish.
The package installation has been completed and it is successful.
Once you see at the bottom is complete.
Now, how do we verified it up?
Our key again and you will see you have the package last round, R.P.M. Rescue wake up for potential
hit enter.
And this is the package that was installed during our install command.
OK, so now what if you wanted to remove that package, you could simply run the same command, remove
shell and hit Estragon.
And this is going to go ahead and remove the package that it just installed.
Why?
And it is complete now.
Run the pack, the R.P.M. Command again to query their database and the little package that installed.
And you will see there is nothing, nothing installed that matches Quanzhou.
OK, so that is the first and most preferred way to install and download and install a package.
Now coming back to the same scenario, what if you do not have Internet access or what if you do not
have a local repositories, then what do you have to do is you have to go, you have to know the exact
location where the how to download a file and then do R.P.M. Command to install the package.
But first, let's go to our Internet and code Google.
If you have a different one different search method web server that you could use, you could use Bing
or whichever anyway.
So I'll type in.
As you can see, I already have typed in before download.
Conch shell.
For S.O.S seven, so hit enter.
And go and click on the first link.
This will bring you to the package or page come down and all the way down and you see where it says
the package that ends with DOT R.P.M. just simply right.
Click to it and click on Kopi Link address.
And she did the copy link address, go back to your Linux machine and now this time type you get.
And the package, exact location of the package and hit and.
Now, you're probably thinking, hey, I don't have Internet access, then how can I download this package
if I don't?
Well, the simple way is you could go ahead and download on your machine on on the machine that already
has Internet connection.
You download and then you get FTP or whichever way is preferred for you that you have to pay for.
It has downloaded.
Where did you download this check?
It's downloaded in kashrut.
Let's verify it.
If it is there by doing it on a cell to your dinner and you'll see this is the package r.p.m..
Now we have installed this package before using the command youm, but now this time we are going to
install this package using the command R.P.M. HIV and the name of the package, the HIV are the different
options.
You could use HIV differently via HIV, whichever the way you put it.
I put it this way.
So go ahead and hit.
Enter.
And now it has installed that package and now you could check by running R.P.M. and Keyway and Griffo
Control and you will see the packages you right.
So that is the way you could install that package.
Now, what if you wanted to verify the information about the package, you could do R.P.M. space.
Q I as information and the name of the package copy.
Right, click enter and you will see that information about the package.
The package name is Corno Version Reles Architecture Install Date Group and a whole bunch of information
where you get it.
How, what exactly it does was information about.
So this is about the information of that specific package that has been installed in your system.
OK.
The next step is what?
How can you delete that package using R.P.M. Command?
Remember, we learn how to delete a package using Jume, remove command.
Now let's delete a packet using R.P.M..
For that, you need to know exactly the look, the name of the package, the name of the package.
You have it by getting running the command r.p.m. desk way now run r.p.m. dash e.
As for delete.
Specify the entire package, name hit enter, and now it's it has to lead the package verified by doing
our best keyway in full control.
And you see, it has removed that package.
OK, so now this was about removing the package.
Now, I wanted to cover more things about this package, so I'll go ahead and install it again this
time, all in sort of a install commercial three.
This package, and it has installed a package perfect, again, verified.
Yes, that package is there now.
I need to list configuration file of this package is how can I list that so you could do our P R.P.M.
dash queue C and the name of the package.
Hit enter and you'll see the configuration file that you need to modify in case you need to do the some
configuration of the package, and these are the list of all the configuration file.
Remember, I told you the package configuration are always in ETSI directory, but then once you see
directly, there are thousands of files, thousands of directories.
So where do we have to go exactly for that specific package?
Well, for that you have to find out the configuration file.
And how do you find out?
I just showed you R.P.M. as you see now.
What if you wanted to find out some information of the command?
Let's say if there's a command associated with this package and the command for that package is I know
offhand is corn shell just hit enter and that will bring you to a closure, just like a regular command,
like P.W. Diesel's command.
Every package has a command associated with it.
So let's exit out so we can go back to our Basche shell.
So this is a command.
And what if you want to know which package this command belongs to?
For that, you have to run the command R.P.M..
Dash QF.
And Kate S.H..
Oops, sorry, I forgot.
First, I need to know the path of that package that came in, so I'll do which case.
And it's telling me that KSR command, the full path is user Bankier search.
Now, I could do that command r.p.m. to with and I'll put that here hit enter.
And now it's telling me, hey, this command that you run it, this command belongs to this package.
Good that now you're probably thinking hey this is fun.
I could find out all the package information for all the commands I have ran right so far.
Whatever the commands that you have learned, you could definitely find out which package it belongs
to.
For example, my favorite commanders, let's say every time you log in a wired to see who logged in
or which directory I'm in.
So let's say Puedes the directory, maybe that's the that's the command which tells you which directly
you are in.
So if you wanted to know which package this command belongs to first, what do you need to do?
You need to find out the command path.
So now you know that this command, the full path for this command is Usama bin PWP now.
Do R.P.M. QF slash user slash Ben and Peter, and it is telling you that this command belongs to a package
called Core Utils and then version, if you remove this package, then you can run the command p d.
Then which you are in, how are you going to find out, you cannot find out, so you would have to reinstall
that package again using Junkman or going to the link and downloading it.
So that's how you actually find out the information about a specific package, specific configuration
of a package or the package, information of a command package management is one of the things that
everyone would face in their career at least twice a year or three times a year when you have to do
or install or upgrade the packages.
Hopefully this lesson serves a purpose.
If you have any question, always send me an email.