Tip:
Highlight text to annotate it
X
Now we're going to play with some the RPM commands.
We have to open a console window or a terminal session.
First thing let's do is
look at the options so 'rpm' alone
gives you all the options that can be used with this command.
If you'll remember from the chart that we just went over,
you can actually install, uninstall,
or erase and upgrade software from the RPM package,
but it doesn't automatically pick up all the dependencies so I prefer doing
installations through 'yum'.
We'll do one with the 'yum' command in the next video.
We can do a query on this; let's do 'rpm
-q', and let's look at 'yum' command.
So it tells us the version and so forth.
Now let's add an 'i' after the dash 'q' to get more information.
Now as you can see you get a lot more information.
It also explains what the package is used for. Now let's display all the files
that are in the package.
I use my up arrow key to repeat the previous command
and I'm going to come over to the 'i' and replace that with
a 'l' for list. So it gave me a list
of all of the files that are located in the yum package.
Notice it scrolled off the screen, but if I wanted to
look at one screen at the time. I'm going to add the pipe command
and more; this allows it to start at the very top
notice 'more' at the bottom of the screen on the left hand side.
This is one page or one screen
of information and it stops at that. If you want to go one line at the time,
hit your enter key. If you want to take one screen at the time,
press the spacebar. As you can see there are a lot of files.
Last but not least, let's take a look at if there's any missing
files in the package. We do that with a
dash 'v'. We got nothing back so that means that we have no missing packages
used by 'yum' command.