How To Install minizinc-ide on Ubuntu 18.04

In this tutorial we learn how to install minizinc-ide on Ubuntu 18.04. minizinc-ide is MiniZinc constraint modelling language IDE

Introduction

In this tutorial we learn how to install minizinc-ide on Ubuntu 18.04.

What is minizinc-ide

minizinc-ide is:

The MiniZinc IDE is a simple Integrated Development Environment for writing and running MiniZinc models. It provides a tabbed editor with MiniZinc syntax highlighting, configuration dialogs for solver options and model parameters, and an integrated environment for compiling models and running solvers.

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

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

sudo apt-get update

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

sudo apt-get -y install minizinc-ide

Install minizinc-ide Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install minizinc-ide

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

sudo aptitude -y install minizinc-ide

How To Uninstall minizinc-ide on Ubuntu 18.04

To uninstall only the minizinc-ide package we can use the following command:

sudo apt-get remove minizinc-ide

Uninstall minizinc-ide And Its Dependencies

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

sudo apt-get -y autoremove minizinc-ide

Remove minizinc-ide Configurations and Data

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

sudo apt-get -y purge minizinc-ide

Remove minizinc-ide configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge minizinc-ide

References

Summary

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