How To Install libsundials-serial-dev on Debian 9

In this tutorial we learn how to install libsundials-serial-dev on Debian 9. libsundials-serial-dev is SUNDIALS development files

Introduction

In this tutorial we learn how to install libsundials-serial-dev on Debian 9.

What is libsundials-serial-dev

libsundials-serial-dev is:

The family of solvers referred to as SUNDIALS (SUit of Nonlinear and DIfferential/ALgebraic equation Solvers) consists of solvers CVODE (for ODE systems), CVODES (ODE with sensitivity analysis capabilities), IDA (for differential-algebraic systems), and KINSOL (for nonlinear algebraic systems).

This package contains files necessary for development applications using SUNDIALS in C and, in case of FCVODE and FKINSOL, Fortran. It also contains various example programs distributed by the upstream authors.

There are three methods to install libsundials-serial-dev on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libsundials-serial-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 libsundials-serial-dev using apt-get by running the following command:

sudo apt-get -y install libsundials-serial-dev

Install libsundials-serial-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsundials-serial-dev

Install libsundials-serial-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libsundials-serial-dev

How To Uninstall libsundials-serial-dev on Debian 9

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

sudo apt-get remove libsundials-serial-dev

Uninstall libsundials-serial-dev And Its Dependencies

To uninstall libsundials-serial-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libsundials-serial-dev

Remove libsundials-serial-dev Configurations and Data

To remove libsundials-serial-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libsundials-serial-dev

Remove libsundials-serial-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsundials-serial-dev

Dependencies

libsundials-serial-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libsundials-serial-dev package on Debian 9 using different package management tools: apt, apt-get and aptitude.