Ways to Install and Uninstall nfs-common on Ubuntu 22.04

Updated: October 21, 2022

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. I will show you how to install nfs-common on Ubuntu 22.04 in this tutorial.

Requirements to install

  • OS: Ubuntu 22.04 is needed for nfs-common to work
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install nfs-common on Ubuntu 22.04

Install nfs-common Ubuntu 22.04

nfs-common is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install nfs-common using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install nfs-common on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install nfs-common Ubuntu by executing this command in the terminal.

sudo apt -y install nfs-common

Install nfs-common using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing it, you can now install nfs-common by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install nfs-common Ubuntu by executing this command in the terminal.

sudo aptitude install nfs-common

Uninstall nfs-common on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed nfs-common using APT or Aptitude, you could uninstall nfs-common on Ubuntu by executing this command

sudo apt remove --auto-remove nfs-common

If you want to uninstall nfs-common and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nfs-common

Ending

In this tutorial, I showed you ways to install nfs-common on Ubuntu 22.04 and some ways to uninstall nfs-common too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.