Having two versions of CUDA GPU Toolkit SDK installed, how to remove one?

Solution 1:

To uninstall cuda-8-0:

  1. Uninstall CUDA
  2. Clean your local repo
  3. Clean up not needed CUDA dependencies

Do the following:

sudo apt-get remove --dry-run cuda-8-0
sudo apt-get autoclean
sudo apt-get autoremove

If you have cuDNN packages installed use:

dpkg -l | grep libcudnn*

To remove unwanted packages use:

dpkg --purge <package name>