By default,
nmap command is not available in CentOS
7 minimal installation and other Linux distributions. The nmap command line
utility is used for port scanning and services which are running on local or
remote machine in a network.This
article describes How to resolve “-bash: nmap: command not found” on CentOS
7.
-bash: nmap: command
not found
[root@linuxcnf ~]#
|
Step 1. Package Installation: Run
the following command to install nmap package:
[root@linuxcnf ~]# yum install nmap
Loaded plugins:
fastestmirror
…………………….
Dependency Installed:
libpcap.x86_64 14:1.5.3-12.el7
nmap-ncat.x86_64
2:6.40-19.el7
Complete!
[root@linuxcnf ~]#
|
Step 2. Verify the installation: Run
the following commands to verify the installation:
[root@linuxcnf ~]# which nmap
/usr/bin/nmap
[root@linuxcnf ~]#
[root@linuxcnf ~]# nmap -version
Nmap version 6.40 (
http://nmap.org )
Platform:
x86_64-redhat-linux-gnu
Compiled with:
nmap-liblua-5.2.2 openssl-1.0.2k libpcre-8.32 libpcap-1.5.3 nmap-libdnet-1.12
ipv6
Compiled without:
Available nsock
engines: epoll poll select
[root@linuxcnf ~]#
|
Done!!! Now
the nmap command is available in the system.
No comments:
Post a Comment