How to Install and Uninstall cargo Package on Debian 12 (Bookworm)

Last updated: April 29,2024

1. Install "cargo" package

Please follow the instructions below to install cargo on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install cargo

2. Uninstall "cargo" package

Please follow the guidance below to uninstall cargo on Debian 12 (Bookworm):

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

3. Information about the cargo package on Debian 12 (Bookworm)

Package: cargo
Version: 0.66.0+ds1-1
Installed-Size: 12241
Maintainer: Rust Maintainers
Architecture: amd64
Depends: libc6 (>= 2.34), libcurl3-gnutls (>= 7.28.0), libgcc-s1 (>= 4.2), libgit2-1.5 (>= 1.5.0), libssh2-1 (>= 1.2.5), libssl3 (>= 3.0.0), zlib1g (>= 1:1.1.4), rustc (>= 1.24), binutils, gcc | clang | c-compiler
Suggests: cargo-doc, python3
Description: Rust package manager
Description-md5: f894562a11fc2421647ac771e1f6c13a
Multi-Arch: allowed
Homepage: https://crates.io/
Section: rust
Priority: optional
Filename: pool/main/c/cargo/cargo_0.66.0+ds1-1_amd64.deb
Size: 3419492
MD5sum: 4c9c0443a535500816f86ecf3b3371ef
SHA256: 2b12583c9ed71fae0707f7e568afbc232bace5a9e25e94b3800480aa7d295c39