All right. So we're now at the Debian package management portion of Module 102
And Debian is a different system, of course, for lyrics. And it uses different package management system compared to
you bun too, and red hat and fedora and so on.
But you need to know a little bit about both for the exam.
let's have a look at some of the commands we have. Ah d package reconfigure command
A p t. Get
uh, if you look a bunch of different a PT Commands and also the aptitude command
and knowing a little bit about what packages you have installed some of the details about what files they use,
and so on these air some of the things that you need to know about.
in the old days, source code had to be compiled, and
it was a little bit messy, a little bit difficult.
So package management systems came along with Lennox that made life a lot easier.
Debbie and tools being around perhaps a little bit longer than some of the tools for fedora and red hat.
But we can see that Debbie and Destro's used dot Deb files
or dot package files for using
the D package commands.
And for Fedor, Red Hat
right Enterprise, Lennox and Susie,
We use our PM and Young so we'll cover those separately in a different section.
But what I've done, in the meantime, is installed
Debbie and Lennox.
And the process is very similar
to what we saw with, um
So I'm not gonna go through the
the the overall process. One thing I would like to point out, though, is if you're going to be building your own
and you go to Dublin dot or GE, what I did was chose the network install
and, uh, chose I 3 86 cause that's have until system
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.
And I have a desktop installed, of course. And I'm just, uh, set up a shell.
Let's make that a little bit larger.
so I could run the d package command by itself with the dash l
and this will show me all of my
packages, all my installed packages. I'm doing a list.
A nice little bit of detail there.
Quite a few packages to look at, of course.
one of the
What's wrong Help. Quick.
We can see that
I've got a dash I for install Yashar for remove fairly straightforward.
And then I could do other things, as I just showed a minute ago. Um,
they're listing packages we see here listing the fouls that are part of the package. So, for instance, I could
so if I can find him. So I've installed and map earlier,
and what I did was just ran a D package dash Capital Delta list of files that are part of a map.
And it's pretty simple to install a package
or remove a package
so we'll cover some of these options here in just a moment.
So a dash I for installs ice. As I mentioned Ashar for remove, I can look at the contents of the package.
I could also reconfigure one if I if it's been installed and needs some additional
now, the, uh,
repositories are contained in your
sources dot list filed. So
let's have a look at that
and defined just a handful to get me started.
Actually, six different ones
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
it might be a little bit unusual for that to happen.
So I installed just to show how easy this is installed
and Matt. But I can also just as easily remove it
and installing just a simple to go back and you'll notice that this is very
this is very similar to the
the process for
the young commands, and we'll see that here in just a moment
anyway. So for the installation, I need to specify where the package actually is.
So you'll quit. Find command.
There's where the package was cashed.
So I'm gonna go ahead and copy this
and now I could do the install.
So unlike and jump is a little bit more friendly as faras
you know, assuming if you defy type and map
that it's gonna go try to find the package. New men map
D package might might be a little bit more picky and I've got to specify the exact physical
are the absolute path to the dot Deb file to do the install.
But now it's installed,
and we can also look at some of the commands for a P T.
Aptitude also lets you have a more like a young style interfaced a p T.
But I can use a P T. Get, for instance, maybe to remove and uh,
also do updates upgrades of my packages.
So let's have a look at some of these commands.
So I'm gonna go ahead and remove and map.
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
install of end map,
and I'm just using it because it's something simple to, uh
it is very small to the package installs ever quick,
and I can now run a
and maps can in my local host software's They're ready to go.
I can also run the
a p t get
upgrade your update. Sorry.
Now, if you run this without any arguments, it looks for updates for all of your packages.
I might stop this from running. But this actually that finished pretty quickly.
So I guess the the updates
or the package I just downloaded today was fairly well update already. There hasn't been much change,
but you can run that on a global basis or on a per package basis.
Now, I can also run D package commands
to see what kind of files are involved with a particular package.
So, for instance, I can run D package
Dash Capital s
to look at a particular file
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
run through that really quick.
So D package dash us
and I think and nappies and been
I can't take today
now. It's not
defined for what for? This fall is not in my current search path,
user Ben. Okay, my mistake.
So let's run this again
There we go. So
So it's telling me that the, um,
the package that installed this file is the package called and map.
And then if I run A
If I run a dash
do this. She had just made a mistake there. You specify just a package name, not the absolute path to it.
And so these are all the files that are part of the end map installed,
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
to look at
now, back to our
searching you. There are two websites you can look at
a bunch of packages and Debbie in packages
so you could do a search there. Pretty useful search tool.
And we also have the Debian
facility for looking for packages.
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.
We also have a couple more already displayed demonstrated Dash s.
we also have the dash contents,
which is very similar to what I was just doing with D package Dash L
Let me find that
There we go.
I want to get the full path name for this.
So if I type dash dash contents
now, it tells me specifically each individual file with its file size timestamp, who owns it so on.
That's a lot more detail, but I might need that. In certain cases.
I could also use Debian commands t do searches so I can search
which we know should contain
information by and map. So I looked in my cash packages
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
and some other pieces
like python modules, for instance, that might interface with that man.
So it gives me a way to find all those things in one easy to use command line tool.
So make sure you practice with these demands and get familiar with using D package a p T. Get
So we covered several commands here we looked at our list of repositories
D package commands and a P T get commands.
Aptitude is also another option,
and as I mentioned, this is
very solar, too.
Uh, maybe I don't have it installed. Let's let's look here
All right, so it's an a p t. Get install aptitude
and it comes back and tells me that
just trying to highlight exactly what happened there,
I should have cleared the screen first little leisure to see what you're doing.
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,
it's gonna go ahead and install that.
And if I run it without any arguments, it just gives me the nice interactive
menu tells me, for instance. I can just enter, move around with my cursor and see all these different details
about my environment.
I can hit the right arrow to open up one of these
so it's definitely a lot easier to deal with, man.
traditional approach of using
and I can just click on these different menus like any other kind of application,
and I'll just be a little bit of extra
extra functionality. Someone go ahead and quick
send up two more
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.
I can do my searches.
I can, um,
so typical options that you'd expect to find
and the, uh,
the ease of use might be more
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.
And that's kind of one of the things with with Lennox is that there's so many different options for
dealing with packages. Depending on which flavor or which distribution you're running. You gotta know the appropriate tools for that particular situation.
Okay, so that ends our Debian package management. Next, we'll take a look at RPM and young.