What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To develop with CUDA on Linux, install a compatible NVIDIA driver separately, then install NVIDIA’s recommended cuda-toolkit package. For Ubuntu or Debian using NVIDIA’s network repository, the core sequence is to install the CUDA keyring, run apt update, install cuda-toolkit, and add the toolkit’s bin directory to PATH. CUDA 13.5 is the current Linux toolkit documented by NVIDIA; since CUDA 13.4, installing the toolkit does not install a driver.

The toolkit includes nvcc and many CUDA-X libraries, but not every CUDA-X product. Libraries such as cuDNN and NCCL need separate installation. This guide covers prerequisites, Ubuntu and other Linux package-manager paths, version pinning, driver compatibility, verification, and common setup errors.

What do you need before installing CUDA on Linux?

You need a CUDA-capable NVIDIA GPU, a Linux distribution supported by the CUDA Toolkit release you intend to install, and a compatible NVIDIA driver. For development, you also need a supported host C/C++ compiler; a compiler is not required merely to run an already-built CUDA application.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

CUDA is NVIDIA’s platform for accelerated computing. The CUDA Toolkit supplies the development environment—including the CUDA C++ compiler nvcc, runtime, debugging and optimization tools, and libraries. CUDA-X is the collection of libraries built on CUDA for areas such as math, AI, image processing, data science, and multi-GPU communication.

Popular on Amazon
Silkland 40Gbps USB C 90 Degree Right Angle Adapter 2 Pack, 240W USB4 | Male to Female Extender, 8K@60Hz, Thunderbolt 4/3, Steam Deck, ROG Ally, MacBook, Switch 2, iPhone 18/17/16/15, Quest 3 VR
  • 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
  • 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
  • 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
  • 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
  • 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.

Check whether the system sees an NVIDIA device:

lspci | grep -i nvidia

If that returns nothing, refresh the PCI ID database with update-pciids and try again. Then confirm that your model appears on NVIDIA’s CUDA GPU compute-capability list or in the supported-products information for the toolkit release. For example, NVIDIA lists the GeForce RTX 4070 at compute capability 8.9; RTX 50-series examples such as the RTX 5090, 5080, and 5070 are listed at 12.0.

Check your operating system and compiler before choosing an installation package:

hostnamectl
gcc --version

The CUDA 13.5 Linux guide lists supported host compiler major versions of GCC 6.x–16.x, Clang 7.x–22.x, and NVHPC 26.9. NVCC checks the host compiler’s major version: newer minor releases of a listed compiler are supported, but a major version outside the documented range is not. CUDA 13.5 supports C++11, C++14, C++17, C++20, and C++23 through NVCC/NVRTC. For C++20 in both host and device code, the documented minimums are GCC 10.x, Clang 11.x, or NVHPC 22.x.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

CUDA 13.5 supports specific Linux distributions, not every distribution carrying a Linux label. Its x86_64 examples include Ubuntu 22.04, 24.04, and 26.04; Debian 13 (with Debian 12 deprecated in this release); RHEL-family 8, 9, and 10; Fedora 44; SLES 15 SP6+ and 16; openSUSE Leap 15 SP6 and 16; Amazon Linux 2023; Azure Linux 3.0; and KylinOS V11 2503. Repository codenames matter: for example, NVIDIA’s repository naming uses ubuntu2404 for Ubuntu 24.04 and debian13 for Debian 13. Debian 12 and openSUSE Leap 15.6 are deprecated for CUDA 13.5; NVIDIA identifies Debian 13 and Leap 16 as migration targets for the next release.

Arm64-sbsa, Grace, and Jetson have their own qualified platform and installation paths. Do not use an x86_64 package on those systems. Jetson instructions are also specific to its platform stack: the available data identifies Ubuntu 24.04 with JetPack 7.2 for Jetson, and distinguishes Orin/nvgpu from Thor/OpenRM compatibility packages.

How do I install CUDA on Linux with the package manager?

NVIDIA recommends distribution-specific packages where possible. They integrate with the system package manager, making upgrades and removal easier to manage than a runfile installation. For Ubuntu and Debian, the typical network-repository setup uses NVIDIA’s keyring package followed by cuda-toolkit.

Ubuntu and Debian: network repository

Choose the repository path and architecture token that matches the exact distribution. Ubuntu repository examples use x86_64; Debian 13’s example uses amd64. The package URL pattern is:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/

For Ubuntu 24.04, use ubuntu2404/x86_64. For Ubuntu 26.04 use ubuntu2604/x86_64; for Ubuntu 22.04, use ubuntu2204/x86_64. Debian 13 uses debian13/amd64. Replace the placeholders below with the correct values:

wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update
sudo apt install cuda-toolkit

The keyring configures NVIDIA’s repository signing information and package source; it is not the toolkit itself. After installation, the package manager installs the toolkit packages. Use cuda-toolkit for a development setup; do not assume that an older tutorial’s command or a repository setup package has the same purpose.

Ubuntu 26.04 also has a distribution archive package named cuda-toolkit, so apt install cuda-toolkit can use Ubuntu’s own archive. NVIDIA’s ubuntu2604 repository is the relevant option when you need to select a specific NVIDIA toolkit version—for example, to align a local development environment with a framework build. Framework wheel compatibility changes independently; check the framework’s own current compatibility information rather than inferring it from the operating-system package name.

For a local repository installer, download the appropriate local-repository package from NVIDIA’s CUDA download page, install it with dpkg -i, copy the repository keyring from its /var/cuda-repo-... directory into /usr/share/keyrings/, and place the supplied cuda-<distro>.pin file at /etc/apt/preferences.d/cuda-repository-pin-600. Then update APT and install the desired toolkit meta-package. A local repository can be useful when you need to stage packages locally or install without fetching every package from the network repository.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On Debian, enable the contrib component before following the keyring and APT steps. NVIDIA’s guide then uses apt install cuda-toolkit. Reboot after completing the installation where required by the driver setup. On Jetson, the extra compatibility package depends on the platform: NVIDIA’s notes specify cuda-compat for Thor/OpenRM and cuda-compat-orin for Orin/nvgpu.

RHEL family, Fedora, SUSE, and other RPM-based distributions

Use the repository codename and architecture NVIDIA assigns to your distribution. On RHEL, AlmaLinux, Rocky Linux, Oracle Linux, KylinOS, or Amazon Linux, the general NVIDIA repository flow is:

Also popular on Amazon
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-<distro>.repo
sudo dnf install cuda-toolkit

RHEL-family distributions may require an additional repository to be enabled first. For example, RHEL 9 uses its CodeReady Builder repository; AlmaLinux and Rocky Linux 9 use CRB. Consult the release-specific NVIDIA Linux installation guide for the exact prerequisite on your distribution rather than copying a repository-enablement command from a different major version.

Fedora 44’s repository setup syntax is different from the generic DNF example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo dnf config-manager addrepo --from-repofile=https://developer.download.nvidia.com/compute/cuda/repos/fedora44/x86_64/cuda-fedora44.repo
sudo dnf install cuda-toolkit

Fedora 44 ships GCC 16, which is within CUDA 13.5’s documented GCC range. If you need to select GCC 15 for NVCC, NVIDIA’s noted optional pattern is to install gcc15-c++ and set NVCC_CCBIN='g++-15' in the build environment.

For SLES or openSUSE, add the repository with zypper, install the toolkit, and reboot as needed:

sudo zypper addrepo https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-<distro>.repo
sudo zypper install cuda-toolkit

SLES also requires PackageHub, enabled with SUSEConnect --product PackageHub/<SLES version number>/<arch>. Azure Linux uses a repository file under /etc/yum.repos.d/ and installs packages with tdnf install cuda-toolkit. Use NVIDIA’s Linux installation guide for the distribution-specific repository and prerequisite instructions.

Which CUDA package should I install, and how do I pin a version?

For most native GPU development, install cuda-toolkit. NVIDIA describes it as the recommended package for the full set of packages needed for native development. Use a versioned package when you need to hold a major or minor toolkit line rather than following later toolkit releases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Package What it selects
cuda-toolkit Full toolkit for native development; follows the next toolkit release. NVIDIA’s recommended meta-package.
cuda-toolkit-13 Full toolkit, constrained to the CUDA 13.x major line.
cuda-toolkit-13-5 Toolkit packages pinned to CUDA 13.5 until another CUDA version is installed.
cuda Full toolkit plus desktop experience; follows the next cuda release.
cuda-13-5 Toolkit packages pinned at 13.5; this is not a promise to install the driver with CUDA 13.4 and later.
cuda-tools-13-5 Command-line and visual tools at 13.5.
cuda-runtime-13-5 Runtime-only installation without the desktop experience; a possible fit for compute nodes.
cuda-compiler-13-5 Compiler packages.
cuda-libraries-13-5 / cuda-libraries-dev-13-5 CUDA runtime libraries / development libraries and headers.

Version labels differ by package family: cuda-toolkit-13-5 pins the toolkit at a minor release, while cuda-toolkit-13 holds the major line. The unversioned cuda-toolkit is convenient for a machine that should follow the repository’s current toolkit; a versioned package is safer when a project requires a stable toolchain. Any package or plan table’s details here reflect the CUDA 13.5 documentation checked Nov 2026.

Side-by-side toolkit installations are supported. The standard CUDA 13.5 path is /usr/local/cuda-13.5, with /usr/local/cuda as the conventional active-version symlink. To inspect or switch the alternatives-managed symlink, use:

sudo update-alternatives --display cuda
sudo update-alternatives --config cuda
sudo update-alternatives --config cuda-13

Package-manager installation and runfile installation are separate management paths. Before changing methods, remove or account for the existing installation so files and package-manager records do not conflict. NVIDIA’s Linux guide documents removing a runfile toolkit with its cuda-uninstaller and removing package installations through the relevant package manager.

Do I need to install the NVIDIA driver separately?

Yes, for CUDA 13.4 and later on Linux, install a compatible NVIDIA driver separately. Starting with CUDA 13.4, toolkit and driver versions are independent; the recommended cuda-toolkit meta-package does not install or depend on the driver.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

CUDA 13.5 corresponds to NVIDIA’s R620 driver branch. NVIDIA also documents minor-version compatibility: existing CUDA 13.x applications can run on drivers at version 580 or later, but CUDA 13.5’s new features and newly enabled platforms require R620 or later. R620 is a driver branch designation, not a single package version; NVIDIA does not give one universal Linux package build number for it in the 13.5 release notes.

On Ubuntu, one route is to use the distribution’s driver tooling: run ubuntu-drivers devices to inspect recommendations, then ubuntu-drivers autoinstall to install the recommended driver. Another route is to install an explicitly selected package such as nvidia-driver-580 when that version is available and appropriate for the system. NVIDIA’s repository also offers driver packages such as nvidia-open or cuda-drivers; these are driver-side packages, not a requirement to install the toolkit. Reboot after driver installation and check nvidia-smi.

Driver installation can involve kernel modules. When building an open or DKMS driver module, matching kernel headers for the running kernel reported by uname -r are required. Avoid mixing driver sources casually: choose a distro driver path or NVIDIA repository path intentionally, and verify which packages are installed before changing sources.

Also popular on Amazon
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

What is the difference between the CUDA version in nvidia-smi and nvcc?

nvidia-smi reports the highest CUDA version supported by the installed driver; it does not report which CUDA Toolkit is installed. nvcc --version reports the compiler version found on your shell’s PATH. They answer different questions, so their version numbers need not match.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For example, the CUDA 13.5 release lists NVCC and the CUDA Runtime as 13.5.37, while the driver branch corresponding to CUDA 13.5 is R620. A system can have a driver capable of supporting a newer CUDA level than the toolkit on disk, or an installed toolkit whose compiler is not visible in the current shell. Use nvcc --version to identify the active compiler and nvidia-smi to check whether the driver sees the GPU.

How do I configure PATH and shared libraries?

After installation, make sure the toolkit’s compiler directory is on PATH. For the default CUDA 13.5 location, the current-shell command is:

export PATH=/usr/local/cuda-13.5/bin${PATH:+:${PATH}}

For runfile installations, and as a common fix when a CUDA shared library cannot be found, add the toolkit’s library directory to LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=/usr/local/cuda-13.5/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

To persist these settings for Bash, add them to ~/.bashrc, then start a new shell or reload that file with source ~/.bashrc. If you use the /usr/local/cuda symlink to select among installed versions, you can use /usr/local/cuda/bin and /usr/local/cuda/lib64 instead, provided the symlink points to the toolkit you intend to use. RPM and Debian package installations place Nsight Compute under /opt/nvidia/nsight-compute/; runfile installations keep it under the toolkit directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I verify the installation?

Start with three checks, each aimed at a different layer of the setup:

  1. Compiler and toolkit: run nvcc --version. It should print the compiler version. If the shell cannot find it, verify that the correct toolkit’s bin directory is on PATH.
  2. Driver and GPU: run nvidia-smi. It should display the NVIDIA GPU and driver information. The CUDA label in this output is the driver’s supported maximum, not the installed toolkit’s version.
  3. Device access and sample execution: build and run NVIDIA’s CUDA Samples, including deviceQuery and bandwidthTest. A successful deviceQuery should find a CUDA device and pass; bandwidthTest reports transfer measurements.

CUDA Samples are hosted in NVIDIA’s accelerated-computing-hub on GitHub. Follow the sample repository’s current build instructions for the version you are using. On Debian or Ubuntu, sample builds may need development packages such as g++, build-essential, freeglut3-dev, libx11-dev, libxmu-dev, libxi-dev, libglu1-mesa-dev, libfreeimage-dev, and libglfw3-dev. Requirements depend on which sample targets you build.

If you want a minimal compiler smoke test after nvcc works, save a small CUDA source file such as hello.cu and compile it with:

nvcc hello.cu -o hello

A successful compile confirms that the compiler can process the source; it does not by itself prove that the driver can launch code on a GPU. Run a device sample to check the GPU path as well.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why doesn’t the cuda-repo package install the CUDA Toolkit?

A package named cuda-repo-... is a repository pointer or local repository setup package, not the full toolkit. It configures package sources and signing information; after installing it, update the package index and install the toolkit meta-package you want, such as cuda-toolkit.

How do I choose between a network repo, local repo, runfile, Conda, and pip?

For a Linux system you manage as a normal operating-system installation, use NVIDIA’s distribution-specific package repository when it supports your OS. Choose another method only when its packaging model better fits the environment or deployment constraints.

  • Network repository: installs native DEB or RPM packages and supports package-manager upgrades and removal. It is the usual choice for a workstation or development server.
  • Local repository: stages packages in a local repository after downloading a distro-specific installer. It can help when you need a local package source, but requires the repository key and pinning setup appropriate to the distribution.
  • Runfile: a distro-independent cuda_<version>_linux.run installer. It installs outside the distro package database, by default under /usr/local/cuda-13.5, and is useful when the package route is unsuitable. It does not register the toolkit with the distro package manager and does not provide cross-platform development in the runfile.
  • Conda: installs into a Conda environment. NVIDIA’s pattern is conda install cuda -c nvidia; use a dedicated environment rather than base. A label-specific command can select an older release line, but verify that label still exists before relying on it.
  • pip wheels: the NVIDIA PyPI meta-package can install selected toolkit components into a Python environment. Examples include pip install "cuda-toolkit[all]", pip install "cuda-toolkit[cudart]", or pip install "cuda-toolkit[cublas,cusolver,cusparse]". These are not a substitute for a separately installed system driver.

The NVIDIA/PyPI cuda-toolkit meta-package was labeled 13.5.0 in November 2026; PyPI lists that release on 4 November 2026. Its 13.5 extras include component packages such as NVCC 13.5.37 and cuBLAS 13.10.0.20. The Linux guide identifies suffixed -cu13 PyPI package names as deprecated placeholders, so prefer the current documented meta-package naming.

Do not mix installation methods without a cleanup plan. A runfile toolkit can be removed with its version-specific uninstaller, for example /usr/local/cuda-13.5/bin/cuda-uninstaller. Remove DEB or RPM packages with APT, DNF, TDNF, or Zypper using their installed package names. Before uninstalling or switching package sources, inspect what is installed so that you do not remove a driver you still need.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
BENFEI USB C Hub 5-in-1 with 4K HDMI(Certified), 100W Power Delivery, 3 USB-A, Silicone Cable, Aluminum Case Compatible with MacBook Pro/Air, iPad Pro, iMac, iPhone 15 Pro/Pro Max, XPS, Thinkpad
  • Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
  • Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
  • 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
  • 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
  • Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.

Which CUDA-X libraries come with the toolkit, and which are separate?

A plain cuda-toolkit installation includes a substantial CUDA-X foundation, especially core math, parallel-algorithm, and image libraries. It does not install every library in NVIDIA’s CUDA-X catalog.

The CUDA 13.5 toolkit components include cuBLAS, cuFFT, cuRAND, cuSOLVER, cuSPARSE, NPP, nvJPEG, and CCCL components such as Thrust, CUB, and libcu++. It also includes development and instrumentation pieces such as NVCC, NVRTC, CUPTI, NVTX, sanitizers, nvJitLink, and nvFatbin. CUDA 13.5 component versions listed by NVIDIA include cuBLAS 13.10.0.20, cuFFT 12.5.0.14, cuRAND 10.4.5.25, cuSOLVER 12.4.1.2, cuSPARSE 12.9.4.2, NPP 13.2.0.93, nvJPEG 13.3.2.43, and CCCL 3.5.0. Use those as release identifiers, not as a compatibility promise for a separately installed framework.

Other CUDA-X projects are independent installs. Important examples include cuDNN for deep learning, NCCL for multi-GPU communication, cuTENSOR for tensor operations, RAPIDS libraries such as cuDF/cuML/cuGraph, TensorRT, cuQuantum, and GPUDirect Storage. The toolkit alone should not be treated as an installation of those packages.

How do I install cuDNN on Linux?

Install cuDNN separately after the NVIDIA driver and CUDA Toolkit are in place. For Ubuntu or Debian with NVIDIA’s CUDA network repository already enabled, the current cuDNN 9 meta-package names are:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt update
sudo apt-get -y install cudnn9-cuda-13

Use cudnn9-cuda-12 instead when installing the CUDA 12 generation. NVIDIA’s current documentation says to use only one CUDA-toolkit generation of cuDNN 9 at a time. On RHEL or Rocky Linux, the documented pattern is sudo dnf -y install --allowerasing cudnn9-cuda-13 or the corresponding CUDA 12 package name. JIT variants are named cudnn9-jit-cuda-13 and cudnn9-jit-cuda-12.

The package suffix selects the CUDA generation; it does not state the exact cuDNN patch release. The CUDA 13.5 guide includes a cuDNN 9.2.1 redistribution example, but the exact current 9.x.y patch offered through cudnn9-cuda-13 is not pinned by that package name. For an offline or controlled deployment, use NVIDIA’s current cuDNN download or redistribution instructions and check the actual artifact label before pinning it.

How do I install NCCL?

NCCL is a separate library for topology-aware communication among multiple GPUs. Its collectives include AllReduce, Broadcast, Reduce, AllGather, and ReduceScatter; it can use interconnects such as PCIe, NVLink, InfiniBand Verbs, and IP sockets, and exposes a C API with a CUDA stream argument.

On Ubuntu or Debian after enabling NVIDIA’s CUDA repository, the package names are:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt update
sudo apt install libnccl2 libnccl-dev

For the RHEL family, NVIDIA documents the package pattern sudo yum install libnccl libnccl-devel libnccl-static. NCCL’s documented software floor is glibc 2.17 and CUDA 10.0; its hardware floor is CUDA devices with compute capability 3.5 or higher. Do not copy old example version pins from an installation guide without checking the current NCCL download page. NVIDIA’s install-guide examples include older version strings and do not establish the current NCCL version matched to CUDA 13.5.

Pay attention to repository behavior when installing NCCL: installing from a network repository can upgrade CUDA to the latest available release unless you pin versions. If an application requires a particular CUDA and NCCL combination, inspect the package versions and dependency plan before confirming the package-manager transaction.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What common CUDA installation errors mean

“nvcc: No such file or directory”

This usually means the toolkit’s bin directory is missing from PATH, not necessarily that CUDA failed to install. For CUDA 13.5 at its default location, run:

export PATH=/usr/local/cuda-13.5/bin${PATH:+:${PATH}}
which nvcc
nvcc --version

If which nvcc still returns nothing, check whether /usr/local/cuda-13.5/bin/nvcc exists and whether you installed the compiler package rather than only runtime components.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“error while loading shared libraries: cannot open shared object file”

The dynamic loader cannot find a required library. For a runfile install, add the toolkit library directory to LD_LIBRARY_PATH:

Also popular on Amazon
𝟒𝐏𝐚𝐜𝐤 𝐔𝐩𝐠𝐫𝐚𝐝𝐞𝐝 USB to USB C Adapter,Type-C Female to A Male Charger Converter for iPhone 18 Charger,iWatch Ultra SE 9 10,iPhone 17 Pro Max 16 15 14,Samsung S25,AirPods,iPad,Car,Xbox
  • 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
  • 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
  • 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
  • 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
  • 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
export LD_LIBRARY_PATH=/usr/local/cuda-13.5/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

If the error persists, verify that the missing library belongs to the toolkit or to a separate CUDA-X product such as cuDNN, and that the installed library generation matches the application’s expectation. Adding a path to the wrong toolkit version can make version conflicts worse rather than fixing them.

nvidia-smi works, but nvcc is missing

The driver may be installed even though the toolkit is not, or the compiler may not be on PATH. The CUDA label in nvidia-smi indicates driver capability, not toolkit presence. Install cuda-toolkit or correct the compiler path, then check nvcc --version.

nvcc rejects the host compiler

Check the compiler major version against the CUDA 13.5 Linux guide. NVCC does not support arbitrary host compiler majors outside its documented table. Install a supported compiler and, where appropriate, select it explicitly for NVCC; NVIDIA’s Fedora 44 example uses NVCC_CCBIN='g++-15' after installing gcc15-c++.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

deviceQuery cannot access a GPU

First verify that nvidia-smi sees the GPU and that the driver is loaded. Then inspect device-node permissions under /dev/nvidia*. NVIDIA documents setting SELinux permissive with setenforce 0 as a temporary diagnostic; this is not a general-purpose permanent fix. Restore the system’s intended SELinux policy after troubleshooting and address the actual access or policy issue.

What should I watch for when upgrading or removing CUDA?

The important change for upgrades is the CUDA 13.4 split between toolkit and driver. Older tutorials often assume the cuda meta-package brings in both. Since CUDA 13.4, toolkit packages no longer depend on the NVIDIA driver. If a driver was installed as a dependency of the older cuda package on a system using CUDA 13.3 or earlier, upgrading and then running apt autoremove or the DNF equivalent can remove the driver stack if the package manager considers it automatically installed.

Before cleanup, inspect the installed driver packages—for example, on Ubuntu, use dpkg -l nvidia-open cuda-drivers—and mark the required driver package as manually installed with sudo apt-mark manual <package>. On RHEL-family systems, use sudo dnf mark install <package>. Confirm the exact package name on your system; do not mark a guessed package. Then review the proposed removal list before approving an autoremove operation.

A broad Debian/Ubuntu toolkit purge can include patterns such as:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt remove --purge "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
sudo apt autoremove --purge

These globs can match more than one toolkit release and related components. Review APT’s package-removal plan carefully before confirming, especially if the machine also hosts workloads that depend on CUDA libraries or the NVIDIA driver. Remove only the package families you intend to remove.

Where can I get the current CUDA 13.5 installer?

Use NVIDIA’s CUDA Toolkit download page to select Linux, architecture, distribution, distribution version, and installer type. CUDA 13.5.0 is the current Linux download label in the November 2026 documentation snapshot. The page offers DEB or RPM network/local repository options and a local runfile, depending on the platform. Review and accept the CUDA EULA before downloading.

For runfile installation, the basic command is sh cuda_<version>_linux.run. The installer prompts for the EULA, toolkit location, and the /usr/local/cuda symlink. NVIDIA documents options including --toolkit, --toolkitpath=<path>, --override, --tmpdir=<path>, --no-man-page, and --help. A silent toolkit-only custom-path example is ./runfile.run --silent --toolkit --toolkitpath=/my/new/toolkit. The runfile does not manage installation state through APT or DNF, so keep track of its path and use its uninstaller when removing it.

CUDA Toolkit, cuDNN, and NCCL are NVIDIA software downloads rather than boxed software. A CUDA-capable NVIDIA GPU is a hardware prerequisite for running GPU development workloads; supported examples range from GeForce RTX cards such as the RTX 4070 to Jetson Orin developer platforms, each with its own supported software path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Can I install CUDA in a virtual machine or container without installing the host driver?

The host still needs a compatible NVIDIA driver and GPU access; a toolkit installed inside an environment does not replace the host’s driver. Whether a particular VM or container can expose the GPU depends on its host configuration, which the CUDA toolkit package alone does not provide.

Do I need the full CUDA Toolkit to run a PyTorch or TensorFlow program?

Not necessarily: a framework distribution may include or declare runtime components for its own supported configuration. The toolkit is needed when you need tools such as NVCC to compile CUDA code, and the framework’s current installation guidance should determine which runtime and driver combinations it supports.

Can I use CUDA on a system with only an AMD or Intel GPU?

No: CUDA development requires a CUDA-capable NVIDIA GPU. A system may have other GPUs as well, but they do not satisfy CUDA’s NVIDIA-device requirement.

Does CUDA Toolkit 13.5 still support 32-bit application builds?

No. NVIDIA removed 32-bit compilation in CUDA 12.0 and later; the toolkit cannot restore that capability, and Hopper also does not support 32-bit applications.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of December 6, 2026 10:01 am GMT.