1
00:00:00,150 --> 00:00:02,100
As a system administrator, there'll be times

2
00:00:02,100 --> 00:00:06,300
where you'll be asked to manage software packages.

3
00:00:06,300 --> 00:00:07,821
Now software package refers to a collection

4
00:00:07,821 --> 00:00:11,430
of files that are needed for a program to run.

5
00:00:11,430 --> 00:00:13,123
In this demonstration we're going to walk through

6
00:00:13,123 --> 00:00:17,280
two package managers who help us manage that life cycle

7
00:00:17,280 --> 00:00:19,890
of installing, updating, removing,

8
00:00:19,890 --> 00:00:23,100
and just getting general information about those programs.

9
00:00:23,100 --> 00:00:26,250
The first package manager that we're going to use is RPM.

10
00:00:26,250 --> 00:00:30,120
Now that's for Red Hat Linux Distribution type of packages.

11
00:00:30,120 --> 00:00:32,130
We're going to use that because since OS

12
00:00:32,130 --> 00:00:35,250
is one of the Red Hat Linux Distributions.

13
00:00:35,250 --> 00:00:37,650
So we're going to install a Korn Shell package.

14
00:00:37,650 --> 00:00:40,950
So we're going to do sudo Red Hat package manager.

15
00:00:40,950 --> 00:00:43,440
We're going to install verbose mode

16
00:00:43,440 --> 00:00:44,700
so we can see more information about it.

17
00:00:44,700 --> 00:00:46,290
And we're going to have hashtag

18
00:00:46,290 --> 00:00:49,080
so we can actually see the progress

19
00:00:49,080 --> 00:00:51,210
for our assets installing.

20
00:00:51,210 --> 00:00:52,860
So I'm going to do our command here.

21
00:00:53,760 --> 00:00:54,593
Okay.

22
00:00:54,593 --> 00:00:55,770
We see how fast that was, right?

23
00:00:55,770 --> 00:00:57,540
There was barely any time.

24
00:00:57,540 --> 00:00:58,373
We just blinked.

25
00:00:58,373 --> 00:00:59,700
It was already done for us.

26
00:00:59,700 --> 00:01:01,260
This is a very quick way to do it.

27
00:01:01,260 --> 00:01:04,343
Now this was done locally from my packages folder.

28
00:01:04,343 --> 00:01:07,500
So I do have this package installed locally,

29
00:01:07,500 --> 00:01:08,940
and I just installed it very quickly

30
00:01:08,940 --> 00:01:11,010
using the package manager there.

31
00:01:11,010 --> 00:01:12,120
Another set of commands we're going to use,

32
00:01:12,120 --> 00:01:13,708
we're going to use the QI option

33
00:01:13,708 --> 00:01:17,160
which lists information about that package for us.

34
00:01:17,160 --> 00:01:18,993
So we're going to do Korn Shell again.

35
00:01:19,920 --> 00:01:22,380
And we see there's a lot of good key information.

36
00:01:22,380 --> 00:01:25,293
Version information, which would be very useful.

37
00:01:25,293 --> 00:01:27,360
The date we installed the package,

38
00:01:27,360 --> 00:01:30,480
bill dates, descriptions, you get the picture.

39
00:01:30,480 --> 00:01:32,400
So again, this just a quick way to get a lot

40
00:01:32,400 --> 00:01:33,840
of information about this package

41
00:01:33,840 --> 00:01:36,000
because it'll be very important in the future

42
00:01:36,000 --> 00:01:39,180
to understand the version and the releases of the packages

43
00:01:39,180 --> 00:01:41,610
because some things are dependent upon others

44
00:01:41,610 --> 00:01:44,040
and we'll have a lot of incompatibilities

45
00:01:44,040 --> 00:01:47,100
at times for different versions of programs.

46
00:01:47,100 --> 00:01:50,010
So this one verify the actual installation

47
00:01:50,010 --> 00:01:50,910
of the Korn shell.

48
00:01:50,910 --> 00:01:54,120
So I'm do to sudo, Red Hat package manager.

49
00:01:54,120 --> 00:01:55,420
We going to do a robust mode,

50
00:01:57,000 --> 00:01:58,923
verify we want to do the Korn Shell.

51
00:02:00,210 --> 00:02:01,200
Okay. Now this just shows

52
00:02:01,200 --> 00:02:03,690
that this package is actually installed

53
00:02:03,690 --> 00:02:05,943
and what files are installed with it.

54
00:02:06,840 --> 00:02:08,789
Now we don't always have to see what's installed.

55
00:02:08,789 --> 00:02:11,440
We want to just get a quick list of, we can do the RPM

56
00:02:12,360 --> 00:02:15,900
and we do QL, quick list

57
00:02:15,900 --> 00:02:16,923
Korn shell.

58
00:02:18,330 --> 00:02:19,170
Last, but not least

59
00:02:19,170 --> 00:02:21,720
we have to remove the packages at times.

60
00:02:21,720 --> 00:02:24,090
So we'll do the sudo RPM

61
00:02:24,090 --> 00:02:27,210
and that's going to be the erase command, KSH

62
00:02:27,210 --> 00:02:28,983
and we'll see it's quick and easy.

63
00:02:30,210 --> 00:02:34,560
If we want to verify that this was gone, we could check.

64
00:02:34,560 --> 00:02:35,489
RPM

65
00:02:35,489 --> 00:02:38,373
We'll see if we have any info about it.

66
00:02:40,980 --> 00:02:42,730
And we see that it's not installed.

67
00:02:43,860 --> 00:02:45,780
The next package manager we're going to go over is

68
00:02:45,780 --> 00:02:47,550
the yum package manager.

69
00:02:47,550 --> 00:02:50,880
Again, this works for dot RPM files and it's the preferred

70
00:02:50,880 --> 00:02:54,357
method over RPM because of the features and it also

71
00:02:54,357 --> 00:02:57,420
installs dependencies that are required for the packages.

72
00:02:57,420 --> 00:02:59,820
So, first thing we want to do, we're going to use the very

73
00:02:59,820 --> 00:03:02,730
secure FTP Damon.

74
00:03:02,730 --> 00:03:04,140
So we're going to look this up.

75
00:03:04,140 --> 00:03:05,940
There's a little information about it.

76
00:03:05,940 --> 00:03:07,473
Very secure, OTD.

77
00:03:10,680 --> 00:03:11,880
Again, it's just another way

78
00:03:11,880 --> 00:03:14,100
of getting information about a package.

79
00:03:14,100 --> 00:03:16,083
Again, we could do this with RPM, but we're going to use this

80
00:03:16,083 --> 00:03:17,310
with yum.

81
00:03:17,310 --> 00:03:20,040
This is one of the most widely used package managers

82
00:03:20,040 --> 00:03:24,570
for Red Hat, even Red Hat themselves recommend using the yum

83
00:03:24,570 --> 00:03:26,310
when they develop the RPM.

84
00:03:26,310 --> 00:03:29,730
Okay, so we're going to do is install again, a local package.

85
00:03:29,730 --> 00:03:32,580
Now the yum specifies this.

86
00:03:32,580 --> 00:03:34,713
So we have to do local install.

87
00:03:37,110 --> 00:03:38,433
We're do packages.

88
00:03:40,890 --> 00:03:42,190
Going to use our very secure.

89
00:03:46,200 --> 00:03:48,270
All right, we see it got through the step

90
00:03:48,270 --> 00:03:50,370
and we're going to click yes here.

91
00:03:50,370 --> 00:03:51,270
Now, just to note

92
00:03:51,270 --> 00:03:54,480
if we we're to do this and we was to do the Y option.

93
00:03:54,480 --> 00:03:58,290
So yum dash Y, that will select yes

94
00:03:58,290 --> 00:04:00,360
for any other prompts that would be going

95
00:04:00,360 --> 00:04:02,460
through throughout the installation process.

96
00:04:02,460 --> 00:04:03,723
'Cause sometimes it'll ask us

97
00:04:03,723 --> 00:04:06,570
would we like to install certain dependencies

98
00:04:06,570 --> 00:04:10,059
or if certain processes of the installation are okay.

99
00:04:10,059 --> 00:04:11,550
A lot of times they are.

100
00:04:11,550 --> 00:04:14,190
So we just use the dash Y option.

101
00:04:14,190 --> 00:04:16,740
So that allows us to have a quick transition

102
00:04:16,740 --> 00:04:18,029
into the installation.

103
00:04:18,029 --> 00:04:22,176
Okay. And also check out this yum provides command.

104
00:04:22,176 --> 00:04:25,980
What that does is this allows us to see what package

105
00:04:25,980 --> 00:04:28,110
does a particular file belong to.

106
00:04:28,110 --> 00:04:32,163
So we going to check out the VSFTD, the config file.

107
00:04:35,880 --> 00:04:38,400
And you can see that it associates this file

108
00:04:38,400 --> 00:04:40,770
with the package that we just installed.

109
00:04:40,770 --> 00:04:43,230
Again, just another tool to give us information

110
00:04:43,230 --> 00:04:45,510
about different configuration files

111
00:04:45,510 --> 00:04:49,050
or other files that's associated with a particular package.

112
00:04:49,050 --> 00:04:51,450
Last, but not least we're going to remove the package.

113
00:04:51,450 --> 00:04:52,620
Use the Y option here.

114
00:04:52,620 --> 00:04:53,613
So sudo yum.

115
00:04:54,623 --> 00:04:56,220
Yes to everything.

116
00:04:56,220 --> 00:05:00,393
Remove very secure file transfer protocol Damon.

117
00:05:02,130 --> 00:05:02,963
All right.

118
00:05:04,920 --> 00:05:06,630
So just to summarize:

119
00:05:06,630 --> 00:05:09,990
we went over how to use a package manager in Linux

120
00:05:09,990 --> 00:05:12,390
and we're going to focus on the Red Hat Linux.

121
00:05:12,390 --> 00:05:15,150
So we used the yum for the

122
00:05:15,150 --> 00:05:18,420
dot RPM files because that's a recommended package manager

123
00:05:18,420 --> 00:05:22,470
but we can also, again, still use the RPM package manager

124
00:05:22,470 --> 00:05:25,023
which was originally created by Red Hat Linux.

125
00:05:25,890 --> 00:05:27,660
And remember the differences between the yum

126
00:05:27,660 --> 00:05:30,112
and the RPM is that the yum will automatically

127
00:05:30,112 --> 00:05:32,250
install dependencies that are required

128
00:05:32,250 --> 00:05:33,903
for a lot of our programs to run.

129
00:05:35,190 --> 00:05:36,720
Thank you for sticking with me through this walkthrough

130
00:05:36,720 --> 00:05:38,520
and I'll see you in the next lesson.

