How To Install libnfs11 on Ubuntu 18.04

In this tutorial we learn how to install libnfs11 on Ubuntu 18.04. libnfs11 is NFS client library (shared library)

Introduction

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

What is libnfs11

libnfs11 is:

LIBNFS is a client library for accessing NFS shares over a network.

LIBNFS offers three different APIs, for different use : 1, RAW : A fully async low level rpc library for nfs protocols 2, NFS ASYNC : A fully asynchronous library for high level vfs functions 3, NFS SYNC : A synchronous library for high level vfs functions

This package provides the shared library.

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

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

sudo apt-get update

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

sudo apt-get -y install libnfs11

Install libnfs11 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libnfs11

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

sudo aptitude -y install libnfs11

How To Uninstall libnfs11 on Ubuntu 18.04

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

sudo apt-get remove libnfs11

Uninstall libnfs11 And Its Dependencies

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

sudo apt-get -y autoremove libnfs11

Remove libnfs11 Configurations and Data

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

sudo apt-get -y purge libnfs11

Remove libnfs11 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libnfs11

References

Summary

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