Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on a Ubuntu 12.04 32bit. I have installed Cuda driver and toolkit, and now I want to remove them.

I have installed manually so they does not appear in synaptic/apt.

I have removed the driver from "Additional Driver". Well, they are inactive but still in the list. How to completely remove them?

Then, I have the toolkit in /usr/local/cuda, how to remove it completely and safely? I don't think that rm -r /usr/local/cuda is the right way..

some advice

share|improve this question
How did you install? – Mitch May 27 '13 at 11:33
sudo sh , following this post: . – nkint May 27 '13 at 12:05
up vote 5 down vote accepted

I just ran the installer and at the end it says

To uninstall CUDA, remove the CUDA files in /usr/local/cuda-5.0

So you should be fine simply removing it.

share|improve this answer

According to (my formatting):

"If you want to totally remove Cuda, juste delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders:

rm -r ~/NVIDIA_GPU_Computing_SDK
sudo rm -r /opt/cuda

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.