How to Install or Uninstall nvi Ubuntu 22.04

Updated: August 29, 2022

Vi is the original screen based text editor for Unix systems. It is considered the standard text editor, and is available on almost all Unix systems. In this tutorial, I will show you how to install nvi on Ubuntu 22.04.

Prerequisites

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install nvi on Ubuntu 22.04

Install nvi Ubuntu 22.04

nvi 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 that you think is easy and you can follow.

Install nvi using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get nvi on your Ubuntu.

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. Launch the terminal and enter the following Linux command:

sudo apt update

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

sudo apt -y install nvi

Install nvi using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

Then, you can now install nvi, just following these steps:

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. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install nvi Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install nvi

Uninstall nvi 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.

This command can be used to uninstall nvi from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove nvi

You can also execute this command if you want to uninstall nvi and remove its data and dependencies:

sudo apt autoremove --purge nvi

Ending

In this tutorial, I showed you ways to install nvi on Ubuntu 22.04 and some ways to uninstall nvi too. Please contact me if you require any assistance. I’d be delighted to respond.