How To Install nvidia-nsight on Ubuntu 20.04

In this tutorial we learn how to install nvidia-nsight on Ubuntu 20.04. nvidia-nsight is NVIDIA Nsight Eclipse Edition

Introduction

In this tutorial we learn how to install nvidia-nsight on Ubuntu 20.04.

What is nvidia-nsight

nvidia-nsight is:

NVIDIA Nsight Eclipse Edition is a full-featured IDE powered by the Eclipse platform that provides an all-in-one integrated environment to edit, build, debug and profile CUDA-C applications. Nsight Eclipse Edition supports a rich set of commercial and free plugins.

There are three methods to install nvidia-nsight 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 nvidia-nsight 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-nsight using apt-get by running the following command:

sudo apt-get -y install nvidia-nsight

Install nvidia-nsight Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install nvidia-nsight using apt by running the following command:

sudo apt -y install nvidia-nsight

Install nvidia-nsight 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 nvidia-nsight using aptitude by running the following command:

sudo aptitude -y install nvidia-nsight

How To Uninstall nvidia-nsight on Ubuntu 20.04

To uninstall only the nvidia-nsight package we can use the following command:

sudo apt-get remove nvidia-nsight

Uninstall nvidia-nsight And Its Dependencies

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

sudo apt-get -y autoremove nvidia-nsight

Remove nvidia-nsight Configurations and Data

To remove nvidia-nsight configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge nvidia-nsight

Remove nvidia-nsight configuration, data, and all of its dependencies

We can use the following command to remove nvidia-nsight configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge nvidia-nsight

References

Summary

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