How to Uninstall and Install zsh-common on Ubuntu 22.04

Updated: October 26, 2022

Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, zsh most closely resembles ksh but includes many enhancements. Zsh has command-line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a host of other features. I will show you how to install zsh-common on Ubuntu 22.04 in this tutorial.

Requirements

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install zsh-common on Ubuntu 22.04

Install zsh-common Ubuntu 22.04

zsh-common 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 zsh-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 zsh-common on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting 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-get update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install zsh-common Ubuntu by executing this command in the terminal.

sudo apt-get install zsh-common

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

sudo apt install aptitude

Then, you can now install zsh-common by following these steps:

Step 1: You must update the APT package repository cache before attempting 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-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install zsh-common Ubuntu by executing this command in the terminal.

sudo aptitude install zsh-common

Uninstall zsh-common on Ubuntu 22.04

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

You can uninstall zsh-common on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove zsh-common

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

sudo apt autoremove --purge zsh-common

Ending

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