How To Install plainbox-insecure-policy on Ubuntu 18.04

In this tutorial we learn how to install plainbox-insecure-policy on Ubuntu 18.04. plainbox-insecure-policy is policykit policy required to use plainbox (insecure version)

Introduction

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

What is plainbox-insecure-policy

plainbox-insecure-policy 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.

Note that installing this package will allow any local user to execute any of the plainbox jobs (test definitions), also installed on the same machine (in system-wide locations), without any confirmation. You should only install this package on machines where that is not a security problem. Typically this package is installed on test machines inside automatically deployed test farms.

There are three methods to install plainbox-insecure-policy 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-insecure-policy 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-insecure-policy using apt-get by running the following command:

sudo apt-get -y install plainbox-insecure-policy

Install plainbox-insecure-policy Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install plainbox-insecure-policy

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

sudo aptitude -y install plainbox-insecure-policy

How To Uninstall plainbox-insecure-policy on Ubuntu 18.04

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

sudo apt-get remove plainbox-insecure-policy

Uninstall plainbox-insecure-policy And Its Dependencies

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

sudo apt-get -y autoremove plainbox-insecure-policy

Remove plainbox-insecure-policy Configurations and Data

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

sudo apt-get -y purge plainbox-insecure-policy

Remove plainbox-insecure-policy configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge plainbox-insecure-policy

References

Summary

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