How to install ksh on Ubuntu?

I have Ubuntu 18.04 TLS . One big programmer asked me a ksh for installation.

apt-get install ksh  # (don't work at all).

So, I went to https://build.opensuse.org/project/repository_state/shells:ksh:new:latest/xUbuntu_18.04 and downloaded ksh_20180811.0.0+git.1425.2e927b99.orig.tar and unpacked.

app-compat-travis.yml
bin
CHANGELOG.md
config_ast.h.in
CONTRIBUTING.md
coverity-travis.yml
debian
etc
features
lib
LICENSE
meson.build
meson_options.txt
packaging
README.md
scripts
src

what can I do now?!

Can you install any other packages on Ubuntu? Say

apt-get install tcsh
apt-get install nginx

Install ksh on Ubuntu using wget and dpkg

If I were you I will download it from https://packages.ubuntu.com/bionic/ksh

wget http://mirrors.kernel.org/ubuntu/pool/universe/k/ksh/ksh_93u+20120801-3.1ubuntu1_amd64.deb
ls *.deb

Install ksh deb ( ksh_93u+20120801-3.1ubuntu1_amd64.deb ) it on Ubuntu:

sudo dpkg -i ksh_93u+20120801-3.1ubuntu1_amd64.deb

Test it:

lsb_release -a
ksh
ksh --version

last line said:

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

I don’t know why but I issued again: apt-get install ksh and it installed! I didn’t apt-get update, but rebooted server. May be it had automatically update.

Always install packages on Ubuntu using the apt command or apt-get command. That is an official and trouble-free method for developers and sysadmins. For instance:

1. Update repo

The first command should be:

sudo apt-get update
## or ## 
apt update 

2. Install KSH on Ubuntu

Now that repo updated run:

sudo apt-get install ksh
## OR ## 
sudo apt install ksh


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki