How to Install and Uninstall cargo Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 05,2024

1. Install "cargo" package

Here is a brief guide to show you how to install cargo on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install cargo

2. Uninstall "cargo" package

In this section, we are going to explain the necessary steps to uninstall cargo on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the cargo package on Ubuntu 20.04 LTS (Focal Fossa)

Package: cargo
Architecture: amd64
Version: 1.72.1+dfsg0ubuntu1~bpo0-0ubuntu0.20.04
Multi-Arch: allowed
Priority: extra
Section: universe/devel
Source: rustc
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Rust Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 20368
Depends: libc6 (>= 2.29), libcurl3-gnutls (>= 7.28.0), libgcc-s1 (>= 4.2), libssh2-1 (>= 1.7.0), libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.2.3.4), rustc (= 1.72.1+dfsg0ubuntu1~bpo0-0ubuntu0.20.04), binutils, gcc | clang | c-compiler
Suggests: cargo-doc, python3
Filename: pool/universe/r/rustc/cargo_1.72.1+dfsg0ubuntu1~bpo0-0ubuntu0.20.04_amd64.deb
Size: 5713912
MD5sum: 1c1865c1930f3aae58e4928ccfcdc689
SHA1: 72e4bdbbca8a7cdd569c2d749c98f59b4cc6b434
SHA256: 020069f801b964b349b0a543a2fb12b2a51e18cf41e67ea1a7d4a5a78f5b032c
SHA512: 0cf04b856c1c031762a6e8d47b5ca0318a185f38ddda151ce4890a398b96596189e655e70c1fd30e220233dd040ea61d3267395bb4172dd0d89301415af4d6ff
Homepage: http://www.rust-lang.org/
Description: Rust package manager
Description-md5: f894562a11fc2421647ac771e1f6c13a

Package: cargo
Architecture: amd64
Version: 0.42.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: 10261
Depends: libc6 (>= 2.29), libcurl3-gnutls (>= 7.28.0), libgcc-s1 (>= 4.2), libgit2-28 (>= 0.28.1), 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.42.0-0ubuntu1_amd64.deb
Size: 2808896
MD5sum: 1191370aba4412d7bc0c7f67c987b9e9
SHA1: 30d919012e3b438d84fa2e381306865952507d1d
SHA256: 817d9b999209c56b1ed2fe75dc5a3f07840a6bc00a16c7748917279dbbf6d56b
Homepage: https://crates.io/
Description: Rust package manager
Description-md5: f894562a11fc2421647ac771e1f6c13a