what is the command to update all my rust packages

Viewed 1116

I installed several rust applications using:

cargo install fd-find sd ripgrep rga bat tealdeer exa git-delta du-dust

Is there any command like sudo apt update && sudo apt upgrade which I can use to update the packages.

2 Answers

There is a optional subcommand cargo-update to do that:

cargo install cargo-update
cargo install-update -a

Done.

Cargo subcommand can be used for checking and applying updates to installed executables.

You can try cargo-update

cargo install cargo-update

General syntax

cargo install-update [OPTIONS] [PACKAGE…]

Update all installed packages :

cargo install-update -af

Update only selective packages :

cargo install-update fd-find sd ripgrep rga bat tealdeer exa git-delta du-dust

Reference : https://docs.rs/cargo-update/7.0.1/cargo_update/index.html

Related