How To Install nvidia-cuda-dev on Kali Linux
Introduction
In this tutorial we learn how to install nvidia-cuda-dev
on Kali Linux.
What is nvidia-cuda-dev
nvidia-cuda-dev is:
The Compute Unified Device Architecture (CUDA) enables NVIDIA graphics processing units (GPUs) to be used for massively parallel general purpose computation.
This package contains the development files: headers and libraries.
There are three methods to install nvidia-cuda-dev
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install nvidia-cuda-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nvidia-cuda-dev
using apt-get
by running the following command:
sudo apt-get -y install nvidia-cuda-dev
Install nvidia-cuda-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nvidia-cuda-dev
using apt
by running the following command:
sudo apt -y install nvidia-cuda-dev
Install nvidia-cuda-dev Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install nvidia-cuda-dev
using aptitude
by running the following command:
sudo aptitude -y install nvidia-cuda-dev
How To Uninstall nvidia-cuda-dev on Kali Linux
To uninstall only the nvidia-cuda-dev
package we can use the following command:
sudo apt-get remove nvidia-cuda-dev
Uninstall nvidia-cuda-dev And Its Dependencies
To uninstall nvidia-cuda-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove nvidia-cuda-dev
Remove nvidia-cuda-dev Configurations and Data
To remove nvidia-cuda-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge nvidia-cuda-dev
Remove nvidia-cuda-dev configuration, data, and all of its dependencies
We can use the following command to remove nvidia-cuda-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nvidia-cuda-dev
Dependencies
nvidia-cuda-dev have the following dependencies:
- libcudart11.0
- libaccinj64-11.2
- libcuinj64-11.2
- libnvrtc11.2
- libnvtoolsext1
- libnvvm4
- libcublas11
- libcublaslt11
- libnvblas11
- libcufft10
- libcufftw10
- libcurand10
- libcusolver11
- libcusolvermg11
- libcusparse11
- libnppc11
- libnppial11
- libnppicc11
- libnppidei11
- libnppif11
- libnppig11
- libnppim11
- libnppist11
- libnppisu11
- libnppitc11
- libnpps11
- libnvjpeg11
- libcupti-dev
- libnvidia-ml-dev
- libthrust-dev
- libcuda1
References
Summary
In this tutorial we learn how to install nvidia-cuda-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.