How to Install and Uninstall rustfmt Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 11,2024

1. Install "rustfmt" package

Please follow the steps below to install rustfmt on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install rustfmt

2. Uninstall "rustfmt" package

This tutorial shows how to uninstall rustfmt on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove rustfmt $ sudo apt autoclean && sudo apt autoremove

3. Information about the rustfmt package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: rustfmt
Architecture: amd64
Version: 1.59.0+dfsg1~ubuntu1~llvm-1~ubuntu1~18.04.2
Multi-Arch: allowed
Priority: optional
Section: universe/devel
Source: rustc
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Rust Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 9225
Depends: libc6 (>= 2.25), libgcc1 (>= 1:4.2)
Recommends: cargo
Filename: pool/universe/r/rustc/rustfmt_1.59.0+dfsg1~ubuntu1~llvm-1~ubuntu1~18.04.2_amd64.deb
Size: 2303648
MD5sum: 15b9cfb7e74d548dacb8d4e0be03fc08
SHA1: d976bd01922c6108ca4db77e8c6a04ada1dabfbf
SHA256: 1dde49c90275c25a5082efc14ec41977e142439119320ea9a519477cd585d0d3
SHA512: d4543d36e02b3a77443e6a4d06f0c129c3ef9735a80007f2ef93bf09a2eea49ab4a14f4075ffea905a7d0cca112edee2f78fb9a59a55fd028c0f5367c3745e1a
Homepage: http://www.rust-lang.org/
Description: Rust formatting helper
Description-md5: 3ad3031d946444f1737bc02666f33a91