Time
8 hours 30 minutes
Difficulty
Beginner
CEU/CPE
10

Video Transcription

00:05
All right. So we're now at the Debian package management portion of Module 102
00:11
And Debian is a different system, of course, for lyrics. And it uses different package management system compared to
00:20
you bun too, and red hat and fedora and so on.
00:26
But you need to know a little bit about both for the exam.
00:30
So
00:32
let's have a look at some of the commands we have. Ah d package reconfigure command
00:37
A p t. Get
00:39
uh, if you look a bunch of different a PT Commands and also the aptitude command
00:45
and knowing a little bit about what packages you have installed some of the details about what files they use,
00:51
and so on these air some of the things that you need to know about.
00:56
So
00:58
in the old days, source code had to be compiled, and
01:03
it was a little bit messy, a little bit difficult.
01:06
So package management systems came along with Lennox that made life a lot easier.
01:11
Um,
01:11
the, uh,
01:14
Debbie and tools being around perhaps a little bit longer than some of the tools for fedora and red hat.
01:21
But we can see that Debbie and Destro's used dot Deb files
01:25
or dot package files for using
01:29
the D package commands.
01:32
And for Fedor, Red Hat
01:37
and
01:38
right Enterprise, Lennox and Susie,
01:41
We use our PM and Young so we'll cover those separately in a different section.
01:46
But what I've done, in the meantime, is installed
01:49
Debbie and Lennox.
01:55
And the process is very similar
01:59
to what we saw with, um
02:02
so DOS.
02:04
So I'm not gonna go through the
02:07
the the overall process. One thing I would like to point out, though, is if you're going to be building your own
02:14
distribution
02:16
and you go to Dublin dot or GE, what I did was chose the network install
02:23
and, uh, chose I 3 86 cause that's have until system
02:28
and this downloads a fairly small installer, and then it does everything else over the network. So as long as you have an Internet connection for your physical machine or your virtual machine, this is an easy way to get yourself going.
02:39
And I have a desktop installed, of course. And I'm just, uh, set up a shell.
02:46
Let's make that a little bit larger.
02:47
Go
02:53
so I could run the d package command by itself with the dash l
02:57
and this will show me all of my
02:59
packages, all my installed packages. I'm doing a list.
03:02
A nice little bit of detail there.
03:07
Quite a few packages to look at, of course.
03:12
And
03:14
one of the
03:15
What's wrong Help. Quick.
03:19
We can see that
03:23
I've got a dash I for install Yashar for remove fairly straightforward.
03:28
And then I could do other things, as I just showed a minute ago. Um,
03:31
they're listing packages we see here listing the fouls that are part of the package. So, for instance, I could
03:46
so if I can find him. So I've installed and map earlier,
03:50
and what I did was just ran a D package dash Capital Delta list of files that are part of a map.
03:55
And it's pretty simple to install a package
03:59
or remove a package
04:01
so we'll cover some of these options here in just a moment.
04:06
So a dash I for installs ice. As I mentioned Ashar for remove, I can look at the contents of the package.
04:14
I could also reconfigure one if I if it's been installed and needs some additional
04:19
actions
04:20
now, the, uh,
04:23
repositories are contained in your
04:27
sources dot list filed. So
04:32
let's have a look at that
04:36
and defined just a handful to get me started.
04:41
Actually, six different ones
04:45
probably don't need to modify this too much unless you are looking for packages. They're not in those repositories for some reason, but that
04:51
it might be a little bit unusual for that to happen.
04:59
So I installed just to show how easy this is installed
05:02
and Matt. But I can also just as easily remove it
05:12
and installing just a simple to go back and you'll notice that this is very
05:19
this is very similar to the
05:26
the process for
05:29
for using
05:30
the young commands, and we'll see that here in just a moment
05:34
anyway. So for the installation, I need to specify where the package actually is.
05:40
So you'll quit. Find command.
05:51
There's where the package was cashed.
05:55
So I'm gonna go ahead and copy this
06:03
and now I could do the install.
06:05
So unlike and jump is a little bit more friendly as faras
06:11
you know, assuming if you defy type and map
06:14
that it's gonna go try to find the package. New men map
06:16
D package might might be a little bit more picky and I've got to specify the exact physical
06:23
are the absolute path to the dot Deb file to do the install.
06:28
But now it's installed,
06:30
and we can also look at some of the commands for a P T.
06:34
Aptitude also lets you have a more like a young style interfaced a p T.
06:40
But I can use a P T. Get, for instance, maybe to remove and uh,
06:45
also do updates upgrades of my packages.
06:48
So let's have a look at some of these commands.
06:56
So I'm gonna go ahead and remove and map.
07:00
Pretty simple asked me if I want to continue tells me some of the things that will be doing and we're done just as easily I could do in a PT get
07:11
install of end map,
07:13
and I'm just using it because it's something simple to, uh
07:16
it is very small to the package installs ever quick,
07:20
and I can now run a
07:24
and maps can in my local host software's They're ready to go.
07:30
I can also run the
07:32
a p t get
07:34
upgrade your update. Sorry.
07:39
Now, if you run this without any arguments, it looks for updates for all of your packages.
07:43
so
07:44
I might stop this from running. But this actually that finished pretty quickly.
07:47
So I guess the the updates
07:51
or the package I just downloaded today was fairly well update already. There hasn't been much change,
07:58
but you can run that on a global basis or on a per package basis.
08:03
Now, I can also run D package commands
08:05
to see what kind of files are involved with a particular package.
08:11
So, for instance, I can run D package
08:13
Dash Capital s
08:16
to look at a particular file
08:18
or run dash capital L to list the files that air inside of a package. And I think, actually did that already with with Annapolis
08:26
run through that really quick.
08:28
So D package dash us
08:31
and I think and nappies and been
08:33
I can't take today
08:37
now. It's not
08:43
defined for what for? This fall is not in my current search path,
08:54
user Ben. Okay, my mistake.
08:56
So let's run this again
08:58
up arrow.
09:03
There we go. So
09:05
So it's telling me that the, um,
09:09
the package that installed this file is the package called and map.
09:16
And then if I run A
09:18
If I run a dash
09:22
l command
09:24
well,
09:24
do this. She had just made a mistake there. You specify just a package name, not the absolute path to it.
09:33
And so these are all the files that are part of the end map installed,
09:39
even those a lot of things. They're they're all fairly small. And that's why the install goes so quickly. It's good one Thio
09:46
to look at
09:50
now, back to our
09:52
searching you. There are two websites you can look at
09:56
a bunch of packages and Debbie in packages
10:01
so you could do a search there. Pretty useful search tool.
10:07
And we also have the Debian
10:09
facility for looking for packages.
10:11
You could do the searches from the command line as well, but you might want to do some research on the Web site, so it's nice to know that's available.
10:20
We also have a couple more already displayed demonstrated Dash s.
10:28
But
10:28
we also have the dash contents,
10:33
which is very similar to what I was just doing with D package Dash L
10:39
Let me find that
10:41
that map
10:43
map.
10:45
There we go.
10:46
I want to get the full path name for this.
10:50
So if I type dash dash contents
10:54
now, it tells me specifically each individual file with its file size timestamp, who owns it so on.
11:01
That's a lot more detail, but I might need that. In certain cases.
11:07
I could also use Debian commands t do searches so I can search
11:13
the
11:13
package cash,
11:16
which we know should contain
11:20
information by and map. So I looked in my cash packages
11:24
and of that several references. This is the one that we're actually working with just recently. But there's also other things, like Zen Matt, gooey front end for this
11:31
and some other pieces
11:33
like python modules, for instance, that might interface with that man.
11:37
So it gives me a way to find all those things in one easy to use command line tool.
11:43
So make sure you practice with these demands and get familiar with using D package a p T. Get
11:52
So we covered several commands here we looked at our list of repositories
11:56
D package commands and a P T get commands.
12:01
Aptitude is also another option,
12:05
and as I mentioned, this is
12:09
very solar, too.
12:11
Uh, maybe I don't have it installed. Let's let's look here
12:20
your type.
12:20
All right, so it's an a p t. Get install aptitude
12:24
and it comes back and tells me that
12:31
just trying to highlight exactly what happened there,
12:33
I should have cleared the screen first little leisure to see what you're doing.
12:37
But that's telling me that I was able to go out and find all the different pieces of the aptitude package. I'll say I want to continue. Yes,
12:45
it's gonna go ahead and install that.
12:54
And if I run it without any arguments, it just gives me the nice interactive
13:00
menu tells me, for instance. I can just enter, move around with my cursor and see all these different details
13:07
about my environment.
13:09
I can hit the right arrow to open up one of these
13:13
subcategories,
13:16
so it's definitely a lot easier to deal with, man.
13:20
The
13:22
traditional approach of using
13:26
command line
13:28
and I can just click on these different menus like any other kind of application,
13:31
and I'll just be a little bit of extra
13:35
extra functionality. Someone go ahead and quick
13:46
send up two more
13:48
so you just look it up pretty familiar once we start looking at young, but I've got install, remove commands so they make this a little more user friendly by just giving you up more plain English commands to run.
14:03
I can do my searches.
14:07
I can, um,
14:09
reinstall something
14:11
so typical options that you'd expect to find
14:16
and the, uh,
14:20
the ease of use might be more
14:24
enticing for certain folks. Either way, you should know a little bit about it when, when you're getting ready to study for the exam. So play around with attitude a little bit.
14:33
And that's kind of one of the things with with Lennox is that there's so many different options for
14:37
dealing with packages. Depending on which flavor or which distribution you're running. You gotta know the appropriate tools for that particular situation.
14:46
Okay, so that ends our Debian package management. Next, we'll take a look at RPM and young.
14:52
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