How to Uninstall or Install nfs-server Ubuntu 22.04

Updated: November 1, 2022

This is a virtual package. See the Debian policy for a definition of virtual packages. In this tutorial, I will show you how to install nfs-server on Ubuntu 22.04.

Requirements to install

  • OS: nfs-server needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install nfs-server on Ubuntu 22.04

Install nfs-server Ubuntu 22.04

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

Install nfs-server using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these steps to install nfs-server on your Ubuntu.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install nfs-server Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get -y install nfs-server

Install nfs-server 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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After installing aptitude, you can now install nfs-server by following these steps:

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

sudo apt-get update

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

sudo aptitude install nfs-server

Uninstall nfs-server on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a nfs-server, can be easily uninstalled by anyone.

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

sudo apt remove --auto-remove nfs-server

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

sudo apt autoremove --purge nfs-server


In this tutorial, I showed you ways to install nfs-server on Ubuntu 22.04 and ways to uninstall nfs-server too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.