There other ways to download
software from the web.
You don't have to always use a package manager.
So two utilities that we're going to go over
is the wget and the curl option.
So these utilities allow us to, again,
download software directly from the web, but with the wget,
it downloads only ACTPS or FTP protocols and is very simple.
The curl allows us to use multiple protocols
above and beyond ACTPS and FTP.
So it gives us a lot more options,
but wget typically suffices our needs
if we know exactly what we're looking for.
So let's go ahead and use an example really quick.
Okay, now let's check out this wget command.
Just to save time, I went ahead
and prefilled out this command for us,
and it's simply going to fetch some files
from a Samba website, but they can be tarred up.
So that means they will be packaged into one .tar file,
which is efficient for multiple files.
Okay, that's simple enough.
Let's check it out in our directory.
Okay, we can see it highlighted in red.
Now next, as promised,
we're going to check out the curl command.
This -o option changes the output of the download
and sends it to this nmap file for us.
It's not needed to display it on the screen.
So what you want to do here.
All right, we see that successfully went through.
Again, let's go and check our directory.
Okay, highlighted in the red, we see the nmap there.
Now for this tar file,
we just going to have the source code located within it.
So what we're going to do is actually extract this
and we're going to compile it in a later demonstration.
So we'll go ahead and extract this file, so tar again.
What tar does is it collects our groups of file
and packages it so we can simply download all the files
we need from one source location instead of multiple.
Do -x, so that's going to be for extract.
Verbose mode.
j, that specifies the type of compression,
which is going to be bz2.
And this is goin to...
The f means we're going to designate a file,
which is going to be nmap-7.70.tar.bz2,
that's a type of compression.
I'm going to extract this really quick.
Okay, we see that went through.
I'm going to look in.
You see this nmap folder, nmap-7.70.
It was created through the extraction,
so we're going to list that out.
All right.
Just want to make sure they have all those files necessary.
Okay, seems like have a decent amount of files there.
Okay, so that's a quick way of using two different utilities
to download software manually.
So we used the wget and we used the curl utility
to download the software,
and we also went over a little bit about the tar command,
which packages or unpackages a collection of files
for easy distribution.
Thank you for taking me on this walkthrough,
and I'll see you in the next lesson.