How to Install and Uninstall rustfmt Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 11,2024

1. Install "rustfmt" package

This tutorial shows how to install rustfmt on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install rustfmt

2. Uninstall "rustfmt" package

Please follow the guidelines below to uninstall rustfmt on Ubuntu 21.10 (Impish Indri):

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

3. Information about the rustfmt package on Ubuntu 21.10 (Impish Indri)

Package: rustfmt
Architecture: amd64
Version: 1.53.0+dfsg1+llvm-4ubuntu1~21.10.1
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: 8820
Depends: libc6 (>= 2.34), libgcc-s1 (>= 4.2)
Recommends: cargo
Filename: pool/universe/r/rustc/rustfmt_1.53.0+dfsg1+llvm-4ubuntu1~21.10.1_amd64.deb
Size: 2454320
MD5sum: c6490e316c77157c954a7b0524a440bb
SHA1: 944354524c9bb493843656535857e11824c7f2ca
SHA256: 32cf960663b8166ee3a20ac7aedac3a7b33ae3924b0a6929cc097537839f8eb6
SHA512: 40ebba3ac23d1c9433639754b8e790ea13a33dc1a522fc856adee4f0fd96c4148737140f2366891f083b3de7147a1e51a12a6680d5fa85f75f244263348108fe
Homepage: http://www.rust-lang.org/
Description-en: Rust formatting helper
Rust is a curly-brace, block-structured expression language. It
visually resembles the C language family, but differs significantly
in syntactic and semantic details. Its design is oriented toward
concerns of "programming in the large", that is, of creating and
maintaining boundaries - both abstract and operational - that
preserve large-system integrity, availability and concurrency.
.
It supports a mixture of imperative procedural, concurrent actor,
object-oriented and pure functional styles. Rust also supports
generic programming and meta-programming, in both static and dynamic
styles.
.
This package contains 'rustfmt', a tool for formatting Rust code according to
style guidelines, as well as 'cargo-fmt', a helper enabling running rustfmt
directly with 'cargo fmt'.
Description-md5: 3ad3031d946444f1737bc02666f33a91