How To Install sysdig-dkms on Ubuntu 18.04

In this tutorial we learn how to install sysdig-dkms on Ubuntu 18.04. sysdig-dkms is system-level exploration and troubleshooting tool - kernel source

Introduction

In this tutorial we learn how to install sysdig-dkms on Ubuntu 18.04.

What is sysdig-dkms

sysdig-dkms is:

Sysdig instruments your physical and virtual machines at the OS level by installing into the Linux kernel and capturing system calls and other OS events. Then, using sysdig’s command line interface, you can filter and decode these events in order to extract useful information and statistics.

Sysdig can be used to inspect live systems in real-time, or to generate trace files that can be analyzed at a later stage.

This package contains the source for the kernel module of sysdig.

There are three methods to install sysdig-dkms on Ubuntu 18.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 sysdig-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 sysdig-dkms using apt-get by running the following command:

sudo apt-get -y install sysdig-dkms

Install sysdig-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sysdig-dkms

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

sudo aptitude -y install sysdig-dkms

How To Uninstall sysdig-dkms on Ubuntu 18.04

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

sudo apt-get remove sysdig-dkms

Uninstall sysdig-dkms And Its Dependencies

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

sudo apt-get -y autoremove sysdig-dkms

Remove sysdig-dkms Configurations and Data

To remove sysdig-dkms configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge sysdig-dkms

Remove sysdig-dkms configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sysdig-dkms

References

Summary

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