Uninstall NVIDIA CUDA Toolkit 10.0 on Fedora 28/27

2. Uninstall NVIDIA CUDA Toolkit 10.0 on Fedora 28/27

2.1 Change root user

su -
## OR ##
sudo -i

2.2 Run CUDA Uninstall Script

/usr/local/cuda-10.0/bin/uninstall_cuda_10.0.pl

Output:

...
Removing directory /usr/local/cuda-10.0/./extras/CUPTI/include/openacc
Removing directory /usr/local/cuda-10.0/./extras/CUPTI/include/GL
Removing directory /usr/local/cuda-10.0/./extras/CUPTI/include
Removing directory /usr/local/cuda-10.0/./extras/CUPTI
Removing directory /usr/local/cuda-10.0/./extras
Removing directory /usr/local/cuda-10.0/./bin
Removing directory /usr/local/cuda-10.0

2.3 Remove /etc/profile.d/cuda.sh

rm /etc/profile.d/cuda.sh

Then logout/login get CUDA away from PATH and LD_LIBRARY_PATH.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close