How to Install and Uninstall cargo Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: April 29,2024

1. Install "cargo" package

Here is a brief guide to show you how to install cargo on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install cargo

2. Uninstall "cargo" package

This tutorial shows how to uninstall cargo on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove cargo $ sudo apt autoclean && sudo apt autoremove

3. Information about the cargo package on Ubuntu 21.04 (Hirsute Hippo)

Package: cargo
Architecture: amd64
Version: 0.51.0-0ubuntu1
Multi-Arch: allowed
Priority: extra
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Rust Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 10656
Depends: libc6 (>= 2.33), libcurl3-gnutls (>= 7.28.0), libgcc-s1 (>= 4.2), libgit2-1.1 (>= 1.1.0), libssh2-1 (>= 1.2.5), libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4), rustc (>= 1.24), binutils, gcc | clang | c-compiler
Suggests: cargo-doc, python3
Filename: pool/universe/c/cargo/cargo_0.51.0-0ubuntu1_amd64.deb
Size: 2954716
MD5sum: 35ba91e28c0cdb5572c801953a24ed3d
SHA1: 9f93f38df47b600f606397e01235079f9a088f86
SHA256: dce7642cbf128824b34d4a7832f0d9b2c0b03c1d408d27ad65ac6ec81719666e
SHA512: 3197f62c575172d8ba87bacbbce4329359d6c4d8b5f02b8c9a6129bf30fa5e6a24e6b2b674feda321f8a041e9a8b893c831344b61e465c13db1a18904e348520
Homepage: https://crates.io/
Description-en: Rust package manager
Cargo is a tool that allows Rust projects to declare their various
dependencies, and ensure that you'll always get a repeatable build.
.
To accomplish this goal, Cargo does four things:
* Introduces two metadata files with various bits of project information.
* Fetches and builds your project's dependencies.
* Invokes rustc or another build tool with the correct parameters to build
your project.
* Introduces conventions, making working with Rust projects easier.
.
Cargo downloads your Rust project’s dependencies and compiles your
project.
Description-md5: f894562a11fc2421647ac771e1f6c13a