WEBVTT - This file was automatically generated by VIMEO

0
00:00:05.200 --> 00:00:08.500
Hello and welcome back to this lesson.

1
00:00:09.600 --> 00:00:12.100
So now you must have understood about the

2
00:00:12.100 --> 00:00:15.700
 package managers. Let's quickly see what

3
00:00:15.700 --> 00:00:16.400
 is m?

4
00:00:17.200 --> 00:00:20.800
Yeah, so yum stands for Yellow Dog update

5
00:00:20.800 --> 00:00:23.600
 modified. So this is basically a

6
00:00:23.600 --> 00:00:26.500
 package manager, which is used to install

7
00:00:26.500 --> 00:00:29.700
 packages or applications into

8
00:00:29.700 --> 00:00:32.600
 rpm-based Linux distributions.

9
00:00:32.600 --> 00:00:35.300
 Now what is rpm so RPM basically

10
00:00:35.300 --> 00:00:38.700
 means red hat package managers. So red

11
00:00:38.700 --> 00:00:41.800
 hot is basically a Linux distribution, which

12
00:00:41.800 --> 00:00:43.700
 is generally used into the industry.

13
00:00:44.900 --> 00:00:48.500
So M also works on different flavors

14
00:00:47.500 --> 00:00:50.500
 of operating systems and different versions

15
00:00:50.500 --> 00:00:54.100
 like Centos red hat and Fedora

16
00:00:53.100 --> 00:00:56.100
 which are some of the examples that use him.

17
00:00:56.900 --> 00:01:00.600
So what is the syntax? It is very simple for initiating

18
00:00:59.600 --> 00:01:02.300
 anything using yum that

19
00:01:02.300 --> 00:01:05.600
 is install or remove you have to type M and

20
00:01:05.600 --> 00:01:08.300
 options command and the package name.

21
00:01:08.900 --> 00:01:11.800
for example, if you want to install something then you

22
00:01:11.800 --> 00:01:14.700
 have to write yum install and the package

23
00:01:14.700 --> 00:01:15.700
 name, so

24
00:01:16.500 --> 00:01:19.100
It's the Practical time and let's quickly see

25
00:01:19.100 --> 00:01:22.300
 that how can we use yum into our

26
00:01:22.300 --> 00:01:22.800
 computers?

27
00:01:23.900 --> 00:01:24.100
Okay.

28
00:01:25.200 --> 00:01:28.300
So here you can see onto your screen. I have

29
00:01:28.300 --> 00:01:31.500
 red hat Enterprise Linux, which has been set up

30
00:01:31.500 --> 00:01:34.300
 into my virtual machine. Now. Let's

31
00:01:34.300 --> 00:01:37.600
 see quickly. What is the version so that it

32
00:01:37.600 --> 00:01:39.700
 had release version is 8.3

33
00:01:40.900 --> 00:01:43.600
I am able to see this using the command which

34
00:01:43.600 --> 00:01:46.500
 is cat Etc red hat -release

35
00:01:46.500 --> 00:01:49.700
 so you can also see what is the version this is

36
00:01:49.700 --> 00:01:52.500
 just to confirm that this is a red hat paste

37
00:01:52.500 --> 00:01:56.000
 operating system and now we are going to install and

38
00:01:55.400 --> 00:01:56.600
 use him.

39
00:01:57.500 --> 00:02:00.100
So these operating systems such as

40
00:02:00.100 --> 00:02:04.000
 relat Enterprise Linux comes pre-installed

41
00:02:03.100 --> 00:02:06.800
 with M. So we are not going to install it as

42
00:02:06.800 --> 00:02:09.800
 it is already been installed, but you

43
00:02:09.800 --> 00:02:12.200
 have to see how you can configure it

44
00:02:12.200 --> 00:02:15.500
 and start using it now. Let me

45
00:02:15.500 --> 00:02:17.400
 just type em and hit enter.

46
00:02:18.400 --> 00:02:21.300
And you can see that it comes up with a

47
00:02:21.300 --> 00:02:24.400
 sweet menu like this which means that DM is

48
00:02:24.400 --> 00:02:27.500
 configured and installed into your computer.

49
00:02:27.500 --> 00:02:30.400
 If you could have got an error that come

50
00:02:30.400 --> 00:02:33.800
 on not found that basically means that red hat

51
00:02:33.800 --> 00:02:36.800
 package manager or your red

52
00:02:36.800 --> 00:02:39.300
 hat Enterprise Linux does not have Yemen installed,

53
00:02:39.300 --> 00:02:43.400
 but most of the conditions it is already pre-installed.

54
00:02:42.400 --> 00:02:45.100
 Perfect. I'll just

55
00:02:45.100 --> 00:02:45.800
 clear the screen.

56
00:02:47.200 --> 00:02:50.500
Now, let me just type em list. So when you

57
00:02:50.500 --> 00:02:53.800
 hit this command you are able to see that what are

58
00:02:53.800 --> 00:02:56.700
 the possible packages or apps that

59
00:02:56.700 --> 00:02:59.600
 are available into the Repository?

60
00:03:00.300 --> 00:03:04.600
As you can see over here. So these are all the possible apps

61
00:03:03.600 --> 00:03:06.900
 or packages that can be installed into

62
00:03:06.900 --> 00:03:07.300
 your computer.

63
00:03:08.200 --> 00:03:11.800
Now, let's quickly install something. So for

64
00:03:11.800 --> 00:03:15.200
 that we're going to use the command yum install and let's

65
00:03:14.200 --> 00:03:17.000
 try to install a package which is

66
00:03:17.700 --> 00:03:20.700
 wget. So wget if you're not aware, it

67
00:03:20.700 --> 00:03:23.200
 is basically a package or a command

68
00:03:23.200 --> 00:03:26.300
 whatever you like to call it, which is used to download

69
00:03:26.300 --> 00:03:29.500
 something using a terminal. So, let

70
00:03:29.500 --> 00:03:30.200
 me just hit enter.

71
00:03:31.200 --> 00:03:34.300
And when I hit enter you can see we got a error which says

72
00:03:34.300 --> 00:03:36.100
 to install something into the computer.

73
00:03:36.800 --> 00:03:38.800
You need to use sudo. All right.

74
00:03:39.300 --> 00:03:40.400
So let's use sudo.

75
00:03:41.400 --> 00:03:44.800
And again hit enter and then it will ask you to specify a

76
00:03:44.800 --> 00:03:45.100
 password.

77
00:03:46.600 --> 00:03:49.500
So I'll just specify the password and you

78
00:03:49.500 --> 00:03:49.800
 can see.

79
00:03:51.200 --> 00:03:54.300
It said package wget and the version number

80
00:03:54.300 --> 00:03:57.200
 is already installed into a computer.

81
00:03:57.200 --> 00:04:01.300
 All the dependencies has been successfully resolved Nothing

82
00:04:00.300 --> 00:04:02.300
 to Do complete.

83
00:04:03.000 --> 00:04:03.300
now

84
00:04:04.200 --> 00:04:07.700
it is already installed into a computer. So nothing was

85
00:04:07.700 --> 00:04:08.600
 basically done.

86
00:04:09.300 --> 00:04:12.100
But if wget was not there into a computer

87
00:04:12.100 --> 00:04:16.600
 it would have downloaded it and also install or

88
00:04:16.600 --> 00:04:20.500
 resolve all the dependencies that comes

89
00:04:19.500 --> 00:04:22.700
 with duplicate. Now, this

90
00:04:22.700 --> 00:04:25.200
 is something awesome because if you try to

91
00:04:25.200 --> 00:04:29.200
 install a particular package from outside, which

92
00:04:28.200 --> 00:04:32.100
 is basically similar to how you install apks

93
00:04:31.100 --> 00:04:34.300
 into your mobile phone from other different

94
00:04:34.300 --> 00:04:37.300
 sources, but sometimes you have to compile some

95
00:04:39.100 --> 00:04:40.000
dependencies

96
00:04:41.300 --> 00:04:45.000
Okay, so you can see over here. It is successfully pre-installed

97
00:04:44.400 --> 00:04:47.700
 and we do not have to do anything over

98
00:04:47.700 --> 00:04:50.300
 here. Now. This is something

99
00:04:50.300 --> 00:04:53.900
 which is very awesome using a package manager because

100
00:04:53.900 --> 00:04:56.600
 you do not have to install all

101
00:04:56.600 --> 00:04:59.600
 the dependencies one by one individually the

102
00:04:59.600 --> 00:05:03.100
 package manager itself understands smartly that

103
00:05:02.100 --> 00:05:03.600
 what that

104
00:05:04.900 --> 00:05:07.300
What are the dependencies which are required for

105
00:05:07.300 --> 00:05:10.800
 this tool to run? And it automatically installed those

106
00:05:10.800 --> 00:05:13.200
 dependencies now if just try

107
00:05:13.200 --> 00:05:16.700
 to install this tool or the package from outside and

108
00:05:16.700 --> 00:05:19.400
 if there are some possible dependencies then

109
00:05:19.400 --> 00:05:22.100
 it will just throw you errors and you have to

110
00:05:22.100 --> 00:05:25.800
 resolve or configure those particular errors

111
00:05:25.800 --> 00:05:28.500
 and install the dependencies by yourself.

112
00:05:28.500 --> 00:05:32.300
 It will become a tedious task hence package

113
00:05:31.300 --> 00:05:34.500
 managers comes handy and

114
00:05:34.500 --> 00:05:37.800
 it installs all the required dependencies

115
00:05:37.800 --> 00:05:41.100
 for that particular package easily. Alright,

116
00:05:40.100 --> 00:05:43.300
 so now let's really see one more

117
00:05:43.300 --> 00:05:45.600
 tool that we are going to install so let's say cool.

118
00:05:46.100 --> 00:05:49.600
So I'm just going to type sudo yum installed curl.

119
00:05:50.200 --> 00:05:53.500
And let's see what happens and perfect. It says it's

120
00:05:53.500 --> 00:05:56.700
 already installed. All the dependencies are

121
00:05:56.700 --> 00:05:59.200
 resolved. Nothing to do. Okay. So

122
00:05:59.200 --> 00:06:02.500
 now we are going to remove something from our computer. So for

123
00:06:02.500 --> 00:06:05.700
 that we are going to use the same command which is sudo yum,

124
00:06:05.700 --> 00:06:08.800
 but this time remove so let's say we're going to remove package

125
00:06:08.800 --> 00:06:11.400
 which is wget. So the command is

126
00:06:11.400 --> 00:06:14.900
 fairly pretty simple, which is sudo yum remove wget.

127
00:06:14.900 --> 00:06:18.400
 When you hit enter you can see removing over

128
00:06:18.400 --> 00:06:21.100
 here and into the red you can see double look

129
00:06:21.100 --> 00:06:23.000
 at has been successfully removed.

130
00:06:24.200 --> 00:06:27.900
Over here it is asking you that it will take 2.8

131
00:06:27.900 --> 00:06:30.500
 MB space and this will basically

132
00:06:30.500 --> 00:06:33.300
 get read from your computer. Are you sure so I'll just

133
00:06:33.300 --> 00:06:37.200
 press Y and you can see that is basically removing

134
00:06:36.200 --> 00:06:39.300
 it. Once the product has been

135
00:06:39.300 --> 00:06:42.200
 removed removed as you can see over here. All the

136
00:06:42.200 --> 00:06:45.800
 dependencies are also being removed. So now this computer does

137
00:06:45.800 --> 00:06:48.500
 not have duplicate installed and when

138
00:06:48.500 --> 00:06:51.600
 you try to just run it it will throw your error saying

139
00:06:51.600 --> 00:06:54.300
 that W get is not there. And what is the process

140
00:06:54.300 --> 00:06:57.800
 to get back duplicate again? It's simple sudo.

141
00:06:58.700 --> 00:07:01.100
M install duplicate and it

142
00:07:01.100 --> 00:07:02.300
 will basically install it.

143
00:07:03.100 --> 00:07:06.400
So I hope you guys understood and you got a fair idea

144
00:07:06.400 --> 00:07:09.500
 about how to use yum to install and

145
00:07:09.500 --> 00:07:12.100
 remove packages from your computer. Thank you.
