Introduction to Nmap
        
        
          Nmap is a utility for network
          exploration and security auditing. It supports ping scanning, port
          scanning and TCP/IP fingerprinting.
        
        
          This package is known to build and work properly using an LFS 12.4
          platform.
        
        
          Package Information
        
        
          
            - 
              
                Download (HTTP): https://nmap.org/dist/nmap-7.98.tar.bz2
               
- 
              
                Download MD5 sum: 4d6b817ed0739141656e06a74bac5e57
               
- 
              
                Download size: 12 MB
               
- 
              
                Estimated disk space required: 118 MB (with tests)
               
- 
              
                Estimated build time: 0.5 SBU (Using parallelism=4; with
                tests)
               
 
        
          Nmap Dependencies
        
        
          Required
        
        
          build-1.3.0
        
        
          Recommended
        
        
          ![[Note]](../images/note.png) 
          
            Note
          
          
            If the PyGObject3 module is not
            installed, you'd have to skip the command making the build system
            use the LFS Setuptools
            installation and then an Internet connection would be needed. The
            other packages are recommended because if they're not installed,
            the build process will compile and link against its own (often
            older) version.
          
         
        
          liblinear-249, libpcap-1.10.5, libssh2-1.11.1, Lua-5.4.8, pcre2-10.45, and PyGObject-3.52.3
        
        
          Optional
        
        
          libdnet and setuptools-gettext
          (currently useless)
        
       
      
        
          Installation of Nmap
        
        
          Make the build system use the Setuptools Python module from LFS instead of
          downloading a copy from the Internet, and install the Python wheels
          already created when running the make instead of rebuilding them
          again on make
          install:
        
        sed -ri Makefile.in \
    -e 's#-m build#& --no-isolation#'  \
    -e '/pip install/s#(ZENMAP|NDIFF)DIR\)/#&dist/*.whl#'
        
          Remove a useless dependency on setuptools-gettext:
        
        sed 's/, "setuptools-gettext"//' -i zenmap/pyproject.toml
        
          Install Nmap by running the
          following commands:
        
        ./configure --prefix=/usr &&
make
        
          If you wish to run the test suite, run the following command:
        
        sed -e '/import imp/d'                \
    -e 's/^ndiff = .*$/import ndiff/' \
    -i ndiff/ndifftest.py
        
          Tests need a graphical session and to be run as the root user. To test the results, issue:
        
        make check
        
          Now, as the root user:
        
        make install