Hello and welcome back to this lesson.
So now you must have understood about the package managers.
Let's quickly see what is Yum!
Yeah.
So Yum stands for Yellow Dog Update Modified.
So this is basically a package manager which is used to install packages or applications into RPM based
Linux distributions.
Now what is RPM?
So RPM basically means redhat package managers.
So RedHat is basically a Linux distribution which is generally used into the industry.
So Yum also works on different flavors of operating systems and different versions like CentOS, Red
Hat and Fedora, which are some of the examples that you use here.
So what is the syntax?
It is very simple for initiating anything using yum that is install or remove.
You have to type Yum and options command and the package name.
For example, if you want to install something, then you have to write yum install and the package
name.
So it's the practical time and let's quickly see that.
How can we use Yum into our computers?
Okay.
So here you can see onto your screen, I have Red Hat Enterprise Linux, which has been set it up into
my virtual machine.
Now let's see quickly, what is the version?
So the Red Hat release version is 8.3.
I am able to see this using the command which is cat etsi, red hat hyphen release.
So you can also see what is the version.
This is just to confirm that this is a red hat based operating system and now we are going to install
and use here.
So these are operating systems, which is a real red hat enterprise.
Linux comes pre-installed with them, so we are not going to install it as it is already being installed,
but you have to see how you can configure it and start using it.
Now let me just type M and hit enter and you can see that it comes up with a sweet menu like this,
which means that VM is configured and installed into your computer.
If you could have got an error that come on not found, that basically means that Red Hat Package Manager
or your Red Hat enterprise Linux does not have GM installed, but most of the conditions it is already
pre-installed.
Perfect.
I'll just clear the screen now.
Let me just type M list.
So when you hit this command, you are able to see that what are the possible packages or apps that
are available into the repository?
As you can see over here, so these are all the possible apps or packages that can be installed into
your computer.
Now let's quickly install something.
So for that we are going to use the command yum install and let's try to install a package which is
the blue gate.
So the blue gate, if you are not aware, it is basically a package or a command, whatever you like
to call it, which is used to download something using a terminal.
So let me just hit enter and when I hit enter you can see we got an error which says to install something
into the computer you need to use sudo.
All right, so let's use sudo.
And again hit enter.
And then it will ask you to specify your password.
So I'll just specify the password and you can see it said package w eight and the version number is
already installed into a computer.
All the dependencies has been successfully resolved.
Nothing to do complete now it is already installed into a computer, so nothing was basically done.
But if the blue gate was not there into a computer, it would have downloaded it and also install or
resolve all the dependencies that comes with W gate.
Now this is something awesome because if you try to install a particular package from outside which
is basically similar to how you install Apks into your mobile phone from other different sources, but
sometimes you have to compile some.
Dependencies.
Okay.
So you can see over here it is successfully preinstalled and we do not have to do anything over here.
Now this is something which is very awesome using a package manager because you do not have to install
all the dependencies one by one individually.
The package manager itself understands smartly that what are that that what are the dependencies which
are required for this tool to run and it automatically installed those dependencies.
Now if you just try to install this tool or the package from outside and if there are some possible
dependencies, then it will just throw you errors and you have to resolve or configure those particular
errors and install the dependencies by yourself.
Now it will become a tedious task.
Hence package manager's comes handy and it installs all the required dependencies for that particular
package easily.
All right, so now let's quickly see one more tool that we are going to install.
So let's say Kohl So I'm just going to type sudo yum install coal and let's see what happens and perfect.
It says it's already installed.
All the dependencies are resolved.
Nothing to do.
Okay.
So now we are going to remove something from our computer.
So for that we are going to use the same command which is sudo yum.
But this time remove.
So let's say we are going to remove a package which is w get.
So the command is fairly pretty simple which is pseudo yum remove w get when you hit enter you can see
removing over here and into the red you can see w gate has been successfully removed over here.
It is asking you that it will take 2.8 and b space and this will basically get freed from your computer.
Are you sure?
So I'll just press y and you can see it is basically removing it once the product has been removed.
Removed, as you can see over here, all the dependencies are also being removed.
So now this computer does not have w gate installed and when you try to just run it, it will throw
you a error saying that W is not there and what is the process to get back to it again?
It's simple sudo yum install w gate and it will basically install it.
So I hope you guys understood and you got a fair idea about how to use yum to install and remove packages
from your computer.
Thank you.