How To Install clinfo on Ubuntu 20.04

In this tutorial we learn how to install clinfo on Ubuntu 20.04. clinfo is Query OpenCL system information

Introduction

In this tutorial we learn how to install clinfo on Ubuntu 20.04.

What is clinfo

clinfo is:

OpenCL (Open Computing Language) is a multivendor open standard for general-purpose parallel programming of heterogeneous systems that include CPUs, GPUs and other processors.

This package contains a tool that queries the capabilities of the available OpenCL drivers.

There are three methods to install clinfo 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 clinfo Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install clinfo

Install clinfo Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install clinfo using apt by running the following command:

sudo apt -y install clinfo

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

sudo aptitude -y install clinfo

How To Uninstall clinfo on Ubuntu 20.04

To uninstall only the clinfo package we can use the following command:

sudo apt-get remove clinfo

Uninstall clinfo And Its Dependencies

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

sudo apt-get -y autoremove clinfo

Remove clinfo Configurations and Data

To remove clinfo configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge clinfo

Remove clinfo configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge clinfo

References

Summary

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