How To Install nfs-kernel-server on Ubuntu 20.04
Introduction
In this tutorial we learn how to install nfs-kernel-server
on Ubuntu 20.04.
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.
Package: nfs-kernel-server Architecture: amd64 Version: 1:1.3.4-2.5ubuntu3.3 Priority: optional Section: net Source: nfs-utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian kernel team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 410 Provides: knfs, nfs-server Depends: libblkid1 (>= 2.16), libc6 (>= 2.15), libcap2 (>= 1:2.10), libsqlite3-0 (>= 3.5.9), libtirpc3 (>= 1.0.2), libwrap0 (>= 7.6-4~), nfs-common (= 1:1.3.4-2.5ubuntu3.3), ucf, netbase, lsb-base (>= 1.3-9ubuntu3), keyutils Conflicts: knfs, nfs-server Replaces: knfs, nfs-server Filename: pool/main/n/nfs-utils/nfs-kernel-server_1.3.4-2.5ubuntu3.3_amd64.deb Size: 98896 MD5sum: 1a549e1d1e687bc6f8fabf983c6d56bd SHA1: 74a893d7a392bacca48b5ce3fbcdea4b63b14542 SHA256: 869387edf87ac1e6f694b32019b1a57bc04190d4671f517b210236970afc421e SHA512: f81c8e561500711b653df3e25070088a15fde5f26b46674b331b71dba0ee1df39729ed991361d4105a8a67768c74e574a6d2a9f1c57ba6e36987ac872f1a7376 Homepage: http://nfs.sourceforge.net/ Description-en: support for NFS kernel server 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.
Package: nfs-kernel-server Architecture: amd64 Version: 1:1.3.4-2.5ubuntu3 Priority: optional Section: net Source: nfs-utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian kernel team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 358 Provides: knfs, nfs-server Depends: libblkid1 (>= 2.16), libc6 (>= 2.15), libcap2 (>= 1:2.10), libsqlite3-0 (>= 3.5.9), libtirpc3 (>= 1.0.2), libwrap0 (>= 7.6-4~), nfs-common (= 1:1.3.4-2.5ubuntu3), ucf, netbase, lsb-base (>= 1.3-9ubuntu3), keyutils Conflicts: knfs, nfs-server Replaces: knfs, nfs-server Filename: pool/main/n/nfs-utils/nfs-kernel-server_1.3.4-2.5ubuntu3_amd64.deb Size: 94824 MD5sum: 9eddc8e5525edd7588cbf9fbb9be5b5f SHA1: c00181b6cabeccd27e5aeb3a219d11bee49208b6 SHA256: 4f2759a75c847b735dd60c14578d4590e1cc1f2c7ea3301238717f115e604350 Homepage: http://nfs.sourceforge.net/ Description-en: support for NFS kernel server 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 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 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 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 nfs-kernel-server
using aptitude
by running the following command:
sudo aptitude -y install nfs-kernel-server
How To Uninstall nfs-kernel-server on Ubuntu 20.04
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 Ubuntu 20.04, 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 Ubuntu 20.04 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
References
Summary
In this tutorial we learn how to install nfs-kernel-server
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.