How To Install mbed-test-wrapper on Kali Linux

In this tutorial we learn how to install mbed-test-wrapper on Kali Linux. mbed-test-wrapper is utility to wrap the mbed test loader for use by yotta targets

Introduction

In this tutorial we learn how to install mbed-test-wrapper on Kali Linux.

What is mbed-test-wrapper

mbed-test-wrapper is:

mbed-test-wrapper is used to wrap the mbed test loader, so that it can be used by yotta targets to run tests on target embedded hardware platforms (e.g. K64F).

The executable file to be tested on the desired target hardware is first converted to a .bin file if necessary (via arm-none-eabi-objcopy), and then executed via mbedhtrun using the configured mount point, serial port and yotta target name.

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

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

sudo apt-get update

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

sudo apt-get -y install mbed-test-wrapper

Install mbed-test-wrapper Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mbed-test-wrapper

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

sudo aptitude -y install mbed-test-wrapper

How To Uninstall mbed-test-wrapper on Kali Linux

To uninstall only the mbed-test-wrapper package we can use the following command:

sudo apt-get remove mbed-test-wrapper

Uninstall mbed-test-wrapper And Its Dependencies

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

sudo apt-get -y autoremove mbed-test-wrapper

Remove mbed-test-wrapper Configurations and Data

To remove mbed-test-wrapper configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge mbed-test-wrapper

Remove mbed-test-wrapper configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mbed-test-wrapper

Dependencies

mbed-test-wrapper have the following dependencies:

References

Summary

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