---
title: Install shfmt on Linux | Snap Store
description: Get the latest version of shfmt for Linux - A shell parser, formatter
  and interpreter (POSIX/Bash/mksh).
url: https://snapcraft.io/shfmt
---

# shfmt

[Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")

* [Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")
* [Development](https://snapcraft.io/search?categories=development)
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 3.12.0

Install latest/stable of shfmt

---

**Install using the command line**

```
sudo snap install shfmt
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* shfmt

---

### License

* BSD-3-Clause

---

### Last updated

* 28 July 2025 - latest/stable
* 23 July 2025 - latest/edge

---

### Websites

* [github.com/mvdan/sh](https://github.com/mvdan/sh "https://github.com/mvdan/sh")

---

### Contact

* [github.com/canonical/snapcrafters-shfmt](https://github.com/canonical/snapcrafters-shfmt "https://github.com/canonical/snapcrafters-shfmt")

---

### Report a bug

* [github.com/canonical/snapcrafters-shfmt/issues/new](https://github.com/canonical/snapcrafters-shfmt/issues/new "https://github.com/canonical/snapcrafters-shfmt/issues/new")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/shfmt#report-snap-modal)

---

* [Description](https://snapcraft.io/shfmt#tab-description)
* [Security](https://snapcraft.io/shfmt#tab-security)

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

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

---

## 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](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/shfmt/arch)

[### CentOS](https://snapcraft.io/install/shfmt/centos)

[### Debian](https://snapcraft.io/install/shfmt/debian)

[### elementary OS](https://snapcraft.io/install/shfmt/elementary)

[### Fedora](https://snapcraft.io/install/shfmt/fedora)

[### KDE Neon](https://snapcraft.io/install/shfmt/kde-neon)

[### Kubuntu](https://snapcraft.io/install/shfmt/kubuntu)

[### Manjaro](https://snapcraft.io/install/shfmt/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/shfmt/pop)

[### openSUSE](https://snapcraft.io/install/shfmt/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/shfmt/rhel)

[### Ubuntu](https://snapcraft.io/install/shfmt/ubuntu)
