How To Install nfs-kernel-server on Kali Linux
Introduction
In this tutorial we learn how to install nfs-kernel-server
on Kali Linux.
What is nfs-kernel-server
nfs-kernel-server is:
The NFS kernel server is currently the recommended NFS server for use with Linux, featuring features such as NFSv3 and NFSv4, Kerberos support via GSS, and much more. It is also significantly faster and usually more reliable than the user-space NFS servers (from the unfs3 and nfs-user-server packages). However, it is more difficult to debug than the user-space servers, and has a slightly different feature set.
This package contains the user-space support needed to use the NFS kernel server. Most administrators wishing to set up an NFS server would want to install this package.
There are three methods to install nfs-kernel-server
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install nfs-kernel-server Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nfs-kernel-server
using apt-get
by running the following command:
sudo apt-get -y install nfs-kernel-server
Install nfs-kernel-server Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nfs-kernel-server
using apt
by running the following command:
sudo apt -y install nfs-kernel-server
Install nfs-kernel-server Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install nfs-kernel-server
using aptitude
by running the following command:
sudo aptitude -y install nfs-kernel-server
How To Uninstall nfs-kernel-server on Kali Linux
To uninstall only the nfs-kernel-server
package we can use the following command:
sudo apt-get remove nfs-kernel-server
Uninstall nfs-kernel-server And Its Dependencies
To uninstall nfs-kernel-server
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove nfs-kernel-server
Remove nfs-kernel-server Configurations and Data
To remove nfs-kernel-server
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge nfs-kernel-server
Remove nfs-kernel-server configuration, data, and all of its dependencies
We can use the following command to remove nfs-kernel-server
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nfs-kernel-server
Dependencies
nfs-kernel-server have the following dependencies:
References
Summary
In this tutorial we learn how to install nfs-kernel-server
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.