There's more…

 In Linux-based distributions you can simply delete all the folders pertaining to Nmap to uninstall Nmap from your machine. If you have installed Nmap from a downloaded source, there will exist an uninstallation script in the same folder that will uninstall Nmap from your machine. Furthermore, if it was installed in the default location, it can be removed using the following commands:

rm -f bin/Nmap bin/nmapfe bin/xnmaprm -f man/man1/Nmap.1 man/man1/zenmap.1rm -rf share/Nmap./bin/uninstall_zenmap

Get Network Scanning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.