How To Install rt-app on Ubuntu 18.04

In this tutorial we learn how to install rt-app on Ubuntu 18.04. rt-app is Test application which simulates a real-time periodic load

Introduction

In this tutorial we learn how to install rt-app on Ubuntu 18.04.

What is rt-app

rt-app is:

rt-app is a test application that starts multiple periodic threads in order to simulate a real-time periodic load. It supports the SCHED_OTHER/SCHED_FIFO/SCHED_RR kernel mechanisms as well as the AQuoSA framework and SCHED_DEADLINE. It can be run with a simple command-line config, or a more complex set of tasks/threads configured in a (json) config file.

There are three methods to install rt-app 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 rt-app Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install rt-app

Install rt-app Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install rt-app

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

sudo aptitude -y install rt-app

How To Uninstall rt-app on Ubuntu 18.04

To uninstall only the rt-app package we can use the following command:

sudo apt-get remove rt-app

Uninstall rt-app And Its Dependencies

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

sudo apt-get -y autoremove rt-app

Remove rt-app Configurations and Data

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

sudo apt-get -y purge rt-app

Remove rt-app configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge rt-app

References

Summary

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