How to install nmap on FreeBSD 11

Computer terminalIf you are using FreeBSD 11 then these instructions will show you how to install nmap. Nmap is a program for scanning your servers to identify what ports you have open. Open ports means that the specified port can be reached by other systems. If your server is facing the internet and you have a lot of ports open then those ports can interact with other computer systems if they know your IP address.

To install nmap on FreeBSD via the binary packages using pkg you have to either be root or are using sudo to execute the commands. Command to run as the root user or as a sudo user:

pkg install nmap

You will get something that looks like this. You can give a “y” when prompted for permission to proceed by pkg to install nmap.

freebsd 11 install nmap