How To Install plainbox on Ubuntu 18.04

In this tutorial we learn how to install plainbox on Ubuntu 18.04. plainbox is toolkit for software and hardware integration testing

Introduction

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

What is plainbox

plainbox is:

PlainBox is a toolkit consisting of python3 library, development tools, documentation and examples. It is targeted at developers working on testing or certification applications and authors creating tests for such applications.

PlainBox can be used to both create simple and comprehensive test tools as well as to develop and execute test jobs and test scenarios. It was created as a refined and rewritten core of the Checkbox project. It has a well tested and documented core, small but active development community and a collection of associated projects that use it as a lower-level engine/back-end library.

PlainBox has a novel approach to discovering (and probing) hardware and software that is extensible and not hardwired into the system. It allows test developers to express association between a particular test and the hardware, software and configuration constraints that must be met for the test to execute meaningfully. This feature, along with pluggable test definitions, makes plainbox flexible and applicable to many diverse testing situations, ranging from mobile phones, traditional desktop computers, servers and up to testing “cloud” installations.

This package contains the plainbox executable

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

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

sudo apt-get update

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

sudo apt-get -y install plainbox

Install plainbox Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install plainbox

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

sudo aptitude -y install plainbox

How To Uninstall plainbox on Ubuntu 18.04

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

sudo apt-get remove plainbox

Uninstall plainbox And Its Dependencies

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

sudo apt-get -y autoremove plainbox

Remove plainbox Configurations and Data

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

sudo apt-get -y purge plainbox

Remove plainbox configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge plainbox

References

Summary

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