Oh yes, and welcome to this first demonstration, a demonstration we're
going to be able to go through and check the status of our subscription,
list the available repositories to our Red Hat Enterprise Linux 8 system
before we can go through and check the version of the dnf‑3 command or the
yum command that we are using.
So, of course, we're going to,
first of all, breath in the fresh air of our glorious Red Hat Enterprise
Linux 8 system, and we need to be working as the root user.
So why don't we elevate our privileges, and we can go
through and do this using the sudo command.
So we know that using sudo ‑i is going to give me that
interactive root shell, and I can go ahead and use the
subscription manager and, well, check the status of my
subscription. So we can see then that it's current.
So I do have a subscription. But I haven't specified the purpose of this system,
so it just shows as Not Specified.
But this is good.
We're able then to use the online software repositories.
We can check these with the yum and repolist command.
Now we know we've talked before that we can use a yum or the dnf command.
They're both symbolic links to dnf‑3.
And we can see then that we've got the BaseOS repository at
the bottom and then AppStream above it.
The additional repositories, EPEL, Extra Packages for Enterprise Linux,
have been added in by the Vagrant folks, so it's not standard with the
Red Hat and is not part of your subscription.
But being able to see the RHEL 8 AppStream and BaseOS RPMs are the
important repositories for working through this course.
If I go through and take a long listing, so ls ‑l at
our /usr/bin/ and yum command, as I was saying, this is just a symbolic link.
So I can use yum because, in fact, it's using the
dnf‑3 command in the background.
Of course, this would be exactly the same if I was using the dnf
command. It's not a command; it's just a symbolic link.
So the argument about using dnf or yum really negated when we
look in the back end and see what's happened.
I can use either. They're pointing to exactly the same executable. Now
that also then does mean then I can check the version so I can check the
version of dnf‑3 by using yum ‑‑version.
And we can see then that it comes out at 4.2.23.
But, of course, if I went through and, let's say, clear my screen
just to take away the previous message, but we're then going to be
able to go through and take a look at the version of dnf‑3 itself by
using exactly the same switch but just the dnf‑3 command rather than
the symbolic link. So we can see it's pointing through to exactly the
same place, and I can use either the yum command or dnf or, in fact, a dnf‑3.