How To Install libcln6 on Ubuntu 18.04

In this tutorial we learn how to install libcln6 on Ubuntu 18.04. libcln6 is Class Library for Numbers (C++)

Introduction

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

What is libcln6

libcln6 is:

CLN is a library for computations with all kinds of numbers. It has a rich set of number classes, including integers (with unlimited precision), reals with various precisions (including unlimited), rationals, complex numbers and polynomials. The kernel is written in assembly language. It uses garbage collection (automatic, without imposing any burden on the main application). Many efficient algorithms (i.e. for all transcendental functions) are implemented.

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

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

sudo apt-get update

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

sudo apt-get -y install libcln6

Install libcln6 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcln6

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

sudo aptitude -y install libcln6

How To Uninstall libcln6 on Ubuntu 18.04

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

sudo apt-get remove libcln6

Uninstall libcln6 And Its Dependencies

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

sudo apt-get -y autoremove libcln6

Remove libcln6 Configurations and Data

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

sudo apt-get -y purge libcln6

Remove libcln6 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcln6

References

Summary

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