mac完整卸载vmware

# 1. 删除根目录下的,需要用管理员权限

sudo rm -rf /Applications/VMware\ Fusion.app
sudo rm -rf /Library/Application\ Support/VMware
sudo rm -rf /Library/Preferences/VMware\ Fusion
sudo rm -rf /Library/Logs/VMware/ 
sudo rm -rf /Library/Logs/VMware\ Fusion\ Services.log
sudo rm -rf /Library/Logs/VMware\ USB\ Arbitrator\ Service.log 
sudo rm -rf /Library/Logs/DiagnosticReports/vmware*
sudo rm -rf /etc/paths.d/com.vmware.fusion.public

sudo rm -rf /private/var/db/vmware 
sudo rm -rf /private/var/run/vmware 
sudo rm -rf /private/var/run/VMware\ Fusion\ Services.lock 
sudo rm -rf /private/var/run/VMware\ Fusion\ Services.sock
sudo rm -rf /private/var/run/VMware\ USB\ Arbitrator\ Service.lock
sudo rm -rf /private/var/run/VMware\ USB\ Arbitrator\ Service.sock
 
sudo rm -rf /Library/Application\ Support/VMware\ Fusion/
sudo rm -rf /var/db/BootCaches/*/app.com.vmware.fusion.playlist
sudo rm -rf /private/var/root/Library/Logs/VMware 
sudo rm -rf /private/var/root/Library/Preferences/VMware\ Fusion

 

# 2. 删除自己目录下的

rm -rf ~/Library/Application\ Support/VMware\ Fusion/
rm -rf ~/Library/Preferences/VMware\ Fusion/
rm -rf ~/Library/Caches/com.vmware.fusion
rm -rf ~/Library/Logs/VMware
rm -rf ~/Library/Logs/VMware\ Fusion
rm -rf ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vmware.fusion.sfl2

 

# 3. 以下目录可以使用通配符一次性删除: rm -rf ~/Library/Preferences/com.vmware.*  

 

rm -rf ~/Library/Preferences/com.vmware.fusion.plist
rm -rf ~/Library/Preferences/com.vmware.fusion.plist.lockfile
rm -rf ~/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist
rm -rf ~/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist.lockfile
rm -rf ~/Library/Preferences/com.vmware.fusionDaemon.plist
rm -rf ~/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile
rm -rf ~/Library/Preferences/com.vmware.fusionStartMenu.plist
rm -rf ~/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile

 

# 4. 如果VMware上安装过虚拟服务器可能会有以下两个文件,有的话也要删除

rm -rf ~/Virtual\ Machines
rm -rf ~/Virtual\ Machines.localized/

 

PS: 

1)注意是在根目录下还是在用户主目录下。

2)并不是每一项一定有,比如第3项中的那8个,我的电脑里就只有2个。

posted @ 2022-07-20 10:33  dongweiq  阅读(3585)  评论(0编辑  收藏  举报