How To Install zsh on AlmaLinux 8

In this tutorial we learn how to install zsh in AlmaLinux 8. zsh is Powerful interactive shell

Introduction

In this tutorial we learn how to install zsh on AlmaLinux 8.

What is zsh

The zsh shell is a command interpreter usable as an interactive login shell and as a shell script command processor. Zsh resembles the ksh shell (the Korn shell), but includes many enhancements. Zsh supports command line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and more.

We can use yum or dnf to install zsh on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install zsh.

Install zsh on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install zsh using dnf by running the following command:

sudo dnf -y install zsh

Install zsh on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install zsh using yum by running the following command:

sudo yum -y install zsh

How To Uninstall zsh on AlmaLinux 8

To uninstall only the zsh package we can use the following command:

sudo dnf remove zsh

References

Summary

In this tutorial we learn how to install zsh on AlmaLinux 8 using yum and dnf.