Skip to content

Instantly share code, notes, and snippets.

@binary4cat
Forked from Semo/Howto_Zsh5-6-2_Centos7.md
Created March 31, 2021 07:14
Show Gist options
  • Save binary4cat/081f3bc8c841d8d6c9f7cac381e276b9 to your computer and use it in GitHub Desktop.
Save binary4cat/081f3bc8c841d8d6c9f7cac381e276b9 to your computer and use it in GitHub Desktop.
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