How To Install erlang-common-test on Ubuntu 18.04

In this tutorial we learn how to install erlang-common-test on Ubuntu 18.04. erlang-common-test is Erlang/OTP application for automated testing

Introduction

In this tutorial we learn how to install erlang-common-test on Ubuntu 18.04.

What is erlang-common-test

erlang-common-test is:

Common Test is a portable application for automated testing. It is suitable for black-box testing of target systems of any type (i.e. not necessarily implemented in Erlang), as well as for white-box testing of Erlang/OTP programs. Black-box testing is performed via standard interfaces (such as SNMP, HTTP, Corba, Telnet, etc) and, if required, via user specific interfaces (often called test ports). White-box testing of Erlang/OTP programs is easily accomplished by calling the target API functions directly from the test case functions. Common Test also integrates usage of the OTP cover tool for code coverage analysis of Erlang/OTP programs.

There are three methods to install erlang-common-test 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 erlang-common-test Using apt-get

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

sudo apt-get update

After updating apt database, We can install erlang-common-test using apt-get by running the following command:

sudo apt-get -y install erlang-common-test

Install erlang-common-test Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install erlang-common-test using apt by running the following command:

sudo apt -y install erlang-common-test

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

sudo aptitude -y install erlang-common-test

How To Uninstall erlang-common-test on Ubuntu 18.04

To uninstall only the erlang-common-test package we can use the following command:

sudo apt-get remove erlang-common-test

Uninstall erlang-common-test And Its Dependencies

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

sudo apt-get -y autoremove erlang-common-test

Remove erlang-common-test Configurations and Data

To remove erlang-common-test configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge erlang-common-test

Remove erlang-common-test configuration, data, and all of its dependencies

We can use the following command to remove erlang-common-test configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge erlang-common-test

References

Summary

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