Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to install Zsh version 5.6.2 into CentOS 7

How to install Zsh version 5.6.2 into CentOS 7

Given that you have a clean installation of CentOS 7 which was already updated, by you, then you still have some dependencies to install make and install the external Zsh from the source. You must be root to get the stuff done.

Install GCC Development Tools

yum groupinstall "Development tools"

Check if it's working

gcc -v

Get and install ncurses

yum install ncurses-devel

Download the zsh sources

wget https://sourceforge.net/projects/zsh/files/zsh/5.6.2/zsh-5.6.2.tar.xz/download

Untar it

tar -xvJf download

Prepare the loaded sources

cd zsh-5.6.2 ./configure

Make a binary

make

Install the binary

make install

Edit the /etc/shells file to let CentOS know about the Zsh

vi /etc/shells

Insert the next line to the bottom and save it

/usr/local/bin/zsh

Change the system's shell

chsh -s /usr/local/bin/zsh

Done (TM) ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment