How to install Z shell in Fedora 38

How to install Z shell in Fedora 38

To install:

sudo dnf install zsh

Output looks like this:

Last metadata expiration check: 0:02:21 ago on Fri 29 Sep 2023 11:57:41 AM CEST.
Dependencies resolved.
================================================================================================================================================================================================
 Package                                   Architecture                                 Version                                             Repository                                     Size
================================================================================================================================================================================================
Installing:
 zsh                                       x86_64                                       5.9-7.fc38                                          updates                                       3.3 M

Transaction Summary
================================================================================================================================================================================================
Install  1 Package

Total download size: 3.3 M
Installed size: 8.0 M
Is this ok [y/N]: y
Downloading Packages:
zsh-5.9-7.fc38.x86_64.rpm                                                                                                                                       1.1 MB/s | 3.3 MB     00:02    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                           945 kB/s | 3.3 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                        1/1 
  Installing       : zsh-5.9-7.fc38.x86_64                                                                                                                                                  1/1 
  Running scriptlet: zsh-5.9-7.fc38.x86_64                                                                                                                                                  1/1 
  Verifying        : zsh-5.9-7.fc38.x86_64                                                                                                                                                  1/1 

Installed:
  zsh-5.9-7.fc38.x86_64                                                                                                                                                                         

Complete!

To change the default shell:

chsh -s $(which zsh)

Output looks like this:

Changing shell for terminator.
Password: 
Shell changed.