How To Install dh-octave on Ubuntu 18.04
Introduction
In this tutorial we learn how to install dh-octave on Ubuntu 18.04.
What is dh-octave
dh-octave is:
Since version 3.0 of Octave (a numerical computation software), add-ons can be installed through the pkg.m system. This package provides the infrastructure for packaging such add-ons for Debian, based on debhelper. It replaces the deprecated octave-pkg-dev package. This package contains debhelper-like scripts for building, checking and cleaning the add-on package as well as for generating the substitution variables in debian/control.
This package is intended to be used by the Debian Octave Group and should be of little interest to general users.
There are three methods to install dh-octave 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 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 using apt-get by running the following command:
sudo apt-get -y install dh-octave
Install dh-octave Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install dh-octave using apt by running the following command:
sudo apt -y install dh-octave
Install dh-octave 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 using aptitude by running the following command:
sudo aptitude -y install dh-octave
How To Uninstall dh-octave on Ubuntu 18.04
To uninstall only the dh-octave package we can use the following command:
sudo apt-get remove dh-octave
Uninstall dh-octave And Its Dependencies
To uninstall dh-octave 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
Remove dh-octave Configurations and Data
To remove dh-octave configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge dh-octave
Remove dh-octave configuration, data, and all of its dependencies
We can use the following command to remove dh-octave configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dh-octave
References
Summary
In this tutorial we learn how to install dh-octave package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.