Skip to content
pkgseek
All tools

shfmt

Formatting

Format shell scripts and print shell syntax trees.

Aliases: shfmt

Installation by platform

Package and binary names are factual values and are never translated.

Package verification report

Debian

Verified
package
shfmt
binary
shfmt
repository
main
sudo apt install shfmt

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
trixie/main3.8.0-1+b8amd64/usr/bin/shfmt

Verified 2026-07-02source

Ubuntu

Repository not indexed
package
shfmt
binary
shfmt
repository
main/universe
sudo apt install shfmt

Verified 2026-07-02source

Arch

Verified
package
shfmt
binary
shfmt
repository
extra
sudo pacman -S shfmt

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
rolling/extra3.14.1-1x86_64/usr/bin/shfmt

Verified 2026-07-02source

Fedora

Verified
package
shfmt
binary
shfmt
repository
fedora
sudo dnf install shfmt

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
42/everything3.7.0-5.fc41x86_64/usr/bin/shfmt
43/everything3.7.0-5.fc41x86_64/usr/bin/shfmt
44/everything3.7.0-5.fc41x86_64/usr/bin/shfmt

Verified 2026-07-02source

Alpine

Verified
package
shfmt
binary
shfmt
repository
community
sudo apk add shfmt

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
3.22/community3.11.0-r5x86_64/usr/bin/shfmt
3.23/community3.11.0-r10x86_64/usr/bin/shfmt

Verified 2026-07-02source

openSUSE

Verified
package
shfmt
binary
shfmt
repository
oss
sudo zypper install shfmt

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
15.6/oss3.5.1-bp156.2.16aarch64/usr/bin/shfmt
15.6/oss3.5.1-bp156.2.16ppc64le/usr/bin/shfmt
15.6/oss3.5.1-bp156.2.16s390x/usr/bin/shfmt
15.6/oss3.5.1-bp156.2.16x86_64/usr/bin/shfmt
16.0/oss3.5.1-bp160.1.13aarch64/usr/bin/shfmt
16.0/oss3.5.1-bp160.1.13ppc64le/usr/bin/shfmt
16.0/oss3.5.1-bp160.1.13s390x/usr/bin/shfmt
16.0/oss3.5.1-bp160.1.13x86_64/usr/bin/shfmt
tumbleweed/oss3.12.0-1.7x86_64/usr/bin/shfmt

Verified 2026-07-02source

Homebrew

Platform outside package index
package
shfmt
binary
shfmt
repository
homebrew/core
brew install shfmt

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
rolling/core3.14.1anynot indexed

Verified 2026-07-02source

Commands and flags

Flags are imported with their command-level source and verification date.

shfmt

shfmt [OPTIONS] [PATHS]

Verified 2026-07-02source

FlagDescriptionSince
-wWrite results back to files.—
-dPrint a diff instead of formatted output.—
-i <spaces>Set indentation width.—
-ln <lang>Select shell language variant.—