Removing nvidia cuda toolkit and installing new oneHow do I completely wipe Cuda and CudNN off my ubuntu 16.04?Is my Cuda installation a mess?What are the dangers of upgrading kernel from 4.18.0-13 generic to 5?Unmet dependencies. Try 'apt-get -f install'Ubuntu (any version) and 650M CUDABumblebee on Ubuntu 13.04 with GeForce 750M and Driver 319Nvidia Optimus + CUDA + bumblebee + 14.04Can't get NVIDIA Driver or CUDA working on Optimus laptopInstalling Nvidia drivers and CUDAhow can I remove all my nvidia drivers?Problem in installing CUDA on Intel-Nvidia hybrid graphics [Ubuntu 14.04]nvidia-cuda-toolkit and nvidia driver versionNvidia-smi command not found after installing using CUDA ToolkitWhich CUDA toolkit version for nvidia-340.106?

Replacing Windows 7 security updates with anti-virus?

What is the chance of making a successful appeal to dismissal decision from a PhD program after failing the qualifying exam in the 2nd attempt?

Why does the negative sign arise in this thermodynamic relation?

Virginia employer terminated employee and wants signing bonus returned

Unreachable code, but reachable with exception

A question on the ultrafilter number

"One can do his homework in the library"

My story is written in English, but is set in my home country. What language should I use for the dialogue?

What are the best books to study Neural Networks from a purely mathematical perspective?

Why would one plane in this picture not have gear down yet?

Why don't MCU characters ever seem to have language issues?

The bar has been raised

String reversal in Python

What do you call the air that rushes into your car in the highway?

What are some noteworthy "mic-drop" moments in math?

How do anti-virus programs start at Windows boot?

Why the color red for the Republican Party

Good for you! in Russian

PTIJ: How can I halachically kill a vampire?

Can someone explain what is being said here in color publishing in the American Mathematical Monthly?

Fourth person (in Slavey language)

Why is this plane circling around the Lucknow airport every day?

Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?

What is the likely impact of grounding an entire aircraft series?



Removing nvidia cuda toolkit and installing new one


How do I completely wipe Cuda and CudNN off my ubuntu 16.04?Is my Cuda installation a mess?What are the dangers of upgrading kernel from 4.18.0-13 generic to 5?Unmet dependencies. Try 'apt-get -f install'Ubuntu (any version) and 650M CUDABumblebee on Ubuntu 13.04 with GeForce 750M and Driver 319Nvidia Optimus + CUDA + bumblebee + 14.04Can't get NVIDIA Driver or CUDA working on Optimus laptopInstalling Nvidia drivers and CUDAhow can I remove all my nvidia drivers?Problem in installing CUDA on Intel-Nvidia hybrid graphics [Ubuntu 14.04]nvidia-cuda-toolkit and nvidia driver versionNvidia-smi command not found after installing using CUDA ToolkitWhich CUDA toolkit version for nvidia-340.106?













21















a month ago I installed the cuda 5.5 on Ubuntu 14.04 (which is not supported for this version of Ubuntu version) , and I didn't do it well.



I want to remove what I've installed earlier and install new cuda 6.5 toolkit,



so, after typing this in the terminal: dpkg -l | grep -i nvidia



I get the following:



ii bbswitch-dkms 0.8-1~trustyppa1 all Interface for toggling the power on NVIDIA Optimus video cards
ii bumblebee 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support
ii bumblebee-nvidia 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support using the proprietary NVIDIA driver
ii libcublas5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA BLAS runtime library
ii libcuda1-331 331.38-0ubuntu7.1 amd64 NVIDIA CUDA runtime library
ii libcudart5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA runtime library
ii libcufft5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFT runtime library
ii libcufftw5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFTW runtime library
ii libcuinj64-5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA INJ runtime library (64-bit)
ii libcurand5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Random Numbers Generation runtime library
ii libcusparse5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Sparse Matrix runtime library
ii libnppc5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives core runtime library
ii libnppi5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for image processing runtime library
ii libnpps5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for signal processing runtime library
ii libnvtoolsext1:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Tools Extension
ii libnvvm2:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Compiler NVVM runtime library
ii nvidia-331 331.38-0ubuntu7.1 amd64 NVIDIA binary driver - version 331.38
ii nvidia-cuda-dev 5.5.22-3ubuntu1 amd64 NVIDIA CUDA development files
ii nvidia-cuda-doc 5.5.22-3ubuntu1 all NVIDIA CUDA and OpenCL documentation
ii nvidia-cuda-gdb 5.5.22-3ubuntu1 amd64 NVIDIA CUDA GDB
ii nvidia-cuda-toolkit 5.5.22-3ubuntu1 amd64 NVIDIA CUDA toolkit
ii nvidia-libopencl1-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL Driver and ICD Loader library
ii nvidia-nsight 5.5.22-3ubuntu1 amd64 NVIDIA Nsight Eclipse Edition
ii nvidia-opencl-dev:amd64 5.5.22-3ubuntu1 amd64 NVIDIA OpenCL development files
ii nvidia-opencl-icd-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL ICD
ii nvidia-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Profiler for CUDA and OpenCL
ii nvidia-settings 331.20-0ubuntu8 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-visual-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Visual Profiler
ii primus


I'd like to remove only what is needed to install the newest cuda toolkit. Pacakages like bumblebee I want to remain as they are.



Which packages should I remove and which should not remove to get this done?



Thanks










share|improve this question




























    21















    a month ago I installed the cuda 5.5 on Ubuntu 14.04 (which is not supported for this version of Ubuntu version) , and I didn't do it well.



    I want to remove what I've installed earlier and install new cuda 6.5 toolkit,



    so, after typing this in the terminal: dpkg -l | grep -i nvidia



    I get the following:



    ii bbswitch-dkms 0.8-1~trustyppa1 all Interface for toggling the power on NVIDIA Optimus video cards
    ii bumblebee 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support
    ii bumblebee-nvidia 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support using the proprietary NVIDIA driver
    ii libcublas5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA BLAS runtime library
    ii libcuda1-331 331.38-0ubuntu7.1 amd64 NVIDIA CUDA runtime library
    ii libcudart5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA runtime library
    ii libcufft5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFT runtime library
    ii libcufftw5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFTW runtime library
    ii libcuinj64-5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA INJ runtime library (64-bit)
    ii libcurand5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Random Numbers Generation runtime library
    ii libcusparse5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Sparse Matrix runtime library
    ii libnppc5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives core runtime library
    ii libnppi5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for image processing runtime library
    ii libnpps5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for signal processing runtime library
    ii libnvtoolsext1:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Tools Extension
    ii libnvvm2:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Compiler NVVM runtime library
    ii nvidia-331 331.38-0ubuntu7.1 amd64 NVIDIA binary driver - version 331.38
    ii nvidia-cuda-dev 5.5.22-3ubuntu1 amd64 NVIDIA CUDA development files
    ii nvidia-cuda-doc 5.5.22-3ubuntu1 all NVIDIA CUDA and OpenCL documentation
    ii nvidia-cuda-gdb 5.5.22-3ubuntu1 amd64 NVIDIA CUDA GDB
    ii nvidia-cuda-toolkit 5.5.22-3ubuntu1 amd64 NVIDIA CUDA toolkit
    ii nvidia-libopencl1-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL Driver and ICD Loader library
    ii nvidia-nsight 5.5.22-3ubuntu1 amd64 NVIDIA Nsight Eclipse Edition
    ii nvidia-opencl-dev:amd64 5.5.22-3ubuntu1 amd64 NVIDIA OpenCL development files
    ii nvidia-opencl-icd-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL ICD
    ii nvidia-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Profiler for CUDA and OpenCL
    ii nvidia-settings 331.20-0ubuntu8 amd64 Tool for configuring the NVIDIA graphics driver
    ii nvidia-visual-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Visual Profiler
    ii primus


    I'd like to remove only what is needed to install the newest cuda toolkit. Pacakages like bumblebee I want to remain as they are.



    Which packages should I remove and which should not remove to get this done?



    Thanks










    share|improve this question


























      21












      21








      21


      12






      a month ago I installed the cuda 5.5 on Ubuntu 14.04 (which is not supported for this version of Ubuntu version) , and I didn't do it well.



      I want to remove what I've installed earlier and install new cuda 6.5 toolkit,



      so, after typing this in the terminal: dpkg -l | grep -i nvidia



      I get the following:



      ii bbswitch-dkms 0.8-1~trustyppa1 all Interface for toggling the power on NVIDIA Optimus video cards
      ii bumblebee 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support
      ii bumblebee-nvidia 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support using the proprietary NVIDIA driver
      ii libcublas5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA BLAS runtime library
      ii libcuda1-331 331.38-0ubuntu7.1 amd64 NVIDIA CUDA runtime library
      ii libcudart5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA runtime library
      ii libcufft5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFT runtime library
      ii libcufftw5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFTW runtime library
      ii libcuinj64-5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA INJ runtime library (64-bit)
      ii libcurand5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Random Numbers Generation runtime library
      ii libcusparse5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Sparse Matrix runtime library
      ii libnppc5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives core runtime library
      ii libnppi5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for image processing runtime library
      ii libnpps5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for signal processing runtime library
      ii libnvtoolsext1:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Tools Extension
      ii libnvvm2:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Compiler NVVM runtime library
      ii nvidia-331 331.38-0ubuntu7.1 amd64 NVIDIA binary driver - version 331.38
      ii nvidia-cuda-dev 5.5.22-3ubuntu1 amd64 NVIDIA CUDA development files
      ii nvidia-cuda-doc 5.5.22-3ubuntu1 all NVIDIA CUDA and OpenCL documentation
      ii nvidia-cuda-gdb 5.5.22-3ubuntu1 amd64 NVIDIA CUDA GDB
      ii nvidia-cuda-toolkit 5.5.22-3ubuntu1 amd64 NVIDIA CUDA toolkit
      ii nvidia-libopencl1-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL Driver and ICD Loader library
      ii nvidia-nsight 5.5.22-3ubuntu1 amd64 NVIDIA Nsight Eclipse Edition
      ii nvidia-opencl-dev:amd64 5.5.22-3ubuntu1 amd64 NVIDIA OpenCL development files
      ii nvidia-opencl-icd-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL ICD
      ii nvidia-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Profiler for CUDA and OpenCL
      ii nvidia-settings 331.20-0ubuntu8 amd64 Tool for configuring the NVIDIA graphics driver
      ii nvidia-visual-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Visual Profiler
      ii primus


      I'd like to remove only what is needed to install the newest cuda toolkit. Pacakages like bumblebee I want to remain as they are.



      Which packages should I remove and which should not remove to get this done?



      Thanks










      share|improve this question
















      a month ago I installed the cuda 5.5 on Ubuntu 14.04 (which is not supported for this version of Ubuntu version) , and I didn't do it well.



      I want to remove what I've installed earlier and install new cuda 6.5 toolkit,



      so, after typing this in the terminal: dpkg -l | grep -i nvidia



      I get the following:



      ii bbswitch-dkms 0.8-1~trustyppa1 all Interface for toggling the power on NVIDIA Optimus video cards
      ii bumblebee 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support
      ii bumblebee-nvidia 3.2.1-90~trustyppa1 amd64 NVIDIA Optimus support using the proprietary NVIDIA driver
      ii libcublas5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA BLAS runtime library
      ii libcuda1-331 331.38-0ubuntu7.1 amd64 NVIDIA CUDA runtime library
      ii libcudart5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA runtime library
      ii libcufft5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFT runtime library
      ii libcufftw5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA FFTW runtime library
      ii libcuinj64-5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA INJ runtime library (64-bit)
      ii libcurand5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Random Numbers Generation runtime library
      ii libcusparse5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Sparse Matrix runtime library
      ii libnppc5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives core runtime library
      ii libnppi5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for image processing runtime library
      ii libnpps5.5:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Performance Primitives for signal processing runtime library
      ii libnvtoolsext1:amd64 5.5.22-3ubuntu1 amd64 NVIDIA Tools Extension
      ii libnvvm2:amd64 5.5.22-3ubuntu1 amd64 NVIDIA CUDA Compiler NVVM runtime library
      ii nvidia-331 331.38-0ubuntu7.1 amd64 NVIDIA binary driver - version 331.38
      ii nvidia-cuda-dev 5.5.22-3ubuntu1 amd64 NVIDIA CUDA development files
      ii nvidia-cuda-doc 5.5.22-3ubuntu1 all NVIDIA CUDA and OpenCL documentation
      ii nvidia-cuda-gdb 5.5.22-3ubuntu1 amd64 NVIDIA CUDA GDB
      ii nvidia-cuda-toolkit 5.5.22-3ubuntu1 amd64 NVIDIA CUDA toolkit
      ii nvidia-libopencl1-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL Driver and ICD Loader library
      ii nvidia-nsight 5.5.22-3ubuntu1 amd64 NVIDIA Nsight Eclipse Edition
      ii nvidia-opencl-dev:amd64 5.5.22-3ubuntu1 amd64 NVIDIA OpenCL development files
      ii nvidia-opencl-icd-331 331.38-0ubuntu7.1 amd64 NVIDIA OpenCL ICD
      ii nvidia-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Profiler for CUDA and OpenCL
      ii nvidia-settings 331.20-0ubuntu8 amd64 Tool for configuring the NVIDIA graphics driver
      ii nvidia-visual-profiler 5.5.22-3ubuntu1 amd64 NVIDIA Visual Profiler
      ii primus


      I'd like to remove only what is needed to install the newest cuda toolkit. Pacakages like bumblebee I want to remain as they are.



      Which packages should I remove and which should not remove to get this done?



      Thanks







      drivers nvidia uninstall bumblebee cuda






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 29 '14 at 10:56









      Mitch

      85.1k14173231




      85.1k14173231










      asked Sep 29 '14 at 10:55









      tomtomtomtom

      231138




      231138




















          3 Answers
          3






          active

          oldest

          votes


















          16














          This method will give a complete removal of Cuda:



          Simple



          remove the CUDA files in /usr/local/cuda-5.0




          Advanced




          Uninstall just nvidia-cuda-toolkit



          sudo apt-get remove nvidia-cuda-toolkit



          Uninstall nvidia-cuda-toolkit and it's dependencies



          sudo apt-get remove --auto-remove nvidia-cuda-toolkit



          Purging config/data



          sudo apt-get purge nvidia-cuda-toolkit
          or
          sudo apt-get purge --auto-remove nvidia-cuda-toolkit



          Additionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. 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




















          • 1





            This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

            – e-sushi
            Apr 4 '15 at 23:14






          • 1





            ignore this answer, this is terrible advice.

            – marbel
            Apr 6 '18 at 17:18











          • @marbel is there a better way?

            – frank
            Apr 11 '18 at 18:14






          • 2





            You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

            – marbel
            Apr 11 '18 at 23:03












          • @marbel, can you explain why we shouldn't use apt-get?

            – Nagabhushan S N
            Jan 14 at 6:46



















          15














          recently I wanted to remove Cuda from my Ubuntu, I founded there is a prepared file for doing this!! (I guess this method is standard one)



          first of all change directory to cuda path,which in default it is /usr/local/cuda-9.0/bin, you can change the directory with using the below command:



           cd /usr/local/cuda-9.0/bin


          in the directory there is a file which it's name is uninstall_cuda_9.0.pl(please pay attention that my cuda version is 9.0) , so you just need to run uninstall_cuda_9.0.pl to remove cuda completely from your system!!



          sudo ./uninstall_cuda_9.0.pl


          After entering your password the cuda files are going to earase . ( it may take a few minutes to complete)



          NOTE: How to know which cuda has installed on my ubuntu?
          You could check this thing by the nvcc command, as you can see in the last line of the result our cuda version is 9.0



          nvcc --version


          result of this command will be like as below:



          nvcc: NVIDIA (R) Cuda compiler driver
          Copyright (c) 2005-2017 NVIDIA Corporation
          Built on Fri_Sep__1_21:08:03_CDT_2017
          Cuda compilation tools, release 9.0, V9.0.176





          share|improve this answer




















          • 2





            for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

            – kRazzy R
            Feb 18 '18 at 19:00


















          7














          Make sure the method you use to install cuda toolkit. This answer is for whom use deb files to install cuda. I have no idea if this works for .run files.



          sudo apt-get autoremove --purge cuda 


          This can clear the cuda toolkit clearly. You can check that the folder /usr/local/cuda gone. And this command is the best choice to remove apt installed app.



          But when you reinstall another version of cuda, you must use:



          sudo apt-get install cuda-x.x


          the version number must be included. I tried to install another version of cuda after the remove of the previous version, I find that sudo apt-get install cuda will still install the previous one.






          share|improve this answer























          • Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

            – coolscitist
            Jun 18 '18 at 16:55












          • @coolscitist Thanks for your comment. Both works. I have checked.

            – Carol
            Jun 19 '18 at 0:58







          • 1





            shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

            – GyuHyeon Choi
            Jun 21 '18 at 6:45











          • @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

            – Carol
            Jun 23 '18 at 8:49










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f530043%2fremoving-nvidia-cuda-toolkit-and-installing-new-one%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          16














          This method will give a complete removal of Cuda:



          Simple



          remove the CUDA files in /usr/local/cuda-5.0




          Advanced




          Uninstall just nvidia-cuda-toolkit



          sudo apt-get remove nvidia-cuda-toolkit



          Uninstall nvidia-cuda-toolkit and it's dependencies



          sudo apt-get remove --auto-remove nvidia-cuda-toolkit



          Purging config/data



          sudo apt-get purge nvidia-cuda-toolkit
          or
          sudo apt-get purge --auto-remove nvidia-cuda-toolkit



          Additionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. 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




















          • 1





            This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

            – e-sushi
            Apr 4 '15 at 23:14






          • 1





            ignore this answer, this is terrible advice.

            – marbel
            Apr 6 '18 at 17:18











          • @marbel is there a better way?

            – frank
            Apr 11 '18 at 18:14






          • 2





            You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

            – marbel
            Apr 11 '18 at 23:03












          • @marbel, can you explain why we shouldn't use apt-get?

            – Nagabhushan S N
            Jan 14 at 6:46
















          16














          This method will give a complete removal of Cuda:



          Simple



          remove the CUDA files in /usr/local/cuda-5.0




          Advanced




          Uninstall just nvidia-cuda-toolkit



          sudo apt-get remove nvidia-cuda-toolkit



          Uninstall nvidia-cuda-toolkit and it's dependencies



          sudo apt-get remove --auto-remove nvidia-cuda-toolkit



          Purging config/data



          sudo apt-get purge nvidia-cuda-toolkit
          or
          sudo apt-get purge --auto-remove nvidia-cuda-toolkit



          Additionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. 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




















          • 1





            This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

            – e-sushi
            Apr 4 '15 at 23:14






          • 1





            ignore this answer, this is terrible advice.

            – marbel
            Apr 6 '18 at 17:18











          • @marbel is there a better way?

            – frank
            Apr 11 '18 at 18:14






          • 2





            You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

            – marbel
            Apr 11 '18 at 23:03












          • @marbel, can you explain why we shouldn't use apt-get?

            – Nagabhushan S N
            Jan 14 at 6:46














          16












          16








          16







          This method will give a complete removal of Cuda:



          Simple



          remove the CUDA files in /usr/local/cuda-5.0




          Advanced




          Uninstall just nvidia-cuda-toolkit



          sudo apt-get remove nvidia-cuda-toolkit



          Uninstall nvidia-cuda-toolkit and it's dependencies



          sudo apt-get remove --auto-remove nvidia-cuda-toolkit



          Purging config/data



          sudo apt-get purge nvidia-cuda-toolkit
          or
          sudo apt-get purge --auto-remove nvidia-cuda-toolkit



          Additionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. 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















          This method will give a complete removal of Cuda:



          Simple



          remove the CUDA files in /usr/local/cuda-5.0




          Advanced




          Uninstall just nvidia-cuda-toolkit



          sudo apt-get remove nvidia-cuda-toolkit



          Uninstall nvidia-cuda-toolkit and it's dependencies



          sudo apt-get remove --auto-remove nvidia-cuda-toolkit



          Purging config/data



          sudo apt-get purge nvidia-cuda-toolkit
          or
          sudo apt-get purge --auto-remove nvidia-cuda-toolkit



          Additionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. 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














          share|improve this answer



          share|improve this answer








          edited Sep 29 '14 at 11:24

























          answered Sep 29 '14 at 11:14







          user271219














          • 1





            This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

            – e-sushi
            Apr 4 '15 at 23:14






          • 1





            ignore this answer, this is terrible advice.

            – marbel
            Apr 6 '18 at 17:18











          • @marbel is there a better way?

            – frank
            Apr 11 '18 at 18:14






          • 2





            You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

            – marbel
            Apr 11 '18 at 23:03












          • @marbel, can you explain why we shouldn't use apt-get?

            – Nagabhushan S N
            Jan 14 at 6:46













          • 1





            This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

            – e-sushi
            Apr 4 '15 at 23:14






          • 1





            ignore this answer, this is terrible advice.

            – marbel
            Apr 6 '18 at 17:18











          • @marbel is there a better way?

            – frank
            Apr 11 '18 at 18:14






          • 2





            You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

            – marbel
            Apr 11 '18 at 23:03












          • @marbel, can you explain why we shouldn't use apt-get?

            – Nagabhushan S N
            Jan 14 at 6:46








          1




          1





          This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

          – e-sushi
          Apr 4 '15 at 23:14





          This does not remove the files for me. In fact, is seems as if the usual removal does not clean up remaining kernel modules…

          – e-sushi
          Apr 4 '15 at 23:14




          1




          1





          ignore this answer, this is terrible advice.

          – marbel
          Apr 6 '18 at 17:18





          ignore this answer, this is terrible advice.

          – marbel
          Apr 6 '18 at 17:18













          @marbel is there a better way?

          – frank
          Apr 11 '18 at 18:14





          @marbel is there a better way?

          – frank
          Apr 11 '18 at 18:14




          2




          2





          You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

          – marbel
          Apr 11 '18 at 23:03






          You should just remove and reinstall cuda. Never install from apt-get, always use the network version of the .deb package from nvidia's site. I had to reinstall my OS entirely to make it work, it was a mess...

          – marbel
          Apr 11 '18 at 23:03














          @marbel, can you explain why we shouldn't use apt-get?

          – Nagabhushan S N
          Jan 14 at 6:46






          @marbel, can you explain why we shouldn't use apt-get?

          – Nagabhushan S N
          Jan 14 at 6:46














          15














          recently I wanted to remove Cuda from my Ubuntu, I founded there is a prepared file for doing this!! (I guess this method is standard one)



          first of all change directory to cuda path,which in default it is /usr/local/cuda-9.0/bin, you can change the directory with using the below command:



           cd /usr/local/cuda-9.0/bin


          in the directory there is a file which it's name is uninstall_cuda_9.0.pl(please pay attention that my cuda version is 9.0) , so you just need to run uninstall_cuda_9.0.pl to remove cuda completely from your system!!



          sudo ./uninstall_cuda_9.0.pl


          After entering your password the cuda files are going to earase . ( it may take a few minutes to complete)



          NOTE: How to know which cuda has installed on my ubuntu?
          You could check this thing by the nvcc command, as you can see in the last line of the result our cuda version is 9.0



          nvcc --version


          result of this command will be like as below:



          nvcc: NVIDIA (R) Cuda compiler driver
          Copyright (c) 2005-2017 NVIDIA Corporation
          Built on Fri_Sep__1_21:08:03_CDT_2017
          Cuda compilation tools, release 9.0, V9.0.176





          share|improve this answer




















          • 2





            for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

            – kRazzy R
            Feb 18 '18 at 19:00















          15














          recently I wanted to remove Cuda from my Ubuntu, I founded there is a prepared file for doing this!! (I guess this method is standard one)



          first of all change directory to cuda path,which in default it is /usr/local/cuda-9.0/bin, you can change the directory with using the below command:



           cd /usr/local/cuda-9.0/bin


          in the directory there is a file which it's name is uninstall_cuda_9.0.pl(please pay attention that my cuda version is 9.0) , so you just need to run uninstall_cuda_9.0.pl to remove cuda completely from your system!!



          sudo ./uninstall_cuda_9.0.pl


          After entering your password the cuda files are going to earase . ( it may take a few minutes to complete)



          NOTE: How to know which cuda has installed on my ubuntu?
          You could check this thing by the nvcc command, as you can see in the last line of the result our cuda version is 9.0



          nvcc --version


          result of this command will be like as below:



          nvcc: NVIDIA (R) Cuda compiler driver
          Copyright (c) 2005-2017 NVIDIA Corporation
          Built on Fri_Sep__1_21:08:03_CDT_2017
          Cuda compilation tools, release 9.0, V9.0.176





          share|improve this answer




















          • 2





            for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

            – kRazzy R
            Feb 18 '18 at 19:00













          15












          15








          15







          recently I wanted to remove Cuda from my Ubuntu, I founded there is a prepared file for doing this!! (I guess this method is standard one)



          first of all change directory to cuda path,which in default it is /usr/local/cuda-9.0/bin, you can change the directory with using the below command:



           cd /usr/local/cuda-9.0/bin


          in the directory there is a file which it's name is uninstall_cuda_9.0.pl(please pay attention that my cuda version is 9.0) , so you just need to run uninstall_cuda_9.0.pl to remove cuda completely from your system!!



          sudo ./uninstall_cuda_9.0.pl


          After entering your password the cuda files are going to earase . ( it may take a few minutes to complete)



          NOTE: How to know which cuda has installed on my ubuntu?
          You could check this thing by the nvcc command, as you can see in the last line of the result our cuda version is 9.0



          nvcc --version


          result of this command will be like as below:



          nvcc: NVIDIA (R) Cuda compiler driver
          Copyright (c) 2005-2017 NVIDIA Corporation
          Built on Fri_Sep__1_21:08:03_CDT_2017
          Cuda compilation tools, release 9.0, V9.0.176





          share|improve this answer















          recently I wanted to remove Cuda from my Ubuntu, I founded there is a prepared file for doing this!! (I guess this method is standard one)



          first of all change directory to cuda path,which in default it is /usr/local/cuda-9.0/bin, you can change the directory with using the below command:



           cd /usr/local/cuda-9.0/bin


          in the directory there is a file which it's name is uninstall_cuda_9.0.pl(please pay attention that my cuda version is 9.0) , so you just need to run uninstall_cuda_9.0.pl to remove cuda completely from your system!!



          sudo ./uninstall_cuda_9.0.pl


          After entering your password the cuda files are going to earase . ( it may take a few minutes to complete)



          NOTE: How to know which cuda has installed on my ubuntu?
          You could check this thing by the nvcc command, as you can see in the last line of the result our cuda version is 9.0



          nvcc --version


          result of this command will be like as below:



          nvcc: NVIDIA (R) Cuda compiler driver
          Copyright (c) 2005-2017 NVIDIA Corporation
          Built on Fri_Sep__1_21:08:03_CDT_2017
          Cuda compilation tools, release 9.0, V9.0.176






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 22 mins ago

























          answered Dec 11 '17 at 10:35









          saeed masoomisaeed masoomi

          25124




          25124







          • 2





            for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

            – kRazzy R
            Feb 18 '18 at 19:00












          • 2





            for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

            – kRazzy R
            Feb 18 '18 at 19:00







          2




          2





          for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

          – kRazzy R
          Feb 18 '18 at 19:00





          for me this sudo ./uninstall_cuda_9.0.pl file is not there what to do?

          – kRazzy R
          Feb 18 '18 at 19:00











          7














          Make sure the method you use to install cuda toolkit. This answer is for whom use deb files to install cuda. I have no idea if this works for .run files.



          sudo apt-get autoremove --purge cuda 


          This can clear the cuda toolkit clearly. You can check that the folder /usr/local/cuda gone. And this command is the best choice to remove apt installed app.



          But when you reinstall another version of cuda, you must use:



          sudo apt-get install cuda-x.x


          the version number must be included. I tried to install another version of cuda after the remove of the previous version, I find that sudo apt-get install cuda will still install the previous one.






          share|improve this answer























          • Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

            – coolscitist
            Jun 18 '18 at 16:55












          • @coolscitist Thanks for your comment. Both works. I have checked.

            – Carol
            Jun 19 '18 at 0:58







          • 1





            shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

            – GyuHyeon Choi
            Jun 21 '18 at 6:45











          • @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

            – Carol
            Jun 23 '18 at 8:49















          7














          Make sure the method you use to install cuda toolkit. This answer is for whom use deb files to install cuda. I have no idea if this works for .run files.



          sudo apt-get autoremove --purge cuda 


          This can clear the cuda toolkit clearly. You can check that the folder /usr/local/cuda gone. And this command is the best choice to remove apt installed app.



          But when you reinstall another version of cuda, you must use:



          sudo apt-get install cuda-x.x


          the version number must be included. I tried to install another version of cuda after the remove of the previous version, I find that sudo apt-get install cuda will still install the previous one.






          share|improve this answer























          • Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

            – coolscitist
            Jun 18 '18 at 16:55












          • @coolscitist Thanks for your comment. Both works. I have checked.

            – Carol
            Jun 19 '18 at 0:58







          • 1





            shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

            – GyuHyeon Choi
            Jun 21 '18 at 6:45











          • @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

            – Carol
            Jun 23 '18 at 8:49













          7












          7








          7







          Make sure the method you use to install cuda toolkit. This answer is for whom use deb files to install cuda. I have no idea if this works for .run files.



          sudo apt-get autoremove --purge cuda 


          This can clear the cuda toolkit clearly. You can check that the folder /usr/local/cuda gone. And this command is the best choice to remove apt installed app.



          But when you reinstall another version of cuda, you must use:



          sudo apt-get install cuda-x.x


          the version number must be included. I tried to install another version of cuda after the remove of the previous version, I find that sudo apt-get install cuda will still install the previous one.






          share|improve this answer













          Make sure the method you use to install cuda toolkit. This answer is for whom use deb files to install cuda. I have no idea if this works for .run files.



          sudo apt-get autoremove --purge cuda 


          This can clear the cuda toolkit clearly. You can check that the folder /usr/local/cuda gone. And this command is the best choice to remove apt installed app.



          But when you reinstall another version of cuda, you must use:



          sudo apt-get install cuda-x.x


          the version number must be included. I tried to install another version of cuda after the remove of the previous version, I find that sudo apt-get install cuda will still install the previous one.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 23 '17 at 3:56









          CarolCarol

          7112




          7112












          • Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

            – coolscitist
            Jun 18 '18 at 16:55












          • @coolscitist Thanks for your comment. Both works. I have checked.

            – Carol
            Jun 19 '18 at 0:58







          • 1





            shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

            – GyuHyeon Choi
            Jun 21 '18 at 6:45











          • @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

            – Carol
            Jun 23 '18 at 8:49

















          • Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

            – coolscitist
            Jun 18 '18 at 16:55












          • @coolscitist Thanks for your comment. Both works. I have checked.

            – Carol
            Jun 19 '18 at 0:58







          • 1





            shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

            – GyuHyeon Choi
            Jun 21 '18 at 6:45











          • @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

            – Carol
            Jun 23 '18 at 8:49
















          Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

          – coolscitist
          Jun 18 '18 at 16:55






          Should be sudo apt-get install x-x eg: sudo apt-get install cuda-9-0

          – coolscitist
          Jun 18 '18 at 16:55














          @coolscitist Thanks for your comment. Both works. I have checked.

          – Carol
          Jun 19 '18 at 0:58






          @coolscitist Thanks for your comment. Both works. I have checked.

          – Carol
          Jun 19 '18 at 0:58





          1




          1





          shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

          – GyuHyeon Choi
          Jun 21 '18 at 6:45





          shouldn't it be something like cuda*? E.g., $ sudo apt-get --purge remove cuda*

          – GyuHyeon Choi
          Jun 21 '18 at 6:45













          @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

          – Carol
          Jun 23 '18 at 8:49





          @GyuHyeonChoi Good suggestion. Did that work for you? If it is, that's a good option.

          – Carol
          Jun 23 '18 at 8:49

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f530043%2fremoving-nvidia-cuda-toolkit-and-installing-new-one%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org