How To Install libasr0 on Ubuntu 18.04

In this tutorial we learn how to install libasr0 on Ubuntu 18.04. libasr0 is asynchronous DNS resolver

Introduction

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

What is libasr0

libasr0 is:

libasr provides a simple interface for asynchronous address resolution and nameserver querying. It should be used in place of the classical resolver functions of libc when blocking is not desirable. libasr is thread-safe and lock-free internally except for the two atypical use cases listed in asr_run(3).

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

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

sudo apt-get update

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

sudo apt-get -y install libasr0

Install libasr0 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libasr0

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

sudo aptitude -y install libasr0

How To Uninstall libasr0 on Ubuntu 18.04

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

sudo apt-get remove libasr0

Uninstall libasr0 And Its Dependencies

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

sudo apt-get -y autoremove libasr0

Remove libasr0 Configurations and Data

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

sudo apt-get -y purge libasr0

Remove libasr0 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libasr0

References

Summary

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