How Do I Remove Cuda from Ubuntu?
Contents

How do I uninstall Cuda?

Advanced

  1. Uninstall just nvidia-cuda-toolkit. sudo apt-get remove nvidia-cuda-toolkit.
  2. Uninstall nvidia-cuda-toolkit and it’s dependencies. sudo apt-get remove –auto-remove nvidia-cuda-toolkit.
  3. Purging config/data. sudo apt-get purge nvidia-cuda-toolkit or sudo apt-get purge –auto-remove nvidia-cuda-toolkit.

How do I remove Cuda 10.2 from Ubuntu?

Additionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. and remove the export PATH=$PATH:/opt/cuda/bin and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib:/opt/cuda/lib64 lines of the ~/. bash_profile file.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest