Monday, May 6, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 8039  / 2 Years ago, wed, october 26, 2022, 9:17:02

The latest release version of zsh is 4.3.14.



I was wondering what is the easiest way to install it on Ubuntu. Is there a PPA for it? Also, is there a site that lists or collects Ubuntu PPA's for generic packages?


More From » installation

 Answers
6

You might be interested in zsh-beta, it is the Ubuntu repositories (Universe). The advantage is ease of updates. The downside, there may be a bit of a delay (in this case zsh-4.3.14 is not yet in the Ubuntu repositories).



sudo apt-get install zsh-beta


I did not find any more recent version in any ppa.



The other option is to compile zsh yourself.



Install build-essential



sudo apt-get install build-essential


Download and extract the source code. The documentation in the README and INSTALL is most detailed.



cd ~/zsh-3.3.14

# list options
./configure --help

./configure --prefix=/usr/local

make

sudo make install


Your new zsh should be in /usr/local/bin/zsh



If it is working, you can add it to /etc/shells:



command -v zsh | sudo tee -a /etc/shells


and then use chsh to set your shell:



sudo chsh -s "$(command -v zsh)" "${USER}"


Log out and log in from your user to see the changes. Typing echo $SHELL in your terminal should now yield /usr/local/bin/zsh.


[#41418] Thursday, October 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
assionortly

Total Points: 423
Total Questions: 121
Total Answers: 115

Location: Chad
Member since Wed, Sep 30, 2020
4 Years ago
;