Home Download latest nmap from nmap.org to use in local repo how to CentOS 6.x / RHEL 6.x
Post
Cancel

Download latest nmap from nmap.org to use in local repo how to CentOS 6.x / RHEL 6.x

This is a Junior System Administrator how to tutorial to help you download the latest nmap version.

The tutorial continues on to a tutorial how to create your own yum repo that part are located here: How to create a local yum repo CentOS 6.x / RHEL 6.x

So lets start the how to tutorial by checking out nmap’s page http://nmap.org and check the newest available version.

When I’m writing this the newest version is 6.40-1

Go to the download page http://nmap.org/download.html and look for the Linux RPM Source and Binaries.

Hmm what should I use?

Lets check what version of CentOS I have currently installed by running the command uname.

uname -a
[c-johsor@sesstl168 ~]$ uname -a
Linux sesstl168 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[c-johsor@sesstl168 ~]$

Hmm that command produced a lot of text. We do only want to know if it’s a 32 bit or 64 bit so let’s try again. This time with the command to check the hardware-platform.

uname -i
[c-johsor@sesstl168 ~]$ uname -i
x86_64
[c-johsor@sesstl168 ~]$

Ok now I know that I ned the 64 bit version of the rpm package.

Let’s get that copy link for the package: http://nmap.org/dist/nmap-6.40-1.x86_64.rpm

I like to download stuff to /tmp/

Go to /tmp by typing:

cd /tmp/

Now download the rpm package by typing:

wget http://nmap.org/dist/nmap-6.40-1.x86_64.rpm

If you get the error command not found you need to install wget by typing:

yum install wget
[c-johsor@sesstl168 ~]$ wget http://nmap.org/dist/nmap-6.40-1.x86_64.rpm
--2014-03-12 23:21:07--  http://nmap.org/dist/nmap-6.40-1.x86_64.rpm
Resolving nmap.org... 173.255.243.189, 2600:3c01::f03c:91ff:fe70:d085
Connecting to nmap.org|173.255.243.189|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5007717 (4.8M) [application/octet-stream]
Saving to: “nmap-6.40-1.x86_64.rpm”

100%[==============================================================================================================================>] 5,007,717    452K/s   in 16s     

2014-03-12 23:21:24 (304 KB/s) - “nmap-6.40-1.x86_64.rpm” saved [5007717/5007717]

[c-johsor@sesstl168 ~]$

Now you have the rpm package in your /tmp/ folder.

This is the end of this mini how to lets continue to the yum tutorial How to create a local yum repo CentOS 6.x / RHEL 6.x

This post is licensed under CC BY 4.0 by the author.