As a system administrator, there'll be times
where you'll be asked to manage software packages.
Now software package refers to a collection
of files that are needed for a program to run.
In this demonstration we're going to walk through
two package managers who help us manage that life cycle
of installing, updating, removing,
and just getting general information about those programs.
The first package manager that we're going to use is RPM.
Now that's for Red Hat Linux Distribution type of packages.
We're going to use that because since OS
is one of the Red Hat Linux Distributions.
So we're going to install a Korn Shell package.
So we're going to do sudo Red Hat package manager.
We're going to install verbose mode
so we can see more information about it.
And we're going to have hashtag
so we can actually see the progress
for our assets installing.
So I'm going to do our command here.
Okay.
We see how fast that was, right?
There was barely any time.
We just blinked.
It was already done for us.
This is a very quick way to do it.
Now this was done locally from my packages folder.
So I do have this package installed locally,
and I just installed it very quickly
using the package manager there.
Another set of commands we're going to use,
we're going to use the QI option
which lists information about that package for us.
So we're going to do Korn Shell again.
And we see there's a lot of good key information.
Version information, which would be very useful.
The date we installed the package,
bill dates, descriptions, you get the picture.
So again, this just a quick way to get a lot
of information about this package
because it'll be very important in the future
to understand the version and the releases of the packages
because some things are dependent upon others
and we'll have a lot of incompatibilities
at times for different versions of programs.
So this one verify the actual installation
of the Korn shell.
So I'm do to sudo, Red Hat package manager.
We going to do a robust mode,
verify we want to do the Korn Shell.
Okay. Now this just shows
that this package is actually installed
and what files are installed with it.
Now we don't always have to see what's installed.
We want to just get a quick list of, we can do the RPM
and we do QL, quick list
Korn shell.
Last, but not least
we have to remove the packages at times.
So we'll do the sudo RPM
and that's going to be the erase command, KSH
and we'll see it's quick and easy.
If we want to verify that this was gone, we could check.
RPM
We'll see if we have any info about it.
And we see that it's not installed.
The next package manager we're going to go over is
the yum package manager.
Again, this works for dot RPM files and it's the preferred
method over RPM because of the features and it also
installs dependencies that are required for the packages.
So, first thing we want to do, we're going to use the very
secure FTP Damon.
So we're going to look this up.
There's a little information about it.
Very secure, OTD.
Again, it's just another way
of getting information about a package.
Again, we could do this with RPM, but we're going to use this
with yum.
This is one of the most widely used package managers
for Red Hat, even Red Hat themselves recommend using the yum
when they develop the RPM.
Okay, so we're going to do is install again, a local package.
Now the yum specifies this.
So we have to do local install.
We're do packages.
Going to use our very secure.
All right, we see it got through the step
and we're going to click yes here.
Now, just to note
if we we're to do this and we was to do the Y option.
So yum dash Y, that will select yes
for any other prompts that would be going
through throughout the installation process.
'Cause sometimes it'll ask us
would we like to install certain dependencies
or if certain processes of the installation are okay.
A lot of times they are.
So we just use the dash Y option.
So that allows us to have a quick transition
into the installation.
Okay. And also check out this yum provides command.
What that does is this allows us to see what package
does a particular file belong to.
So we going to check out the VSFTD, the config file.
And you can see that it associates this file
with the package that we just installed.
Again, just another tool to give us information
about different configuration files
or other files that's associated with a particular package.
Last, but not least we're going to remove the package.
Use the Y option here.
So sudo yum.
Yes to everything.
Remove very secure file transfer protocol Damon.
All right.
So just to summarize:
we went over how to use a package manager in Linux
and we're going to focus on the Red Hat Linux.
So we used the yum for the
dot RPM files because that's a recommended package manager
but we can also, again, still use the RPM package manager
which was originally created by Red Hat Linux.
And remember the differences between the yum
and the RPM is that the yum will automatically
install dependencies that are required
for a lot of our programs to run.
Thank you for sticking with me through this walkthrough
and I'll see you in the next lesson.