Avatar ·

How to update Cargo to the latest stable version? Command to update the Rust package manager

Greetings community! I just started learning Rust and encountered a confusing situation. I installed Rust via the official rustup installer, everything works, but I noticed that I have Cargo version 1.68.0, while the official website already has version 1.72.0. I tried to update Cargo like a regular package, but it didn't work. Here's what I tried: ```rust // I thought that since Cargo is a package, it could be updated like this: // cargo update cargo // But that didn't work // Then I tried through cargo itself: cargo install cargo // It gave an error: "error: specified package has no binaries" // I thought maybe through the system: // sudo apt update && sudo apt upgrade cargo // But the Ubuntu repositories have an old version // I also tried: rustup update cargo // But rustup doesn't know this command ``` Please advise