How to uninstall Cuda 8.0 on RHEL 6

The installation guide says there is a script /usr/local/cuda-8.0/bin/ but that doesn’t exist.

I searched uninstall and anything ending in ‘.pl’ in /usr/local/cuda but can’t find anything useful.

perhaps because you used the package manager method for install. In that case you need to use the package manager method for uninstall, eg. something like yum remove cuda:

I have done CUDA 8.0 runfile installs on both Ubuntu and RHEL, and it definitely places a file called or in /usr/local/cuda/bin

Yes, i installed using the local repo method. So after installing the repository, I did a

yum install cuda

But now if I do a yum erase cuda it only removes cuda, not all the cuda / nvidia rpms that were installed.

Probably a separate issue.

Your question appeared to be about why no .pl files were present.

That is due to the install method you have chosen

I’m not sure what exactly will be removed in the package manager “uninstall” method. It probably depends on package dependencies. I’m also not sure what you mean by “it only removes cuda”.

yum is a package manager. It installs or removes packages. So I guess what you mean is that it didn’t remove all the packages you thought it should.

My question referred to the user manual that tells me to use the perl script to remove cuda. There is no mention of how it was installed, so I assumed it would work for me.

When I did a yum install cuda, a lot of RPMs were installed. But when I uninstall cuda, only the cuda RPM is offered for uninstall.

So the question is still how to uninstall cuda.

Based on the documentation, I assumed the perl script would issue the appropriate yum commands to undo what was done during install. Barring that, I would think that dependencies in the cuda rpm would uninstall all the pieces the install did.

Section 4.6 of the linux install guide is where those perl scripts are mentioned for uninstall.

Section 4 of the linux install guide is title “runfile installation”.

Everything in section 4 pertains to Runfile installation.

If you chose a package manager install method instead, the relevant instructions are in section 3.

Yes, I am aware that section 3 contains no Uninstall section. That does not mean that the section 4 uninstall section pertains to section 3.

Thanks, I missed that these instructions were part of the runfile installation.

And based on the RHEL instructions, one would assume the cuda RPM would have all the needed dependencies to remove the pachages it had installed. But it doesn’t. Looks like I’ll have to go to the yum log to see what was installed along with cuda, then uninstall one by one.

Nvida does not provide uninstall scripts, butI find uninstall cuda way, The details of nVIDIA software are too bad to compare with hardware, I deepened the good impression of AMD…+1

yum erase cuda-license-8-0-8.0.61-1.x86_64 xorg-x11-proto-devel-7.7-13.el7.noarch libXrender-0.9.8-2.1.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libXi-1.7.4-2.el7.x86_64 cuda-driver-dev-8-0-8.0.61-1.x86_64 libICE-1.0.9-2.el7.x86_64 libSM-1.2.2-2.el7.x86_64 libpng-1.5.13-7.el7_2.x86_64 libXt-1.1.4-6.1.el7.x86_64 libICE-devel-1.0.9-2.el7.x86_64 cuda-cusparse-8-0-8.0.61-1.x86_64 cuda-cusparse-dev-8-0-8.0.61-1.x86_64 cuda-cufft-8-0-8.0.61-1.x86_64 cuda-cufft-dev-8-0-8.0.61-1.x86_64 cuda-nvgraph-8-0-8.0.61-1.x86_64 cuda-nvgraph-dev-8-0-8.0.61-1.x86_64 cuda-cudart-8-0-8.0.61-1.x86_64 cuda-cudart-dev-8-0-8.0.61-1.x86_64 cuda-cublas-8-0- cuda-cublas-dev-8-0- cuda-nvrtc-8-0-8.0.61-1.x86_64 cuda-nvrtc-dev-8-0-8.0.61-1.x86_64 cuda-curand-8-0-8.0.61-1.x86_64 cuda-curand-dev-8-0-8.0.61-1.x86_64 cuda-misc-headers-8-0-8.0.61-1.x86_64 cuda-npp-8-0-8.0.61-1.x86_64 cuda-npp-dev-8-0-8.0.61-1.x86_64 cuda-nvml-dev-8-0-8.0.61-1.x86_64 cuda-cusolver-8-0-8.0.61-1.x86_64 cuda-cusolver-dev-8-0-8.0.61-1.x86_64 libxslt-1.1.28-5.el7.x86_64 nvidia-kmod-375.26-2.el7.x86_64 xorg-x11-drv-nvidia-375.26-1.el7.x86_64 gl-manpages-1.1-7.20130122.el7.noarch atk-2.14.0-1.el7.x86_64 libXcomposite-0.4.4-4.1.el7.x86_64 mesa-libglapi-11.2.2-2.20160614.el7.x86_64 mesa-libGL-11.2.2-2.20160614.el7.x86_64 mesa-libGLU-9.0.0-4.el7.x86_64 freeglut-2.8.1-3.el7.x86_64 python-lxml-3.2.1-4.el7.x86_64 python-javapackages-3.4.1-11.el7.noarch javapackages-tools-3.4.1-11.el7.noarch libSM-devel-1.2.2-2.el7.x86_64 libXmu-1.1.2-2.el7.x86_64 giflib-4.1.6-9.el7.x86_64 libXtst-1.2.2-2.1.el7.x86_64 jasper-libs-1.900.1-30.el7_3.x86_64 libXcursor-1.1.14-2.1.el7.x86_64 libXrandr-1.4.2-2.el7.x86_64 libXau-devel-1.0.8-2.1.el7.x86_64 libxcb-devel-1.11-4.el7.x86_64 libX11-devel-1.6.3-3.el7.x86_64 libXext-devel-1.3.3-3.el7.x86_64 libXfixes-devel-5.0.1-2.1.el7.x86_64 libXdamage-devel-1.1.4-4.1.el7.x86_64 libXi-devel-1.7.4-2.el7.x86_64 libXxf86vm-devel-1.1.3-2.1.el7.x86_64 libXt-devel-1.1.4-6.1.el7.x86_64 libXmu-devel-1.1.2-2.el7.x86_64 copy-jdk-configs-1.2-1.el7.noarch libthai-0.1.14-9.el7.x86_64 avahi-libs-0.6.31-17.el7.x86_64 cups-libs-1.6.3-26.el7.x86_64 libXinerama-1.1.3-2.1.el7.x86_64 tzdata-java-2017b-1.el7.noarch ttmkfdir-3.0.9-42.el7.x86_64 jbigkit-libs-2.0-11.el7.x86_64 libtiff-4.0.3-27.el7_3.x86_64 gdk-pixbuf2-2.31.6-3.el7.x86_64 hicolor-icon-theme-0.12-7.el7.noarch libstdc++-devel-4.8.5-11.el7.x86_64 gcc-c++-4.8.5-11.el7.x86_64 cuda-core-8-0-8.0.61-1.x86_64 cuda-command-line-tools-8-0-8.0.61-1.x86_64 xorg-x11-font-utils-7.5-20.el7.x86_64 libdrm-amdgpu-pro-devel-2.4.70-465504.el7.x86_64 mesa-libGL-devel-11.2.2-2.20160614.el7.x86_64 mesa-libGLU-devel-9.0.0-4.el7.x86_64 freeglut-devel-2.8.1-3.el7.x86_64 cuda-samples-8-0-8.0.61-1.x86_64 cuda-documentation-8-0-8.0.61-1.x86_64 graphite2-1.3.10-1.el7_3.x86_64 harfbuzz-0.9.36-1.el7.x86_64 fontpackages-filesystem-1.44-8.el7.noarch fontconfig-2.10.95-10.el7.x86_64 cairo-1.14.2-1.el7.x86_64 libXft-2.3.2-2.el7.x86_64 pango-1.36.8-2.el7.x86_64 gtk2-2.24.28-8.el7.x86_64 xorg-x11-fonts-Type1-7.5-9.el7.noarch libvdpau-1.1-2.el7.x86_64 xorg-x11-drv-nvidia-libs-375.26-1.el7.x86_64 xorg-x11-drv-nvidia-gl-375.26-1.el7.x86_64 xorg-x11-drv-nvidia-devel-375.26-1.el7.x86_64 cuda-drivers-375.26-1.x86_64 cuda-runtime-8-0-8.0.61-1.x86_64 cuda-demo-suite-8-0-8.0.61-1.x86_64 lksctp-tools-1.0.17-2.el7.x86_64 java-1.8.0-openjdk-headless- java-1.8.0-openjdk- cuda-visual-tools-8-0-8.0.61-1.x86_64 cuda-toolkit-8-0-8.0.61-1.x86_64 cuda-8-0-8.0.61-1.x86_64 cuda-8.0.61-1.x86_64