CentOS/RHEL: How To install Korn shell (KSH)

Korn shell is a shell program on unix system, it is used to vairety of unix operating system, suchas: sun unix, IBM AIX.etc. Ksh was developed by David Korn at Bell Labs. ksh  is not installed on centos or rhel system by default. so how Do I install Korn shell program(ksh) on my centos system. This article will guide you how to install korn shell program.

​CentOS Install Korn Shell 


Type the following yum command on centos system:

yum install ksh

outputs:

Loaded plugins: fastestmirror

Determining fastest mirrors

* base: ftp.nsysu.edu.tw

* extras: ftp.cs.pu.edu.tw

* updates: mirrors.stuhome.net

base                                                                 | 3.7 kB     00:00

extras                                                              | 3.4 kB     00:00

updates                                                           | 3.4 kB     00:00

updates/primary_db                                | 3.9 MB     00:05

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package ksh.x86_64 0:20100621-19.el6_4.4 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================

Package        Arch              Version                          Repository

Size

============================================================================================

Installing:

ksh            x86_64            20100621-19.el6_4.4              updates            687 k

Transaction Summary

============================================================================================

Install       1 Package(s)

Total download size: 687 k

Installed size: 1.5 M

Is this ok [y/N]:

Downloading Packages:

ksh-20100621-19.el6_4.4.x86_64.rpm                       | 687 kB     00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : ksh-20100621-19.el6_4.4.x86_64                     1/1

Verifying  : ksh-20100621-19.el6_4.4.x86_64                    1/1

Installed:

ksh.x86_64 0:20100621-19.el6_4.4

Complete!

Check if ksh is installed,type:

whereis ksh

or

rpm -qa | grep ksh

outputs:

[root@devops Desktop]# whereis ksh

ksh: /usr/bin/ksh /usr/share/man/man1/ksh.1.gz

[root@devops Desktop]# rpm -qa | grep ksh

ksh-20120801-19.el7.x86_64

Check korn shell version,type:

ksh --version

outputs:

[root@devops Desktop]# ksh --version

  version         sh (AT&T Research) 93u+ 2018-08-01

done …

You might also like:

Sidebar



back to top