OS/Ubuntu

Ubuntu 24.04 NVIDIA CUDA Toolkit 13.1 Install / Uninstall

강서버 2026. 2. 25. 17:19
728x90
반응형

1. Install

 

2. Uninstall

 

 

Install CUDA Toolkit 13.1

 

(When installing in the following environment)

https://developer.nvidia.com/cuda-downloads

Operating System : Linux
Architecture           : x86_64
Distribution            : Ubuntu
Version                  : 24.04
Installer Type        : runfile (local)          

 

- Downloading CUDA file. (After running the terminal, use the wget command.)

(* Current version as of February 25, 2026)

$ wget https://developer.download.nvidia.com/compute/cuda/13.1.1/local_installers/cuda_13.1.1_590.48.01_linux.run

 

[ Execution log ]

gangserver@15ARH05-U1108:~$ wget https://developer.download.nvidia.com/compute/cuda/13.1.1/local_installers/cuda_13.1.1_590.48.01_linux.run
--2026-02-25 16:11:15--  https://developer.download.nvidia.com/compute/cuda/13.1.1/local_installers/cuda_13.1.1_590.48.01_linux.run
developer.download.nvidia.com (developer.download.nvidia.com) 해석 중... 23.77.217.192, 23.77.217.177
다음으로 연결 중: developer.download.nvidia.com (developer.download.nvidia.com)|23.77.217.192|:443... 연결했습니다.
HTTP 요청을 보냈습니다. 응답 기다리는 중... 200 OK
길이: 4304905023 (4.0G) [application/octet-stream]
저장 위치: ‘cuda_13.1.1_590.48.01_linux.run’

cuda_13.1.1_590.48.01_linux.run   100%[=============================================================>]   4.01G  6.74MB/s    / 4m 41s   

2026-02-25 16:15:58 (14.6 MB/s) - ‘cuda_13.1.1_590.48.01_linux.run’ 저장함 [4304905023/4304905023]

 

- Check the downloaded file.

$ ls -al

 

[ Execution log ]

gangserver@15ARH05-U1108:~$ ls -al
합계 4204024
drwxrwxr-x 2 gangserver gangserver       4096  2월 25 16:11 .
drwxrwxr-x 5 gangserver gangserver       4096  2월 25 16:13 ..
-rw-rw-r-- 1 gangserver gangserver 4304905023 12월 24 01:47 cuda_13.1.1_590.48.01_linux.run

 

 

- Install CUDA Toolkit 13.1

$ sudo sh cuda_13.1.1_590.48.01_linux.run

 

gangserver@15ARH05-U1108:~$ sudo sh cuda_13.1.1_590.48.01_linux.run
[sudo] gangserver 암호: 

 

[ Screen 1 ] : Enter accept and press enter.

┌──────────────────────────────────────────────────────────────────────────────┐
│  End User License Agreement                                                  │
│  --------------------------                                                  │
│                                                                              │
│  NVIDIA Software License Agreement and CUDA Supplement to                    │
│  Software License Agreement.                                                 │
│                                                                              │
│  The CUDA Toolkit End User License Agreement applies to the                  │
│  NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA                    │
│  Display Driver, NVIDIA Nsight tools (Visual Studio Edition),                │
│  and the associated documentation on CUDA APIs, programming                  │
│  model and development tools. If you do not agree with the                   │
│  terms and conditions of the license agreement, then do not                  │
│  download or use the software.                                               │
│                                                                              │
│  Last updated: January 12, 2025                                              │
│                                                                              │
│                                                                              │
│  Preface                                                                     │
│  -------                                                                     │
│                                                                              │
│──────────────────────────────────────────────────────────────────────────────│
│ Do you accept the above EULA? (accept/decline/quit):                         │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

 

 

[ Screen 2 ]

Case 1 : If the NVIDIA driver is not installed, click Install without making any changes.

┌──────────────────────────────────────────────────────────────────────────────┐
│ CUDA Installer                                                               │
│ - [X] Driver                                                                 │
│      [X] 590.48.01                                                           │
│ + [X] CUDA Toolkit 13.1                                                      │
│   [X] CUDA Documentation 13.1                                                │
│ - [ ] Kernel Objects                                                         │
│      [ ] nvidia-fs                                                           │
│   Options                                                                    │
│   Install                                                                    │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│ Up/Down: Move | Left/Right: Expand | 'Enter': Select | 'A': Advanced options │
└──────────────────────────────────────────────────────────────────────────────┘

 

Case 2 : If NVIDIA driver is installed, uncheck Driver and click Install.

┌──────────────────────────────────────────────────────────────────────────────┐
│ CUDA Installer                                                               │
│ - [ ] Driver                                                                 │
│      [ ] 590.48.01                                                           │
│ + [X] CUDA Toolkit 13.1                                                      │
│   [X] CUDA Documentation 13.1                                                │
│ - [ ] Kernel Objects                                                         │
│      [ ] nvidia-fs                                                           │
│   Options                                                                    │
│   Install                                                                    │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│ Up/Down: Move | Left/Right: Expand | 'Enter': Select | 'A': Advanced options │
└──────────────────────────────────────────────────────────────────────────────┘

 

[ Terminal log ]
===========
= Summary =
===========

Driver:   Not Selected
Toolkit:  Installed in /usr/local/cuda-13.1/

Please make sure that
 -   PATH includes /usr/local/cuda-13.1/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-13.1/lib64, or, add /usr/local/cuda-13.1/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-13.1/bin
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 590.00 is required for CUDA 13.1 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
    sudo <CudaInstaller>.run --silent --driver

Logfile is /var/log/cuda-installer.log

 

 

 

Uninstall CUDA Toolkit 13.1

 

$ cd /usr/local/cuda-13.1/bin
$ sudo ./cuda-uninstaller

 

[ Execution log ]

gangserver@15ARH05-U1108:~$ cd /usr/local/cuda-13.1/bin
gangserver@15ARH05-U1108:/usr/local/cuda-13.1/bin$ sudo ./cuda-uninstaller

 

[ Screen 1 ]

┌──────────────────────────────────────────────────────────────────────────────┐
│ CUDA Uninstaller                                                             │
│   [ ] CUDA_Toolkit_13.1                                                      │
│   [ ] CUDA_Documentation_13.1                                                │
│   Done                                                                       │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│ Up/Down: Move | 'Enter': Select                                              │
└──────────────────────────────────────────────────────────────────────────────┘

 

[ Screen 1 ] : Check Toolkit, Documentation and click Done.

┌──────────────────────────────────────────────────────────────────────────────┐
│ CUDA Uninstaller                                                             │
│   [X] CUDA_Toolkit_13.1                                                      │
│   [X] CUDA_Documentation_13.1                                                │
│   Done                                                                       │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│ Up/Down: Move | 'Enter': Select                                              │
└──────────────────────────────────────────────────────────────────────────────┘

 

[ Terminal Log ]
 Successfully uninstalled

 

 

 

728x90
반응형