How To Install octave-pkg-dev on Ubuntu 18.04

In this tutorial we learn how to install octave-pkg-dev on Ubuntu 18.04. octave-pkg-dev is infrastructure to build Octave packages

Introduction

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

What is octave-pkg-dev

octave-pkg-dev 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. It contains a Makefile scrap for inclusion in debian/rules, as well as the necessary code for generating the appropriate maintainer scripts as well as the replacing 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 octave-pkg-dev 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-pkg-dev 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-pkg-dev using apt-get by running the following command:

sudo apt-get -y install octave-pkg-dev

Install octave-pkg-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install octave-pkg-dev

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

sudo aptitude -y install octave-pkg-dev

How To Uninstall octave-pkg-dev on Ubuntu 18.04

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

sudo apt-get remove octave-pkg-dev

Uninstall octave-pkg-dev And Its Dependencies

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

sudo apt-get -y autoremove octave-pkg-dev

Remove octave-pkg-dev Configurations and Data

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

sudo apt-get -y purge octave-pkg-dev

Remove octave-pkg-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge octave-pkg-dev

References

Summary

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