How To Install libppl-dev on Ubuntu 18.04

In this tutorial we learn how to install libppl-dev on Ubuntu 18.04. libppl-dev is Parma Polyhedra Library (development)

Introduction

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

What is libppl-dev

libppl-dev is:

The Parma Polyhedra Library (PPL) is a C++ library for the manipulation of (not necessarily closed) convex polyhedra and other numerical abstractions. The applications of convex polyhedra include program analysis, optimized compilation, integer and combinatorial optimization and statistical data-editing. The Parma Polyhedra Library is user friendly (you write `x + 2y + 5z <= 7’ when you mean it), fully dynamic (available virtual memory is the only limitation to the dimension of anything), written in standard C++, exception-safe, rather efficient and thoroughly documented.

This package provides the header files and static libraries for the C and C++ interfaces.

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

sudo apt-get -y install libppl-dev

Install libppl-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libppl-dev

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

sudo aptitude -y install libppl-dev

How To Uninstall libppl-dev on Ubuntu 18.04

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

sudo apt-get remove libppl-dev

Uninstall libppl-dev And Its Dependencies

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

sudo apt-get -y autoremove libppl-dev

Remove libppl-dev Configurations and Data

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

sudo apt-get -y purge libppl-dev

Remove libppl-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libppl-dev

References

Summary

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