How To Install libnfs-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libnfs-dev
on Ubuntu 20.04.
What is libnfs-dev
libnfs-dev 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 necessary files needed for development.
There are three methods to install libnfs-dev
on Ubuntu 20.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 libnfs-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 libnfs-dev
using apt-get
by running the following command:
sudo apt-get -y install libnfs-dev
Install libnfs-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnfs-dev
using apt
by running the following command:
sudo apt -y install libnfs-dev
Install libnfs-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 libnfs-dev
using aptitude
by running the following command:
sudo aptitude -y install libnfs-dev
How To Uninstall libnfs-dev on Ubuntu 20.04
To uninstall only the libnfs-dev
package we can use the following command:
sudo apt-get remove libnfs-dev
Uninstall libnfs-dev And Its Dependencies
To uninstall libnfs-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libnfs-dev
Remove libnfs-dev Configurations and Data
To remove libnfs-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libnfs-dev
Remove libnfs-dev configuration, data, and all of its dependencies
We can use the following command to remove libnfs-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnfs-dev
References
Summary
In this tutorial we learn how to install libnfs-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.