How To Install nfs-common on Ubuntu 20.04
Introduction
In this tutorial we learn how to install nfs-common
on Ubuntu 20.04.
What is nfs-common
nfs-common is:
Use this package on any machine that uses NFS, either as client or server. Programs included: lockd, statd, showmount, nfsstat, gssd, idmapd and mount.nfs.
Package: nfs-common 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: 812 Provides: nfs-client Depends: libc6 (>= 2.15), libcap2 (>= 1:2.10), libcom-err2 (>= 1.43.9), libdevmapper1.02.1 (>= 2:1.02.97), libevent-2.1-7 (>= 2.1.8-stable), libgssapi-krb5-2 (>= 1.17), libkeyutils1 (>= 1.5.9), libkrb5-3 (>= 1.6.dfsg.2), libmount1 (>= 2.19.1), libnfsidmap2, libtirpc3 (>= 1.0.2), libwrap0 (>= 7.6-4~), rpcbind, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), keyutils Recommends: python3 Suggests: open-iscsi, watchdog Conflicts: nfs-client Breaks: nfs-kernel-server (« 1:1.2.8-6~) Replaces: mount (« 2.13~), nfs-client, nfs-kernel-server (« 1:1.2.8-6~) Filename: pool/main/n/nfs-utils/nfs-common_1.3.4-2.5ubuntu3.3_amd64.deb Size: 204084 MD5sum: 62a780aebbd70c507b4153652b79d24b SHA1: 7599ea9742f0b58f430550a085655443fcfd9d29 SHA256: aa77347fd0ba3b4845de717bc80db0240a2bc7b98082a7100118b122653c2b93 SHA512: d1b5be4098a5f1da758171857ad4244b771af67ea27809db3e677dd5eeba56b56e8c2f28a8c714fb5a9b58dc8a2462c65b2d8059634110255d4d18af0d695e5f Homepage: http://nfs.sourceforge.net/ Description-en: NFS support files common to client and server Use this package on any machine that uses NFS, either as client or server. Programs included: lockd, statd, showmount, nfsstat, gssd, idmapd and mount.nfs.
Package: nfs-common 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: 816 Provides: nfs-client Depends: libc6 (>= 2.15), libcap2 (>= 1:2.10), libcom-err2 (>= 1.43.9), libdevmapper1.02.1 (>= 2:1.02.97), libevent-2.1-7 (>= 2.1.8-stable), libgssapi-krb5-2 (>= 1.17), libkeyutils1 (>= 1.5.9), libkrb5-3 (>= 1.6.dfsg.2), libmount1 (>= 2.19.1), libnfsidmap2, libtirpc3 (>= 1.0.2), libwrap0 (>= 7.6-4~), rpcbind, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), keyutils Recommends: python3 Suggests: open-iscsi, watchdog Conflicts: nfs-client Breaks: nfs-kernel-server (« 1:1.2.8-6~) Replaces: mount (« 2.13~), nfs-client, nfs-kernel-server (« 1:1.2.8-6~) Filename: pool/main/n/nfs-utils/nfs-common_1.3.4-2.5ubuntu3_amd64.deb Size: 204856 MD5sum: 3ca5dd9eecea1d478c87b1f4f9b38273 SHA1: 8a255716a452d7bee69b3461b404fb8456deb28d SHA256: a1c68b9b073effbf6e8e67642f65ddab5f4a0d2dff68451aac4db01c9be2d7f5 Homepage: http://nfs.sourceforge.net/ Description-en: NFS support files common to client and server Use this package on any machine that uses NFS, either as client or server. Programs included: lockd, statd, showmount, nfsstat, gssd, idmapd and mount.nfs.
There are three methods to install nfs-common
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-common 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-common
using apt-get
by running the following command:
sudo apt-get -y install nfs-common
Install nfs-common Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nfs-common
using apt
by running the following command:
sudo apt -y install nfs-common
Install nfs-common 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-common
using aptitude
by running the following command:
sudo aptitude -y install nfs-common
How To Uninstall nfs-common on Ubuntu 20.04
To uninstall only the nfs-common
package we can use the following command:
sudo apt-get remove nfs-common
Uninstall nfs-common And Its Dependencies
To uninstall nfs-common
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove nfs-common
Remove nfs-common Configurations and Data
To remove nfs-common
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge nfs-common
Remove nfs-common configuration, data, and all of its dependencies
We can use the following command to remove nfs-common
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nfs-common
References
Summary
In this tutorial we learn how to install nfs-common
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.