Justman10000

Manage Rust & Cargo

Mar 30th, 2025 (edited)
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. // To install
  2. curl -s https://sh.rustup.rs -o rust.sh
  3. bash rust.sh --default-toolchain nightly --profile complete --no-update-default-toolchain --no-modify-path -y
  4.  
  5. cat << EOF >> /root/.bashrc
  6.  
  7. # Rust
  8. export PATH="/root/.cargo/bin:$PATH"
  9. EOF
  10.  
  11. cargo --version
  12.  
  13. // To uninstall
  14. rm -r /root/.cargo
Advertisement
Add Comment
Please, Sign In to add comment