How to Install and Uninstall shfmt Package on Ubuntu 23.10 (Mantic Minotaur)

Last updated: May 20,2024

1. Install "shfmt" package

Here is a brief guide to show you how to install shfmt on Ubuntu 23.10 (Mantic Minotaur)

$ sudo apt update $ sudo apt install shfmt

2. Uninstall "shfmt" package

Please follow the instructions below to uninstall shfmt on Ubuntu 23.10 (Mantic Minotaur):

$ sudo apt remove shfmt $ sudo apt autoclean && sudo apt autoremove

3. Information about the shfmt package on Ubuntu 23.10 (Mantic Minotaur)

Package: shfmt
Architecture: amd64
Version: 3.6.0-1build1
Built-Using: golang-1.21 (= 1.21.0-1), golang-github-google-renameio (= 2.0.0-2), golang-github-pkg-diff (= 0.0~git20210226.20ebb0f-1), golang-golang-x-sync (= 0.2.0-1), golang-golang-x-sys (= 0.8.0-1), golang-golang-x-term (= 0.8.0-1), golang-mvdan-editorconfig (= 0.2.0-3)
Priority: optional
Section: universe/utils
Source: golang-mvdan-sh
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2967
Enhances: bash, dash, mksh
Filename: pool/universe/g/golang-mvdan-sh/shfmt_3.6.0-1build1_amd64.deb
Size: 1128750
MD5sum: a1156c8eb6dfc30a77ee10902cacd2f9
SHA1: 974f0ad6ead48c76bed0f2a4ccbe92e0bb7e1864
SHA256: 1717c6688d8d6e8453c02132d28731ba9bf8912b29498909e419483ad7aff385
SHA512: bd4b1cc7cc8cb62ea2699a167b98226a4ded41ed5c7b290d6433ea8729b0cbd7c4207ab6e6db39cb4e1caa7dfa524302f672b9b1ac50bd0d01847220b9790e5a
Homepage: https://github.com/mvdan/sh
Description: format shell programs
Description-md5: c837009d07c29d753e21e40b3c31b95e