How to install Nmap 5.20 in Ubuntu [from source]

By on January 22nd, 2010     

Nmap 5.20 was released recently with some exciting changes. However, it is not yet available for Ubuntu. In this article, we will show you how you can compile and install Nmap 5.20 from the source code in Ubuntu.

To install Nmap 5.20, simply follow the steps given below:

1. Make sure you have bzip2 and g++ installed. If not, tou can install them using the command

sudo apt-get install bzip2 g++

2. Download nmap-5.20.tar.bz2 in any location of your choice. In this example we are going to assume that it is downloaded in ~/Downloads.

3. After downloading open the terminal and go to the download location. In my case it is ~/Downloads, so the command would be

cd ~/Downloads

4. Extract the file using the command given below in the terminal,

bzip2 -cd nmap-5.20.tar2 | tar xvf -

5. Go to the nmap-5.20 directory with the command

cd nmap-5.20

6. After that run the following commands one after the another to build and finish the installation.

./configure

make

sudo make install

After running the last command, nmap-5.20 will be installed in your system. You can check the version using the command

nmap -version




         Submit to Reddit     Stumble


Related Posts by Tags: , ,



  • Pingback: Tweets that mention How to install Nmap 5.20 in Ubuntu [from source] -- Topsy.com

  • Cancer

    Thank you very much for posting this!

  • Ricky

    You are welcome :)

  • vinay omar

    on executing make command it is showing error and also g++ not found…..
    what should i do??
    any guesses………..

    • http://digitizor.com/ Ricky Laishram

      You don’t have g++ installed. Install it with:
      sudo apt-get install g++
      sorry for replying late.



How to install Nmap 5.20 in Ubuntu [from source] was originally published on Digitizor.com on January 22, 2010 - 1:31 am (Indian Standard Time)