How To Install libtrio2 on Ubuntu 18.04

In this tutorial we learn how to install libtrio2 on Ubuntu 18.04. libtrio2 is portable and extendable printf and string functions

Introduction

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

What is libtrio2

libtrio2 is:

Trio is a fully matured and stable set of printf and string functions designed be used by applications with focus on portability or with the need for additional features that are not supported by standard stdio implementation.

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

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

sudo apt-get update

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

sudo apt-get -y install libtrio2

Install libtrio2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtrio2

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

sudo aptitude -y install libtrio2

How To Uninstall libtrio2 on Ubuntu 18.04

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

sudo apt-get remove libtrio2

Uninstall libtrio2 And Its Dependencies

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

sudo apt-get -y autoremove libtrio2

Remove libtrio2 Configurations and Data

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

sudo apt-get -y purge libtrio2

Remove libtrio2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtrio2

References

Summary

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