Created
February 2, 2015 05:32
-
-
Save cecekpawon/240182d3840c4c808586 to your computer and use it in GitHub Desktop.
CUDA - uninstaller
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
#!/bin/bash | |
#@cecekpawon - thrsh.net | |
sudo kextunload /System/Library/Extensions/CUDA.kext | |
sudo rm -rf /usr/local/cuda | |
sudo rm -rf /System/Library/StartupItems/CUDA | |
sudo rm -rf /System/Library/Extensions/CUDA.kext | |
sudo rm -rf /Library/Preferences/com.nvidia.cuda* | |
sudo rm -rf /Library/PreferencePanes/CUDA\ Preferences.prefPane | |
sudo rm -rf /Library/LaunchAgents/com.nvidia.CUDASoftwareUpdate.plist | |
sudo rm -rf /Library/Frameworks/CUDA.framework | |
sudo rm -rf /private/var/db/receipts/com.nvidia.cuda.launchagent.pkg.plist | |
read -p "Do you want to reboot now? (y/n) " choice | |
case "$choice" in | |
y|Y ) sudo reboot now | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment