How To Install sysdig on Ubuntu 18.04

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

Introduction

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

What is sysdig

sysdig 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 tool to inspect trace files. If you want to inspect a live system, you also need to install the according kernel module, shipped in the package sysdig-dkms.

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

sudo apt-get -y install sysdig

Install sysdig Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sysdig

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

sudo aptitude -y install sysdig

How To Uninstall sysdig on Ubuntu 18.04

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

sudo apt-get remove sysdig

Uninstall sysdig And Its Dependencies

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

sudo apt-get -y autoremove sysdig

Remove sysdig Configurations and Data

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

sudo apt-get -y purge sysdig

Remove sysdig configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sysdig

References

Summary

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