Introduction to Nmap
Nmap is a utility for network
exploration and security auditing. It supports ping scanning, port
scanning and TCP/IP fingerprinting.
Note
Development versions of BLFS may not build or run some packages
properly if LFS or dependencies have been updated since the most
recent stable versions of the books.
Package Information
-
Download (HTTP): https://nmap.org/dist/nmap-7.97.tar.bz2
-
Download MD5 sum: e4ac67fa85b4c2a93b49c811b1f0d163
-
Download size: 12 MB
-
Estimated disk space required: 109 MB (add 38 MB for tests)
-
Estimated build time: 0.4 SBU (Using parallelism=4; add 0.1
SBU for tests)
Nmap Dependencies
Required
build-1.2.2.post1
Recommended
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
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#'
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