Install latest/stable of shfmt

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.

Install using the command line

sudo snap install shfmt

Don't have snapd? Get set up for snaps.

Channel Version Published

A shell parser, formatter and interpreter (POSIX/Bash/mksh).

"A shell parser, formatter and interpreter (POSIX/Bash/mksh)."

Details for shfmt

  • BSD-3-Clause

Last updated
  • 22 April 2020 - latest/stable
  • 27 July 2022 - latest/edge



Share this snap

Generate an embeddable card to be shared on external websites.

Install shfmt on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.

Where people are using shfmt

Users by distribution (log)

Ubuntu 20.04
Ubuntu 22.04
Ubuntu 18.04
Ubuntu 23.10
Debian 11
pop 22.04
Ubuntu 16.04
Debian 12
Ubuntu 23.04
CentOS 7
Debian 10
Linux Mint 21.3
Ubuntu 24.04
Debian sid
Fedora 39
Ubuntu 21.10

Is there a problem with shfmt? Report this app