How To Install systemd-bootchart on Kali Linux

In this tutorial we learn how to install systemd-bootchart on Kali Linux. systemd-bootchart is boot performance graphing tool

Introduction

In this tutorial we learn how to install systemd-bootchart on Kali Linux.

What is systemd-bootchart

systemd-bootchart is:

systemd-bootchart is a tool, usually run at system startup, that collects the CPU load, disk load, memory usage, as well as per-process information from a running system. Collected results are output as an SVG graph. Normally, systemd-bootchart is invoked by the kernel by passing init=/lib/systemd/systemd-bootchart on the kernel command line. systemd-bootchart will then fork the real init off to resume normal system startup, while monitoring and logging startup information in the background.

After collecting a certain amount of data (usually 15??30 seconds, default 20s) the logging stops and a graph is generated from the logged information. This graph contains vital clues as to which resources are being used, in which order, and where possible problems exist in the startup sequence of the system. It is essentially a more detailed version of the systemd-analyze plot function.

bootchart can also be used at any moment in time to collect and graph some data for an amount of time.

There are three methods to install systemd-bootchart on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install systemd-bootchart Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install systemd-bootchart

Install systemd-bootchart Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install systemd-bootchart

Install systemd-bootchart Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install systemd-bootchart using aptitude by running the following command:

sudo aptitude -y install systemd-bootchart

How To Uninstall systemd-bootchart on Kali Linux

To uninstall only the systemd-bootchart package we can use the following command:

sudo apt-get remove systemd-bootchart

Uninstall systemd-bootchart And Its Dependencies

To uninstall systemd-bootchart and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove systemd-bootchart

Remove systemd-bootchart Configurations and Data

To remove systemd-bootchart configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge systemd-bootchart

Remove systemd-bootchart configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge systemd-bootchart

Dependencies

systemd-bootchart have the following dependencies:

References

Summary

In this tutorial we learn how to install systemd-bootchart package on Kali Linux using different package management tools: apt, apt-get and aptitude.