How To Install zsh on CentOS 7
Introduction
In this tutorial we learn how to install zsh
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install zsh.
Install zsh on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install zsh
using yum
by running the following command:
Install zsh on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install zsh
using dnf
by running the following command:
How To Uninstall zsh on CentOS 7
To uninstall only the zsh
package we can use the following command:
References
Summary
In this tutorial we learn how to install zsh
on CentOS 7 using yum
and dnf
.