How to Install and Uninstall bat Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 15,2024

1. Install "bat" package

This guide covers the steps necessary to install bat on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install bat

2. Uninstall "bat" package

Please follow the instructions below to uninstall bat on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove bat $ sudo apt autoclean && sudo apt autoremove

3. Information about the bat package on Ubuntu 20.10 (Groovy Gorilla)

Package: bat
Architecture: amd64
Version: 0.12.1-2
Built-Using: rust-ansi-colours (= 1.0.1-2), rustc (= 1.41.0+dfsg1+llvm-0ubuntu2)
Multi-Arch: allowed
Priority: optional
Section: universe/utils
Source: rust-bat
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Rust Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4224
Depends: libc6 (>= 2.18), libgcc-s1 (>= 4.2), libgit2-28 (>= 0.28.1)
Filename: pool/universe/r/rust-bat/bat_0.12.1-2_amd64.deb
Size: 1584744
MD5sum: d79a393c1f16e007057f37d5241bf131
SHA1: bd1ca15196da8432fd492498e19dacd78ff20e05
SHA256: f8dc2604bea75a8d6f2ba0ba4d5cd3fc8fb8e011782865dc724905c5b12f158d
SHA512: ae4bb1f2de6a8a0a6db5668a96378e10f93bfc0052f11afa64375c38fc64de1d484145f4316116d1c2f20baa5c8050c5e08da9aa97d3e147ea0f6a2ba7152222
Homepage: https://github.com/sharkdp/bat
Description-en: cat(1) clone with syntax highlighting and git integration
bat is a drop-in cat(1) replacement featuring:
.
* syntax highlighting for a large number of languages;
* git integration;
* automatic paging;
* a user-friendly command-line interface.
.
In this package the executable and its manpage have been renamed from ‘bat’ to
‘batcat’ because of a file name clash with another Debian package.
.
This package contains the following binaries built from the Rust crate
"bat":
- bat
Description-md5: e152d540ea8fcb3d63dd53b95d9270ac
X-Cargo-Built-Using: rust-adler32 (= 1.0.3-1), rust-aho-corasick (= 0.7.8-1), rust-ansi-colours (= 1.0.1-2), rust-ansi-term (= 0.12.1-1), rust-atty (= 0.2.13-2), rust-base64 (= 0.11.0-1), rust-bincode (= 1.2.1-2), rust-bitflags (= 1.2.1-1), rust-byteorder (= 1.3.2-2), rust-cfg-if (= 0.1.10-2build1), rust-clap (= 2.33.0-5), rust-clicolors-control (= 1.0.1-1), rust-console (= 0.8.0-1), rust-content-inspector (= 0.2.4-1), rust-crc32fast (= 1.2.0-1), rust-dirs (= 2.0.2-1), rust-dirs-sys (= 0.3.4-1), rust-encoding (= 0.2.33-1), rust-encoding-index-japanese (= 1.20141219.5-1), rust-encoding-index-korean (= 1.20141219.5-1), rust-encoding-index-simpchinese (= 1.20141219.5-1), rust-encoding-index-singlebyte (= 1.20141219.5-1), rust-encoding-index-tests (= 0.1.4-1), rust-encoding-index-tradchinese (= 1.20141219.5-1), rust-error-chain (= 0.12.0-1build1), rust-flate2 (= 1.0.13-1), rust-fnv (= 1.0.6-1), rust-git2 (= 0.10.2-1), rust-humantime (= 1.3.0-1), rust-idna (= 0.2.0-1), rust-indexmap (= 1.2.0-1), rust-itoa (= 0.4.3-1), rust-lazy-static (= 1.4.0-1), rust-lazycell (= 1.2.1-1), rust-libc (= 0.2.66-1), rust-libgit2-sys (= 0.9.2-2), rust-libz-sys (= 1.0.25-1), rust-line-wrap (= 0.1.1-1), rust-linked-hash-map (= 0.5.2-2), rust-log (= 0.4.8-4), rust-matches (= 0.1.8-1), rust-memchr (= 2.2.1-1), rust-miniz-oxide (= 0.3.5-1), rust-onig (= 5.0.0-2), rust-onig-sys (= 69.2.0-1), rust-percent-encoding (= 2.1.0-2), rust-plist (= 0.5.1-1), rust-quick-error (= 1.2.2-1), rust-regex (= 1.2.1-3), rust-regex-syntax (= 0.6.13-1), rust-ryu (= 1.0.2-1), rust-safemem (= 0.3.3-1), rust-same-file (= 1.0.6-1), rust-serde (= 1.0.104-1), rust-serde-json (= 1.0.41-1), rust-shell-words (= 0.1.0-1), rust-smallvec (= 1.1.0-1), rust-strsim (= 0.9.3-1), rust-syntect (= 3.3.0-2), rust-term-size (= 0.3.1-2), rust-termios (= 0.3.0-1), rust-textwrap (= 0.11.0-1build1), rust-thread-local (= 0.3.6-1), rust-unicode-bidi (= 0.3.4-2), rust-unicode-normalization (= 0.1.11-1), rust-unicode-width (= 0.1.7-1), rust-url (= 2.1.0-1), rust-vec-map (= 0.8.1-2), rust-walkdir (= 2.3.1-1), rust-wild (= 2.0.2-1), rust-xml-rs (= 0.8.0-1build1), rust-yaml-rust (= 0.4.3-1), rustc (= 1.41.0+dfsg1+llvm-0ubuntu2)