all right. And for our last portion of the 102 Mtel, we're going to look at RPM and Young,
as I was mentioning in the last module. Debian has its own separate package management tools D package and a P T. Get.
And then we have our Pavin Yum for other flavors of Lennox like redhead Enterprise, Lennix,
Fedora, Bantu and Susie
So I will be switching back to the sent US
virtual machine here shortly.
In any case, we need to know how to install and remove packages with these tools howto look at their dependencies, some of the files they contain.
And that's more or less the same kind of commands and functions with those commands that we were looking at just now with a D package and a p T. Get
so we'll cover the RPM commands
some of the young commands and
young downloader, and we'll look at also with us or the CONFIG files in some of the directories.
Similarly, Thio Debian packages we have
a website for finding Rpm's and RPM is the red hat package manger
fairies is to use. Uh,
you know, very simple examples that I'll show you here in a minute,
but we see where our database of packages are. It's a little bit different file structure and then what we expect for the Debian packages. But again, it's a different distribution of Linux, so that's
If you look at some of the options, we can see that this is very self explanatory. I just use Dash iPhone stone. Strangely, there's Dash E for remove. You would think it be Desh are, but
it's not the way they build it.
I could reinstall an upgrade packages with the Dash Capital F in capital, you options
and then I have lots of querying possibilities. I can
look at my packages, Look at my CONFIG files. Look at the files that that make up the package very similar to the details types of information I was looking at with Debbie and tools.
I can even query to see if I've got a package includes a file,
and I also have wild cards available to me.
So it's a nice options there.
was which back to sent us.
If I run rpm dash Qiwei,
I can query all of my packages
and you see that we get the full name of the package when we would do this
RPM, you know, works a little bit different than the D package in a p t. Get commands
as far as the kind of output that you get.
So I'm gonna run this again, and this time I'm gonna grab
and see if I have an app installed. I think I'd installed it, but maybe I didn't.
Okay, currently, it's not installed.
I could use rpm dash I
where the package was located. And I probably don't have it on my
system at this point.
That's not true. There, there, there there pm's are they are found on my
mounted CD rahm for the install. So I do have packages I could run.
And also I see Net capital
so effectively, What we're seeing here is that the Install CD is acting as a local repositories.
So let's run rpm dash. I
Oh, you know what a complaint about it's the
spaces in the file name.
Still, details like that can really come back and bite you.
No, we're still getting a problem
Oh, I've got a dependency problem.
that looks like I need to install that cat first, which is fine. I can
adapted that really quick.
And this is, you know, part of the, uh,
normal activity when you're when you're working with Lennox system. So if you don't, if you haven't installed something before you doing some work and you realize, Oh, I've got a dependency problem.
read those air messages carefully.
And it's probably gonna complain about the spaces in the file name. What's
putting double quotes around it
should fix that problem.
Okay, so now we see that net cat installed
silently. I didn't use a V option.
And there's the original and map that we wanted to run.
Let's go ahead. Install this
now that installed correctly as well. And now if I
run my query again, I can
and we see I've got the two components I met by himself
So, just again, it's a small thing to install. Very simple. But we already see now if I've got a dependency, try to install something,
it won't work until I get that dependency satisfied and basically creating the foundation for the other package to install. On top of
now, I can look at some of the configuration files. I can try to
No conflict files were found for that. That's okay.
I can look at the files that are part of the package, so similar to what I do with the AP together D package commands. I can run
rpm desk. You el que ver the query l for list
and just give it the name of the package.
Now I can also verify the dependencies that we just saw a minute ago by running
the dash. Q. For Query and
it tells me I've got quite a few things. There is the one that was holding up my install, but there's lots of other
items here. Different libraries,
crypto libraries and some other items.
So one of the thing will try here is
looking. You'll find
it's probably in user Been again?
So I can run rpm dash
Q f. So query for file,
and it tells me that if I query this particular Byner and reducer been unmapped, that this is the package that installed it.
So these are very handy commands to be familiar with,
because as an administrator, as you're adding and removing software, you're gonna have a lot of instances where you need to
move things around and figure out what your dependency is. It might be and so on.
All right, then we move along too young. Yellow Dog Update. Our modified
young looks a little bit more like aptitude. If you'll notice in the table here,
I can run very easy to use commands just in a more natural way than some of the Dash R's and Dash I and so on.
And that seems to be a recent trend in in the last decade or so, with Lennox making all the utilities more user friendly by having them function more like natural language.
So my repositories for Yum is in Young dot reposed idea under me that C.
And as we can see, I can run my installs updates, check updates just like I can with the other package management tools.
And I could also do my removes and so on.
play around this for just a moment.
First, we'll have a look at the repositories.
I'm sorry. I want to go that director first.
And we can see these are the repositories that are listed underneath.
And these are the ones that came standard. I think I might have
modified one of these. The Pel
Possibly. But we'll see that it a little bit later when we're looking at
some other material.
look at the base reap, reap depository.
And we can see these air the different girls that are configured by default
to get over packages.
Just a handful are needed. And
most of what I need. But then I got other things to debug
Pell's repositories packages.
These are other things that you might need in certain situations.
But just to show how easy this is to, uh, to use, I'm gonna go ahead, install and map.
I think that might have already done it. No, I must have removed it. Okay,
so, yes, it says it is already installed, and it's at the latest version. So thankfully, it tells me that it's already there, but just as easily I can do a remove,
usually with young one nice feature that we see is that we also get
a transaction test for almost all packages. So it tries to do a quick little check to make sure that the package actually works as it's supposed to.
So I can now, now that that is, that's actually been removed. I'm gonna go ahead and reinstall it,
and then we'll look at some of the details.
So it goes out and checks a bunch of my repositories
and finds a suitable package. Asks me if it's OK. I will say yes,
that it goes and downloads that does my transaction test.
Make sure that map actually works
and I could run it and get my usage statements. I know it's, Ah, it's functional.
I can do my list command.
So young list for and Map
shows me any any of the installed package is related to this.
And there we have. The results
can also run an info command, and this gives me a little bit more detail about certain things.
For instance, I can tell,
what version? I'm running how big it is.
Maybe some other description information.
Now the developer of the package has to enter all this detail North of the query actually produce the results,
but it is nice to be able to get a little bit of extra
I can also run Yum for to check for updates.
And if I run this without any commands or any command line options, it'll try to look for updates for all of my packages. This system was just recently built, so looks like nothing is
requiring updates at the moment.
Now switching back, uh,
from young, we're gonna also look at RPM
because you do need to know how to look at the dependencies. We saw this little bit earlier, but it's good. Thio get a little bit of a refresher here.
The Q stands for query I see for convict files, package details, package files and dependencies. Those of the main things that were mostly interested in
and, as you saw when I tried to install a map earlier. If dependency exists,
the software will tell me that
additional step to install
another package in this case in order to satisfy that requirement.
So it may be I find that I've got a binder of filing. I don't know what package it belongs to. That's why we run the desk. You with the F
And the way the to think about this is that whether you're you know, the name of the package or you know the name of a file or you know the name of
some component that's part of the package, you should be able to do your searches using all those different perspectives to make sure you're dealing with the right files for your administrative tasks.
So this section we talked about the RPM commands some of the young commands. We looked at the depository, filed a depository directory.
We could look also at the configuration file for Young.
It's not very large, but it tells me something's
some of them might configurable settings.
And like all configuration files for Lennox, there should be found underneath the at sea directory.
All right, that gets us to the end of module will know, too.
Next, we're gonna tackle some good new commands and other LILEKS commands that you need to know if with exam
see you there. Thank you