How To Install xrt-xocl-dkms on Ubuntu 20.04

In this tutorial we learn how to install xrt-xocl-dkms on Ubuntu 20.04. xrt-xocl-dkms is Xilinx Runtime (XRT) - XOCL DKMS kernel drivers

Introduction

In this tutorial we learn how to install xrt-xocl-dkms on Ubuntu 20.04.

What is xrt-xocl-dkms

xrt-xocl-dkms is:

The Xilinx Runtime (XRT) provides acceleration across PCIe and MPSoC based Xilinx platforms.

This package contains the XOCL DKMS kernel drivers.

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

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

sudo apt-get update

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

sudo apt-get -y install xrt-xocl-dkms

Install xrt-xocl-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xrt-xocl-dkms using apt by running the following command:

sudo apt -y install xrt-xocl-dkms

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

sudo aptitude -y install xrt-xocl-dkms

How To Uninstall xrt-xocl-dkms on Ubuntu 20.04

To uninstall only the xrt-xocl-dkms package we can use the following command:

sudo apt-get remove xrt-xocl-dkms

Uninstall xrt-xocl-dkms And Its Dependencies

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

sudo apt-get -y autoremove xrt-xocl-dkms

Remove xrt-xocl-dkms Configurations and Data

To remove xrt-xocl-dkms configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge xrt-xocl-dkms

Remove xrt-xocl-dkms configuration, data, and all of its dependencies

We can use the following command to remove xrt-xocl-dkms configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xrt-xocl-dkms

References

Summary

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