How To Install sysdig on Ubuntu 20.04
Introduction
In this tutorial we learn how to install sysdig
on Ubuntu 20.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.
Package: sysdig Architecture: amd64 Version: 0.26.4-1 Priority: optional Section: universe/admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Evgeni Golov [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 13719 Depends: libb64-0d (>= 1.2), libc6 (>= 2.29), libcurl4 (>= 7.28.0), libelf1 (>= 0.131), libgcc-s1 (>= 3.0), libgrpc++1, libjq1 (>= 1.5), libjsoncpp1 (>= 1.7.4), libluajit-5.1-2 (>= 2.0.4+dfsg), libncurses6 (>= 6), libprotobuf17, libssl1.1 (>= 1.1.0), libstdc++6 (>= 9), libtbb2 (>= 2017~U7), libtinfo6 (>= 6), zlib1g (>= 1:1.2.6) Recommends: sysdig-dkms Filename: pool/universe/s/sysdig/sysdig_0.26.4-1_amd64.deb Size: 1868744 MD5sum: 8e0c352d43407c245e7c0622c1c3b913 SHA1: d10d38575ca4ffd993172b6ce519d36a470da6cd SHA256: 6ac2f9b094aee9f93c61a9b3da9e3b800d080a4fff8ac96582e395197b84b6be Homepage: https://www.sysdig.org/ Description-en: system-level exploration and troubleshooting tool 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 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 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 20.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 20.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 20.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 20.04 using different package management tools: apt
, apt-get
and aptitude
.