How To Install nvidia-cg-toolkit on Kali Linux

In this tutorial we learn how to install nvidia-cg-toolkit on Kali Linux. nvidia-cg-toolkit is Cg Toolkit - GPU Shader Authoring Language

Introduction

In this tutorial we learn how to install nvidia-cg-toolkit on Kali Linux.

What is nvidia-cg-toolkit

nvidia-cg-toolkit is:

The Nvidia Cg Toolkit provides a compiler for the Cg language, runtime libraries for use with both leading graphics APIs, runtime libraries for CgFX, example applications, and extensive documentation. Supporting over 24 different OpenGL and DirectX profile targets, Cg will allow you to incorporate stunning interactive effects into your 3D applications.

The components include:

  • NVIDIA Cg Compiler
  • Unified Cg/CgFX Runtime
  • Cg User’s Manual
  • Cg Language Specification
  • Example programs and shaders

This package contains the Cg compiler and other utilities.

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

sudo apt-get -y install nvidia-cg-toolkit

Install nvidia-cg-toolkit Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install nvidia-cg-toolkit

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

sudo aptitude -y install nvidia-cg-toolkit

How To Uninstall nvidia-cg-toolkit on Kali Linux

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

sudo apt-get remove nvidia-cg-toolkit

Uninstall nvidia-cg-toolkit And Its Dependencies

To uninstall nvidia-cg-toolkit and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove nvidia-cg-toolkit

Remove nvidia-cg-toolkit Configurations and Data

To remove nvidia-cg-toolkit configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge nvidia-cg-toolkit

Remove nvidia-cg-toolkit configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge nvidia-cg-toolkit

Dependencies

nvidia-cg-toolkit have the following dependencies:

References

Summary

In this tutorial we learn how to install nvidia-cg-toolkit package on Kali Linux using different package management tools: apt, apt-get and aptitude.