Removes the following McAfee software from macOS and prevents it from being installed again:
- McAfee Threat Prevention for Mac
- McAfee Endpoint Security for Mac
- McAfee Agent
Project aims at aiding users in complete removal of enterprise McAfee product from their system.
Enterprise McAfee version has no option of being uninstalled while it continues to corrupt the system,
occupy significant CPU time, and cause wild crashes by misusing macOS's logd
daemon.
The script also prevents listed McAfee products from being installed again.
Tested on: macOS Catalina 10.15.6
Download mcafee-cleaner.sh
script to your machine and run it with sudo rights:
sudo ./mcafee-cleaner.sh
Alternatively, if you trust the source of this script you can run it directly in the terminal:
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/vduseev/mcafee/master/mcafee-cleaner.sh)"
It's a simple bash script that performs the following actions:
- Removing McAfee
- Stopping McAfee services or daemons via
launchctl
- Removing McAfee services using
launchctl
- Killing all remaining McAfee processes using
pkill
- Removing McAfee user and group from the system using
dscl
- Removing directories where McAfee installs itself
- Removing McAfee files, such as configs, logs, and plists
- Unloading McAfee kernel extensions using
kextunload
- Stopping McAfee services or daemons via
- Preventing McAfee from installing itself again
- Recreate the directories where McAfee installs itself
- Make them immutable
This is a personal project not affiliated with any entity whatsoever with which I have been, am now, or will be affiliated. Use the script on your own risk. No guarantees provided.