How To Install libnvidia-compute-390 on Ubuntu 20.04

In this tutorial we learn how to install libnvidia-compute-390 on Ubuntu 20.04. libnvidia-compute-390 is NVIDIA libcompute package NVIDIA libcompute package

Introduction

In this tutorial we learn how to install libnvidia-compute-390 on Ubuntu 20.04.

What is libnvidia-compute-390

libnvidia-compute-390 is:

This package provides a set of libraries which enable the NVIDIA driver to use GPUs for parallel general purpose computation through CUDA and OpenCL.

Package: libnvidia-compute-390 Architecture: amd64 Version: 390.132-0ubuntu2 Multi-Arch: same Priority: optional Section: restricted/libs Source: nvidia-graphics-drivers-390 Origin: Ubuntu Maintainer: Ubuntu Core Developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 83757 Provides: libcuda-5.0-1, libcuda-5.5-1, libcuda-6.0-1, libcuda-6.5-1, libcuda-7.0-1, libcuda-7.5-1, libcuda-8.0-1, libcuda-9.0-1, libcuda-9.1-1, libcuda1 (= 390.132-0ubuntu2), libnvidia-ml1 (= 390.132-0ubuntu2), nvidia-opencl-icd, opencl-icd Depends: libc6 (>= 2.2.5) Conflicts: libcuda-5.0-1, libcuda-5.5-1, libcuda-6.0-1, libcuda-6.5-1, libcuda-7.0-1, libcuda-7.5-1, libcuda-8.0-1, libcuda-9.0-1, libcuda-9.1-1, nvidia-opencl-icd Replaces: libcuda-5.0-1, libcuda-5.5-1, libcuda-6.0-1, libcuda-6.5-1, libcuda-7.0-1, libcuda-7.5-1, libcuda-8.0-1, libcuda-9.0-1, libcuda-9.1-1, libnvidia-compute-390 (« 390.25-0ubuntu2~), nvidia-opencl-icd Filename: pool/restricted/n/nvidia-graphics-drivers-390/libnvidia-compute-390_390.132-0ubuntu2_amd64.deb Size: 20608768 MD5sum: ec39ecf5d3ecefb6b75f17e2ddfbf882 SHA1: 6541736d3a95b424ab0c70f3e2b501db67bb4e89 SHA256: 0e44b76e403644f9494499e6ef5a340706512a20f0e36f89a385465c710cfdae Homepage: http://www.nvidia.com Description-en: NVIDIA libcompute package This package provides a set of libraries which enable the NVIDIA driver to use GPUs for parallel general purpose computation through CUDA and OpenCL.

There are three methods to install libnvidia-compute-390 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnvidia-compute-390 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libnvidia-compute-390 using apt-get by running the following command:

sudo apt-get -y install libnvidia-compute-390

Install libnvidia-compute-390 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnvidia-compute-390 using apt by running the following command:

sudo apt -y install libnvidia-compute-390

Install libnvidia-compute-390 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libnvidia-compute-390 using aptitude by running the following command:

sudo aptitude -y install libnvidia-compute-390

How To Uninstall libnvidia-compute-390 on Ubuntu 20.04

To uninstall only the libnvidia-compute-390 package we can use the following command:

sudo apt-get remove libnvidia-compute-390

Uninstall libnvidia-compute-390 And Its Dependencies

To uninstall libnvidia-compute-390 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libnvidia-compute-390

Remove libnvidia-compute-390 Configurations and Data

To remove libnvidia-compute-390 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libnvidia-compute-390

Remove libnvidia-compute-390 configuration, data, and all of its dependencies

We can use the following command to remove libnvidia-compute-390 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnvidia-compute-390

References

Summary

In this tutorial we learn how to install libnvidia-compute-390 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.