How To Install dh-octave-autopkgtest on Ubuntu 18.04

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

Introduction

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

What is dh-octave-autopkgtest

dh-octave-autopkgtest is:

This package contains the dh_octave_check script 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, which is implemented in autodep8.

There are three methods to install dh-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 dh-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 dh-octave-autopkgtest using apt-get by running the following command:

sudo apt-get -y install dh-octave-autopkgtest

Install dh-octave-autopkgtest Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dh-octave-autopkgtest

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

sudo aptitude -y install dh-octave-autopkgtest

How To Uninstall dh-octave-autopkgtest on Ubuntu 18.04

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

sudo apt-get remove dh-octave-autopkgtest

Uninstall dh-octave-autopkgtest And Its Dependencies

To uninstall dh-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 dh-octave-autopkgtest

Remove dh-octave-autopkgtest Configurations and Data

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

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

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

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

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

References

Summary

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