1
00:00:01,760 --> 00:00:04,880
Hello and welcome back to this lesson.

2
00:00:05,540 --> 00:00:09,530
So now you must have understood about the package managers.

3
00:00:09,710 --> 00:00:12,710
Let's quickly see what is Yum!

4
00:00:13,220 --> 00:00:13,700
Yeah.

5
00:00:13,700 --> 00:00:17,960
So Yum stands for Yellow Dog Update Modified.

6
00:00:18,050 --> 00:00:27,320
So this is basically a package manager which is used to install packages or applications into RPM based

7
00:00:27,320 --> 00:00:28,760
Linux distributions.

8
00:00:28,790 --> 00:00:30,080
Now what is RPM?

9
00:00:30,110 --> 00:00:33,950
So RPM basically means redhat package managers.

10
00:00:34,040 --> 00:00:40,070
So RedHat is basically a Linux distribution which is generally used into the industry.

11
00:00:40,940 --> 00:00:48,590
So Yum also works on different flavors of operating systems and different versions like CentOS, Red

12
00:00:48,590 --> 00:00:52,310
Hat and Fedora, which are some of the examples that you use here.

13
00:00:52,850 --> 00:00:54,110
So what is the syntax?

14
00:00:54,140 --> 00:00:59,570
It is very simple for initiating anything using yum that is install or remove.

15
00:00:59,600 --> 00:01:04,520
You have to type Yum and options command and the package name.

16
00:01:04,820 --> 00:01:10,940
For example, if you want to install something, then you have to write yum install and the package

17
00:01:10,940 --> 00:01:11,430
name.

18
00:01:11,450 --> 00:01:15,980
So it's the practical time and let's quickly see that.

19
00:01:15,980 --> 00:01:19,010
How can we use Yum into our computers?

20
00:01:20,010 --> 00:01:20,550
Okay.

21
00:01:21,090 --> 00:01:28,200
So here you can see onto your screen, I have Red Hat Enterprise Linux, which has been set it up into

22
00:01:28,200 --> 00:01:29,700
my virtual machine.

23
00:01:29,880 --> 00:01:32,280
Now let's see quickly, what is the version?

24
00:01:32,370 --> 00:01:36,090
So the Red Hat release version is 8.3.

25
00:01:36,930 --> 00:01:42,810
I am able to see this using the command which is cat etsi, red hat hyphen release.

26
00:01:42,810 --> 00:01:45,420
So you can also see what is the version.

27
00:01:45,450 --> 00:01:51,960
This is just to confirm that this is a red hat based operating system and now we are going to install

28
00:01:51,960 --> 00:01:52,820
and use here.

29
00:01:53,520 --> 00:01:57,990
So these are operating systems, which is a real red hat enterprise.

30
00:01:57,990 --> 00:02:04,800
Linux comes pre-installed with them, so we are not going to install it as it is already being installed,

31
00:02:05,040 --> 00:02:10,620
but you have to see how you can configure it and start using it.

32
00:02:10,650 --> 00:02:18,960
Now let me just type M and hit enter and you can see that it comes up with a sweet menu like this,

33
00:02:18,960 --> 00:02:23,890
which means that VM is configured and installed into your computer.

34
00:02:23,910 --> 00:02:31,380
If you could have got an error that come on not found, that basically means that Red Hat Package Manager

35
00:02:31,410 --> 00:02:38,640
or your Red Hat enterprise Linux does not have GM installed, but most of the conditions it is already

36
00:02:38,640 --> 00:02:39,600
pre-installed.

37
00:02:39,870 --> 00:02:40,620
Perfect.

38
00:02:40,860 --> 00:02:43,680
I'll just clear the screen now.

39
00:02:43,770 --> 00:02:45,570
Let me just type M list.

40
00:02:45,570 --> 00:02:52,890
So when you hit this command, you are able to see that what are the possible packages or apps that

41
00:02:52,890 --> 00:02:55,950
are available into the repository?

42
00:02:56,250 --> 00:03:03,030
As you can see over here, so these are all the possible apps or packages that can be installed into

43
00:03:03,030 --> 00:03:03,870
your computer.

44
00:03:04,230 --> 00:03:07,400
Now let's quickly install something.

45
00:03:07,410 --> 00:03:13,380
So for that we are going to use the command yum install and let's try to install a package which is

46
00:03:13,380 --> 00:03:14,250
the blue gate.

47
00:03:14,460 --> 00:03:20,100
So the blue gate, if you are not aware, it is basically a package or a command, whatever you like

48
00:03:20,100 --> 00:03:24,860
to call it, which is used to download something using a terminal.

49
00:03:24,870 --> 00:03:31,380
So let me just hit enter and when I hit enter you can see we got an error which says to install something

50
00:03:31,380 --> 00:03:34,260
into the computer you need to use sudo.

51
00:03:34,290 --> 00:03:36,540
All right, so let's use sudo.

52
00:03:37,480 --> 00:03:38,860
And again hit enter.

53
00:03:38,860 --> 00:03:41,440
And then it will ask you to specify your password.

54
00:03:42,620 --> 00:03:51,200
So I'll just specify the password and you can see it said package w eight and the version number is

55
00:03:51,200 --> 00:03:53,720
already installed into a computer.

56
00:03:53,840 --> 00:03:56,960
All the dependencies has been successfully resolved.

57
00:03:56,990 --> 00:04:04,880
Nothing to do complete now it is already installed into a computer, so nothing was basically done.

58
00:04:05,210 --> 00:04:12,890
But if the blue gate was not there into a computer, it would have downloaded it and also install or

59
00:04:12,890 --> 00:04:18,200
resolve all the dependencies that comes with W gate.

60
00:04:18,380 --> 00:04:25,340
Now this is something awesome because if you try to install a particular package from outside which

61
00:04:25,340 --> 00:04:31,700
is basically similar to how you install Apks into your mobile phone from other different sources, but

62
00:04:31,700 --> 00:04:33,800
sometimes you have to compile some.

63
00:04:35,290 --> 00:04:36,580
Dependencies.

64
00:04:37,500 --> 00:04:37,770
Okay.

65
00:04:37,840 --> 00:04:44,260
So you can see over here it is successfully preinstalled and we do not have to do anything over here.

66
00:04:44,590 --> 00:04:52,420
Now this is something which is very awesome using a package manager because you do not have to install

67
00:04:52,420 --> 00:04:55,490
all the dependencies one by one individually.

68
00:04:55,510 --> 00:05:02,770
The package manager itself understands smartly that what are that that what are the dependencies which

69
00:05:02,770 --> 00:05:07,970
are required for this tool to run and it automatically installed those dependencies.

70
00:05:07,990 --> 00:05:14,380
Now if you just try to install this tool or the package from outside and if there are some possible

71
00:05:14,380 --> 00:05:21,550
dependencies, then it will just throw you errors and you have to resolve or configure those particular

72
00:05:21,550 --> 00:05:24,980
errors and install the dependencies by yourself.

73
00:05:25,000 --> 00:05:27,030
Now it will become a tedious task.

74
00:05:27,040 --> 00:05:34,690
Hence package manager's comes handy and it installs all the required dependencies for that particular

75
00:05:34,690 --> 00:05:36,460
package easily.

76
00:05:36,700 --> 00:05:40,660
All right, so now let's quickly see one more tool that we are going to install.

77
00:05:40,660 --> 00:05:48,790
So let's say Kohl So I'm just going to type sudo yum install coal and let's see what happens and perfect.

78
00:05:48,790 --> 00:05:51,280
It says it's already installed.

79
00:05:51,310 --> 00:05:53,610
All the dependencies are resolved.

80
00:05:53,620 --> 00:05:54,610
Nothing to do.

81
00:05:55,000 --> 00:05:55,240
Okay.

82
00:05:55,240 --> 00:05:58,060
So now we are going to remove something from our computer.

83
00:05:58,060 --> 00:06:01,750
So for that we are going to use the same command which is sudo yum.

84
00:06:01,750 --> 00:06:03,150
But this time remove.

85
00:06:03,160 --> 00:06:06,400
So let's say we are going to remove a package which is w get.

86
00:06:06,490 --> 00:06:13,420
So the command is fairly pretty simple which is pseudo yum remove w get when you hit enter you can see

87
00:06:13,420 --> 00:06:21,100
removing over here and into the red you can see w gate has been successfully removed over here.

88
00:06:21,100 --> 00:06:27,970
It is asking you that it will take 2.8 and b space and this will basically get freed from your computer.

89
00:06:27,970 --> 00:06:28,680
Are you sure?

90
00:06:28,690 --> 00:06:35,800
So I'll just press y and you can see it is basically removing it once the product has been removed.

91
00:06:35,830 --> 00:06:40,300
Removed, as you can see over here, all the dependencies are also being removed.

92
00:06:40,300 --> 00:06:46,840
So now this computer does not have w gate installed and when you try to just run it, it will throw

93
00:06:46,840 --> 00:06:52,510
you a error saying that W is not there and what is the process to get back to it again?

94
00:06:52,510 --> 00:06:58,720
It's simple sudo yum install w gate and it will basically install it.

95
00:06:59,260 --> 00:07:06,700
So I hope you guys understood and you got a fair idea about how to use yum to install and remove packages

96
00:07:06,700 --> 00:07:07,810
from your computer.

97
00:07:07,840 --> 00:07:08,560
Thank you.
