uninstalling nmap from Macbook 10.13.6

Hello,

I installed nmap software onto my MacBook. Now, my computer is slow. How do I uninstall thsi software. I don't see it in the Applications folder. The directions on the following webpage seem complicated or I don't understand.


https://nmap.org/book/inst-macosx.html



MacBook

Posted on Jul 28, 2019 5:06 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 29, 2019 5:26 AM

You haven't stated how you installed nmap. You can only use the package manager that you used to install it — to remove it. If you just downloaded the nmap-7.70.dmg, double-clicked that to mount on your Desktop, and then ran the meta package (.mpkg) installer from there, then you cannot use a third-party package manager to uninstall it, nor do the developers provide an uninstaller, or uninstall instructions.


The nmap installer sprays binaries and man pages into the /usr/local/bin, /usr/local/share/man folder locations, in addition to the obvious in /Applications.


On the outside chance that the installation created a package history, run the following in the Terminal.


pkgutil --pkgs | grep -i nmap


If this shows a package from nnmap.org, you can see all of the files that it installed. Omit the angle brackets below, and use the name that you found in the preceding command output:


pkgutil --files <full name of the nmap package from the previous command> | more -r



20 replies
Question marked as Top-ranking reply

Jul 29, 2019 5:26 AM in response to cnovice

You haven't stated how you installed nmap. You can only use the package manager that you used to install it — to remove it. If you just downloaded the nmap-7.70.dmg, double-clicked that to mount on your Desktop, and then ran the meta package (.mpkg) installer from there, then you cannot use a third-party package manager to uninstall it, nor do the developers provide an uninstaller, or uninstall instructions.


The nmap installer sprays binaries and man pages into the /usr/local/bin, /usr/local/share/man folder locations, in addition to the obvious in /Applications.


On the outside chance that the installation created a package history, run the following in the Terminal.


pkgutil --pkgs | grep -i nmap


If this shows a package from nnmap.org, you can see all of the files that it installed. Omit the angle brackets below, and use the name that you found in the preceding command output:


pkgutil --files <full name of the nmap package from the previous command> | more -r



Jul 28, 2019 5:51 PM in response to cnovice

The following assumes you have complete and current backups.


There’s no provided removal tool for that and many other package installers, of that’s what you used here of the three options shown on the cited web page.


If you used the package installer and not fink or macports (nmap is also in homebrew, though thst cited web page doesn’t list that option), then you’re left to manually remove nmap.


Have an external backup or two, as this sequence may fail.


You’ll almost certainly need to adjust the embedded version number shown in the linked article to match the version you installed.


Or since nmap is small and harmless and only really relevant when it’s being run with admin access, you could choose to ignore it.

Jul 30, 2019 9:41 AM in response to cnovice

Start with the Apple Command Line Primer in the appendix of the shell scripting manual, and then work your way through the rest of the document. There's also a reasonable book around for what I think you're up to here—inferring from your username—which is learning C on a Unix system. That's the 21st Century C book by Klemens.


As for your question...


Those files are what was installed here.


Those files are what would be manually removed when removing nmap.


This after having used of the "package" installer.


There's no nmap removal tool for the package installer.


Which means manual removal.


Or you can choose to ignore the installed nmap, which is what I'd encourage doing here.


Why ignore nmap?


nmap uses negligible storage, and is only active when invoked.


Clobbering an incorrect file or directory somewhere under /usr/local might clobber something else.


if you do decide to (manually) delete the nmap files, have complete and current backups.


Once you know a little more about Unix and the command line and—again, inferring from your username—C programming on Unix systems such as macOS—then this nmap discussion and this removal might be worth revisiting, and the files and folders can then be deleted.


Jul 29, 2019 6:59 AM in response to VikingOSX

After typing "pkgutil --pkgs | grep -i nmap" in the Terminal, it read in the Terminal:


org.insecure.nmap


org.insecure.nmap.ndiff


org.insecure.nmap.zenmap


org.insecure.nmap.ncat


org.insecure.nmap.nmap-update


org.insecure.nmap.nping




After typing "pkgutil --files <full name of the nmap package from the previous command> | more -r" in the Terminal, it read:


-bash: syntax error near unexpected token `|'


I installed zenmap from the company's site. I finanlyl foudn it in applications folder under Zenmap instead of map. It wasn't compatible with MAC so I wasn't ab;e to view the program. Although I palced it in the Trash folder, the above information still shows in the Terminal.

Jul 29, 2019 12:53 PM in response to cnovice

pkgutil --files org.insecure.nmap | less

 

usr

usr/local

usr/local/bin

usr/local/bin/nmap

usr/local/share

usr/local/share/man

usr/local/share/man/de

usr/local/share/man/de/man1

usr/local/share/man/de/man1/nmap.1

usr/local/share/man/es

usr/local/share/man/es/man1

usr/local/share/man/es/man1/nmap.1

usr/local/share/man/fr

usr/local/share/man/fr/man1

usr/local/share/man/fr/man1/nmap.1

usr/local/share/man/hr

usr/local/share/man/hr/man1

usr/local/share/man/hr/man1/nmap.1

usr/local/share/man/hu

usr/local/share/man/hu/man1

usr/local/share/man/hu/man1/nmap.1

usr/local/share/man/it

usr/local/share/man/it/man1

:


--

more ~/Desktop/insecure_nmap.txt



/Users/Desktop/insecure_nmap.txt: No such file or directory


--

pkgutil --files org.insecure.nmap > ~/Desktop/insecure_nmap.txt


There is no --files org.insecure.nmap > 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

uninstalling nmap from Macbook 10.13.6

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.