1
00:00:00,090 --> 00:00:01,410
There other ways to download

2
00:00:01,410 --> 00:00:02,760
software from the web.

3
00:00:02,760 --> 00:00:05,130
You don't have to always use a package manager.

4
00:00:05,130 --> 00:00:07,170
So two utilities that we're going to go over

5
00:00:07,170 --> 00:00:10,320
is the wget and the curl option.

6
00:00:10,320 --> 00:00:12,900
So these utilities allow us to, again,

7
00:00:12,900 --> 00:00:17,040
download software directly from the web, but with the wget,

8
00:00:17,040 --> 00:00:22,040
it downloads only ACTPS or FTP protocols and is very simple.

9
00:00:23,550 --> 00:00:26,280
The curl allows us to use multiple protocols

10
00:00:26,280 --> 00:00:29,700
above and beyond ACTPS and FTP.

11
00:00:29,700 --> 00:00:31,500
So it gives us a lot more options,

12
00:00:31,500 --> 00:00:34,350
but wget typically suffices our needs

13
00:00:34,350 --> 00:00:36,570
if we know exactly what we're looking for.

14
00:00:36,570 --> 00:00:38,993
So let's go ahead and use an example really quick.

15
00:00:40,350 --> 00:00:43,470
Okay, now let's check out this wget command.

16
00:00:43,470 --> 00:00:44,700
Just to save time, I went ahead

17
00:00:44,700 --> 00:00:47,400
and prefilled out this command for us,

18
00:00:47,400 --> 00:00:49,530
and it's simply going to fetch some files

19
00:00:49,530 --> 00:00:51,630
from a Samba website, but they can be tarred up.

20
00:00:51,630 --> 00:00:54,900
So that means they will be packaged into one .tar file,

21
00:00:54,900 --> 00:00:57,333
which is efficient for multiple files.

22
00:01:05,280 --> 00:01:06,390
Okay, that's simple enough.

23
00:01:06,390 --> 00:01:08,373
Let's check it out in our directory.

24
00:01:09,360 --> 00:01:11,640
Okay, we can see it highlighted in red.

25
00:01:11,640 --> 00:01:12,473
Now next, as promised,

26
00:01:12,473 --> 00:01:13,950
we're going to check out the curl command.

27
00:01:13,950 --> 00:01:17,220
This -o option changes the output of the download

28
00:01:17,220 --> 00:01:19,560
and sends it to this nmap file for us.

29
00:01:19,560 --> 00:01:22,230
It's not needed to display it on the screen.

30
00:01:22,230 --> 00:01:23,513
So what you want to do here.

31
00:01:33,180 --> 00:01:35,340
All right, we see that successfully went through.

32
00:01:35,340 --> 00:01:37,073
Again, let's go and check our directory.

33
00:01:40,320 --> 00:01:42,920
Okay, highlighted in the red, we see the nmap there.

34
00:01:43,770 --> 00:01:44,730
Now for this tar file,

35
00:01:44,730 --> 00:01:48,300
we just going to have the source code located within it.

36
00:01:48,300 --> 00:01:50,280
So what we're going to do is actually extract this

37
00:01:50,280 --> 00:01:52,740
and we're going to compile it in a later demonstration.

38
00:01:52,740 --> 00:01:55,620
So we'll go ahead and extract this file, so tar again.

39
00:01:55,620 --> 00:01:59,430
What tar does is it collects our groups of file

40
00:01:59,430 --> 00:02:03,420
and packages it so we can simply download all the files

41
00:02:03,420 --> 00:02:06,600
we need from one source location instead of multiple.

42
00:02:06,600 --> 00:02:09,570
Do -x, so that's going to be for extract.

43
00:02:09,570 --> 00:02:10,919
Verbose mode.

44
00:02:10,919 --> 00:02:13,650
j, that specifies the type of compression,

45
00:02:13,650 --> 00:02:15,033
which is going to be bz2.

46
00:02:16,020 --> 00:02:17,220
And this is goin to...

47
00:02:17,220 --> 00:02:20,103
The f means we're going to designate a file,

48
00:02:20,940 --> 00:02:25,480
which is going to be nmap-7.70.tar.bz2,

49
00:02:28,710 --> 00:02:30,180
that's a type of compression.

50
00:02:30,180 --> 00:02:31,823
I'm going to extract this really quick.

51
00:02:33,840 --> 00:02:36,090
Okay, we see that went through.

52
00:02:36,090 --> 00:02:36,993
I'm going to look in.

53
00:02:38,400 --> 00:02:40,700
You see this nmap folder, nmap-7.70.

54
00:02:42,420 --> 00:02:43,980
It was created through the extraction,

55
00:02:43,980 --> 00:02:45,430
so we're going to list that out.

56
00:02:49,170 --> 00:02:50,820
All right.

57
00:02:50,820 --> 00:02:53,670
Just want to make sure they have all those files necessary.

58
00:02:55,350 --> 00:02:59,433
Okay, seems like have a decent amount of files there.

59
00:03:01,930 --> 00:03:04,650
Okay, so that's a quick way of using two different utilities

60
00:03:04,650 --> 00:03:06,720
to download software manually.

61
00:03:06,720 --> 00:03:10,140
So we used the wget and we used the curl utility

62
00:03:10,140 --> 00:03:11,280
to download the software,

63
00:03:11,280 --> 00:03:13,590
and we also went over a little bit about the tar command,

64
00:03:13,590 --> 00:03:16,800
which packages or unpackages a collection of files

65
00:03:16,800 --> 00:03:18,183
for easy distribution.

66
00:03:19,020 --> 00:03:20,220
Thank you for taking me on this walkthrough,

67
00:03:20,220 --> 00:03:22,067
and I'll see you in the next lesson.

