How To Install libtrio-dev on Ubuntu 18.04

In this tutorial we learn how to install libtrio-dev on Ubuntu 18.04. libtrio-dev is portable and extendable printf and string functions development files

Introduction

In this tutorial we learn how to install libtrio-dev on Ubuntu 18.04.

What is libtrio-dev

libtrio-dev 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.

This package provides header files and static libraries.

There are three methods to install libtrio-dev 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 libtrio-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 libtrio-dev using apt-get by running the following command:

sudo apt-get -y install libtrio-dev

Install libtrio-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtrio-dev

Install libtrio-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libtrio-dev

How To Uninstall libtrio-dev on Ubuntu 18.04

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

sudo apt-get remove libtrio-dev

Uninstall libtrio-dev And Its Dependencies

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

sudo apt-get -y autoremove libtrio-dev

Remove libtrio-dev Configurations and Data

To remove libtrio-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtrio-dev

Remove libtrio-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtrio-dev

References

Summary

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