3

I need cudnn 7 for my tensorflow version. But I can't delete cudnn.

terminal

Update:

daniel@tales:~$ rm -r /usr/local/cuda-6.0/lib64/libcudnn*
rm: can't delete '/usr/local/cuda-6.0/lib64/libcudnn*': didn't find this catalog
``
James_Hames
  • 59
  • 1
  • 1
  • 7
  • This answer [here](https://askubuntu.com/a/1311956/1161847) worked for me. – Sanket Patel Mar 15 '21 at 03:30
  • if you install using the deb file - you can open original installation - and using software installer - you can click the red rubbish bin to delete it. – johndpope Dec 06 '22 at 04:49

3 Answers3

4

If you installed cudnn with dpkg, you can simply dpkg --remove each cudnn package. You can check which cudnn packages you installed with dpkg using dpkg -l | grep cudnn.

Neo
  • 41
  • 2
1

There are a few posts related to this. Here I'm posting for your help. Try below options:

  1. Just delete all related files both in /usr/local/lib and in /usr/local/cuda/lib64 That's work for me.

  2. In Linux, it looks like this:

    rm -r /usr/local/cuda-xxx/lib64/libcudnn*

cuda-xxx stand for cuda version: e.g 7.5 or 8.0

run one of the following commands:

sudo rm -r /usr/local/cuda-7.5/lib64/libcudnn*

or

sudo rm -r /usr/local/cuda-8.0/lib64/libcudnn*

The details can be found here link-1, link-2, link-3, link-4

user1410665
  • 719
  • 7
  • 23
0

I checked version with:

dpkg -l | grep cuda

Should appears to you a list of libcudnn files (in my case I had libcudnn7 libcudnn7-dev).

After checked your version, simply:

sudo dpkg --remove libcudnn7 libcudnn7-dev # in my situation

But the rule is:

sudo dpkg --remove NAME_OF_YOUR_PACKAGE

After these:

sudo apt-get autoremove
sudo apt-get autoclean

For others details: NVIDIA - Forum

SimoneT
  • 23
  • 1
  • 3