How To Install librbio2 on Ubuntu 18.04

In this tutorial we learn how to install librbio2 on Ubuntu 18.04. librbio2 is read/write sparse matrices in Rutherford/Boeing format

Introduction

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

What is librbio2

librbio2 is:

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

RBio is a library for reading/writing sparse matrices in the Rutherford/Boeing format.

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

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

sudo apt-get update

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

sudo apt-get -y install librbio2

Install librbio2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librbio2

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

sudo aptitude -y install librbio2

How To Uninstall librbio2 on Ubuntu 18.04

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

sudo apt-get remove librbio2

Uninstall librbio2 And Its Dependencies

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

sudo apt-get -y autoremove librbio2

Remove librbio2 Configurations and Data

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

sudo apt-get -y purge librbio2

Remove librbio2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librbio2

References

Summary

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