ubuntu技巧--ubuntu卸载cuda toolkit

原文链接: https://blog.csdn.net/heroacool/article/details/50818465

 

1,

cd /usr/local/cuda6.5/bin/
sudo ./uninstall_****
  • 1
  • 2

2,

sudo apt-get purge --auto-remove nvidia-cuda-toolkit
  • 1

3, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK

4, 打开~/.bashrc
删除

export PATH=$PATH:/opt/cuda/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib:/opt/cuda/lib64 

你可能感兴趣的:(ubuntu技巧--ubuntu卸载cuda toolkit)