Ubuntu – how to completely remove cuda toolkit/driver from ubuntu 12.04

driversnvidiauninstall

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

Best Answer

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.