Can I just use apt-get, or should I use some Mac tool?
Nmap's Official Website
Download the latest official installer here:
Check this out for additional information:
Alternative versions can be found here:
Homebrew Package Manager
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install nmap
$ brew search nmap $ brew info nmap
MacPorts Package Manager
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/tjt263/macports-installer/master/macports-installer.sh)"
$ sudo port install nmap
$ sudo port search nmap $ sudo port info nmap
The package manager for MacOS
A package manager that people often use with MacOS, is Homebrew,
To install nmap, using Homebrew-
brew install nmap
Your question is largely answered at this unix.stackexchange link. https://unix.stackexchange.com/questions/80711/how-to-install-apt-get-or-yum-on-mac-os-x So, apt-get is not really recommended as a package manager for MacOS. Homebrew is one.. and another one called macports. ..Apparently you can get apt-get on macOS but getting it to work is, they say here, a bit advanced.
I suggest you learn your package manager, in the case of MacOS, macports or homebrew, learn how to get a list of packages, or search for a package e.g. search for nmap, see the command to search or list packages and to install a package. that's if google fails to bring up the homebrew command to install nmap. Though google threw up for me http://brewformulas.org/Nmap
brew install nmap
protected by JakeGould Dec 5 '15 at 17:29
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?