Time
8 hours 30 minutes
Difficulty
Beginner
CEU/CPE
10

Video Transcription

00:06
all right. And for our last portion of the 102 Mtel, we're going to look at RPM and Young,
00:12
as I was mentioning in the last module. Debian has its own separate package management tools D package and a P T. Get.
00:21
And then we have our Pavin Yum for other flavors of Lennox like redhead Enterprise, Lennix,
00:27
Fedora, Bantu and Susie
00:29
A swell Send us
00:32
So I will be switching back to the sent US
00:36
virtual machine here shortly.
00:38
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.
00:47
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
00:56
so we'll cover the RPM commands
00:58
some of the young commands and
01:00
young downloader, and we'll look at also with us or the CONFIG files in some of the directories.
01:07
Similarly, Thio Debian packages we have
01:11
a website for finding Rpm's and RPM is the red hat package manger
01:18
fairies is to use. Uh,
01:21
there's,
01:22
you know, very simple examples that I'll show you here in a minute,
01:27
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
01:38
it's expected.
01:42
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
01:53
it's not the way they build it.
01:57
I could reinstall an upgrade packages with the Dash Capital F in capital, you options
02:02
and then I have lots of querying possibilities. I can
02:06
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.
02:17
I can even query to see if I've got a package includes a file,
02:23
and I also have wild cards available to me.
02:27
So it's a nice options there.
02:29
Let's have a look
02:32
was which back to sent us.
02:43
If I run rpm dash Qiwei,
02:46
I can query all of my packages
02:49
and you see that we get the full name of the package when we would do this
02:54
RPM, you know, works a little bit different than the D package in a p t. Get commands
03:00
as far as the kind of output that you get.
03:05
So I'm gonna run this again, and this time I'm gonna grab
03:09
and see if I have an app installed. I think I'd installed it, but maybe I didn't.
03:15
Okay, currently, it's not installed.
03:19
So, um,
03:21
I could use rpm dash I
03:23
if I knew the
03:27
where the package was located. And I probably don't have it on my
03:32
system at this point.
03:36
That's not true. There, there, there there pm's are they are found on my
03:44
mounted CD rahm for the install. So I do have packages I could run.
03:50
And also I see Net capital
03:53
installed this one
03:54
so effectively, What we're seeing here is that the Install CD is acting as a local repositories.
04:02
So let's run rpm dash. I
04:15
Oh, you know what a complaint about it's the
04:18
spaces in the file name.
04:23
Still, details like that can really come back and bite you.
04:26
No, we're still getting a problem
04:28
Oh, I've got a dependency problem.
04:32
Okay,
04:41
that looks like I need to install that cat first, which is fine. I can
04:46
adapted that really quick.
04:48
And this is, you know, part of the, uh,
04:50
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.
05:00
I had better, uh,
05:02
read those air messages carefully.
05:05
And it's probably gonna complain about the spaces in the file name. What's
05:11
change? That
05:14
putting double quotes around it
05:15
should fix that problem.
05:17
Okay, so now we see that net cat installed
05:21
silently. I didn't use a V option.
05:27
And there's the original and map that we wanted to run.
05:33
Let's go ahead. Install this
05:36
now that installed correctly as well. And now if I
05:42
run my query again, I can
05:46
look for any map
05:46
and we see I've got the two components I met by himself
05:49
and
05:51
the cat, too.
05:55
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,
06:03
it won't work until I get that dependency satisfied and basically creating the foundation for the other package to install. On top of
06:14
now, I can look at some of the configuration files. I can try to
06:17
do this for an app.
06:19
No conflict files were found for that. That's okay.
06:24
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
06:30
rpm desk. You el que ver the query l for list
06:34
and just give it the name of the package.
06:38
Now I can also verify the dependencies that we just saw a minute ago by running
06:43
the dash. Q. For Query and
06:46
capital R,
06:47
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
06:55
items here. Different libraries,
06:58
crypto libraries and some other items.
07:04
So one of the thing will try here is
07:11
looking. You'll find
07:13
it's probably in user Been again?
07:19
Yep.
07:20
So I can run rpm dash
07:24
Q f. So query for file,
07:30
and it tells me that if I query this particular Byner and reducer been unmapped, that this is the package that installed it.
07:39
So these are very handy commands to be familiar with,
07:43
because as an administrator, as you're adding and removing software, you're gonna have a lot of instances where you need to
07:47
move things around and figure out what your dependency is. It might be and so on.
07:54
All right, then we move along too young. Yellow Dog Update. Our modified
07:59
young looks a little bit more like aptitude. If you'll notice in the table here,
08:03
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.
08:13
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.
08:24
So my repositories for Yum is in Young dot reposed idea under me that C.
08:30
And as we can see, I can run my installs updates, check updates just like I can with the other package management tools.
08:37
And I could also do my removes and so on.
08:41
And so we'll, uh,
08:43
play around this for just a moment.
08:48
First, we'll have a look at the repositories.
08:58
I'm sorry. I want to go that director first.
09:03
And we can see these are the repositories that are listed underneath.
09:07
And these are the ones that came standard. I think I might have
09:13
modified one of these. The Pel
09:16
Possibly. But we'll see that it a little bit later when we're looking at
09:20
some other material.
09:22
But, for instance,
09:28
look at the base reap, reap depository.
09:31
And we can see these air the different girls that are configured by default
09:37
to get over packages.
09:39
Just a handful are needed. And
09:41
that gives me, uh,
09:45
most of what I need. But then I got other things to debug
09:48
Pell's repositories packages.
09:52
These are other things that you might need in certain situations.
09:58
But just to show how easy this is to, uh, to use, I'm gonna go ahead, install and map.
10:03
I think that might have already done it. No, I must have removed it. Okay,
10:07
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,
10:20
usually with young one nice feature that we see is that we also get
10:24
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.
10:37
So I can now, now that that is, that's actually been removed. I'm gonna go ahead and reinstall it,
10:43
and then we'll look at some of the details.
10:46
So it goes out and checks a bunch of my repositories
10:50
and finds a suitable package. Asks me if it's OK. I will say yes,
10:56
that it goes and downloads that does my transaction test.
11:00
Make sure that map actually works
11:05
and I could run it and get my usage statements. I know it's, Ah, it's functional.
11:11
I can do my list command.
11:15
So young list for and Map
11:18
shows me any any of the installed package is related to this.
11:24
And there we have. The results
11:28
can also run an info command, and this gives me a little bit more detail about certain things.
11:33
For instance, I can tell,
11:35
um,
11:37
what version? I'm running how big it is.
11:41
Maybe some other description information.
11:45
Now the developer of the package has to enter all this detail North of the query actually produce the results,
11:52
but it is nice to be able to get a little bit of extra
11:56
information.
12:01
I can also run Yum for to check for updates.
12:07
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
12:20
requiring updates at the moment.
12:24
Now switching back, uh,
12:26
from young, we're gonna also look at RPM
12:31
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.
12:39
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
12:50
and, as you saw when I tried to install a map earlier. If dependency exists,
12:54
the software will tell me that
12:58
that I need to make
13:00
additional step to install
13:01
another package in this case in order to satisfy that requirement.
13:07
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
13:16
command for file.
13:18
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
13:26
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.
13:37
So this section we talked about the RPM commands some of the young commands. We looked at the depository, filed a depository directory.
13:46
We could look also at the configuration file for Young.
14:09
It's not very large, but it tells me something's
14:13
some of them might configurable settings.
14:18
And like all configuration files for Lennox, there should be found underneath the at sea directory.
14:31
All right, that gets us to the end of module will know, too.
14:35
Next, we're gonna tackle some good new commands and other LILEKS commands that you need to know if with exam
14:41
see you there. Thank you

Up Next

CompTIA Linux+

Our self-paced online CompTIA Linux+ course prepares students with the knowledge to become a certified Linux+ expert, spanning a curriculum that covers Linux maintenance tasks, user assistance and installation and configuration.

Instructed By

Instructor Profile Image
Dean Pompilio
CEO of SteppingStone Solutions
Instructor