How To Install libumfpack5 on Ubuntu 18.04

In this tutorial we learn how to install libumfpack5 on Ubuntu 18.04. libumfpack5 is sparse LU factorization library

Introduction

In this tutorial we learn how to install libumfpack5 on Ubuntu 18.04.

What is libumfpack5

libumfpack5 is:

Suitesparse is a collection of libraries for computations involving sparse matrices.

The UMFPACK library provides a set of routines solving sparse linear systems via LU factorization.

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

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

sudo apt-get update

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

sudo apt-get -y install libumfpack5

Install libumfpack5 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libumfpack5 using apt by running the following command:

sudo apt -y install libumfpack5

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

sudo aptitude -y install libumfpack5

How To Uninstall libumfpack5 on Ubuntu 18.04

To uninstall only the libumfpack5 package we can use the following command:

sudo apt-get remove libumfpack5

Uninstall libumfpack5 And Its Dependencies

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

sudo apt-get -y autoremove libumfpack5

Remove libumfpack5 Configurations and Data

To remove libumfpack5 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libumfpack5

Remove libumfpack5 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libumfpack5

References

Summary

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