How To Install octave-autopkgtest on Ubuntu 18.04

In this tutorial we learn how to install octave-autopkgtest on Ubuntu 18.04. octave-autopkgtest is script for automatic test of Octave add-on packages

Introduction

In this tutorial we learn how to install octave-autopkgtest on Ubuntu 18.04.

What is octave-autopkgtest

octave-autopkgtest is:

This package contains the check-pkg script (originally in the octave-pkg-dev package) that runs the unit tests contained in all *.m and *.cc files available in the source tree from which it is launched. It is intended to be used by the support for Octave-Forge add-on packages implemented in autodep8.

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

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

sudo apt-get update

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

sudo apt-get -y install octave-autopkgtest

Install octave-autopkgtest Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install octave-autopkgtest

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

sudo aptitude -y install octave-autopkgtest

How To Uninstall octave-autopkgtest on Ubuntu 18.04

To uninstall only the octave-autopkgtest package we can use the following command:

sudo apt-get remove octave-autopkgtest

Uninstall octave-autopkgtest And Its Dependencies

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

sudo apt-get -y autoremove octave-autopkgtest

Remove octave-autopkgtest Configurations and Data

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

sudo apt-get -y purge octave-autopkgtest

Remove octave-autopkgtest configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge octave-autopkgtest

References

Summary

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