Last active
June 21, 2019 10:19
-
-
Save juananpe/72207a781e482f88df0eec86e75a78e1 to your computer and use it in GitHub Desktop.
Completely uninstall VMWare on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: bash uninstall_vmware.bash | |
remove() { | |
entry="$1" | |
echo -ne "Removing $entry [" | |
sudo rm -rf "$entry" | |
if [[ ! -e "$entry" ]]; then | |
echo -ne "OK" | |
else | |
echo -ne "FAILED" | |
fi | |
echo -ne "]" | |
} | |
remove "/Applications/VMware Fusion.app" | |
remove "/Library/Application Support/VMware" | |
remove "/Library/Application Support/VMware Fusion" | |
remove "/Library/Preferences/VMware Fusion" | |
remove "/private/var/root/Library/Logs/VMware" | |
remove "/private/var/db/vmware" | |
remove "/Library/Logs/VMware/" | |
remove "/Library/Logs/VMware Fusion Services.log" | |
remove "/Library/Logs/DiagnosticReports/vmware*" | |
remove "/private/var/run/vmware" | |
remove "/private/var/run/VMware Fusion Services.lock" | |
remove "/private/var/run/VMware Fusion Services.sock" | |
remove "/private/var/root/Library/Preferences/VMware Fusion" | |
remove "/var/db/BootCaches/*/app.com.vmware.fusion.playlist" | |
remove "$HOME/Library/Application Support/VMware Fusion" | |
remove "$HOME/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vmware.fusion.sfl" | |
remove "$HOME/Library/Caches/com.vmware.fusion" | |
remove "$HOME/Library/Preferences/VMware Fusion" | |
remove "$HOME/Library/Logs/VMware" | |
remove "$HOME/Library/Logs/VMware Fusion" | |
remove "$HOME/Library/Preferences/VMware Fusion" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist.lockfile" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.plist.lockfile" | |
remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile" | |
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile" | |
sudo rm -rf /etc/paths.d/com.vmware.fusion.public | |
sudo rm -rf /var/run/VMware\ USB\ Arbitrator\ Service.* | |
sudo rm -rf /var/run/VMware\ USB\ Arbitrator\ Service.* | |
rm $HOME/Library/Preferences/com.vmware.fusionApplicationsMenu.plist | |
rm -rf /private/var/folders/r_/thfn3b955qj4fqks1mrc78580000gn/C/*vmw* | |
rm "$HOME/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vmware.fusion.sfl2" | |
rm "$HOME/Library/Application Support/CrashReporter/VMware Fusion_67379FAE-00DA-58EF-958C-CBD53E228C37.plist" | |
sudo kextcache --clear-staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment