Showing posts with label uninstall. Show all posts
Showing posts with label uninstall. Show all posts

Friday, May 24, 2024

Part 2: rustup; why; using git

 

rustup; why

Turns out rustup is essential to many projects (zed, redox).
 

curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh

https://www.rust-lang.org/learn/get-started
Don't forget to update every once in a while (see Issue #1208 ).

rustup update
 
Ignore what I said:
 
rustup self uninstall

https://code2care.org/rust/uninstall-rust-lang-from-mac-linux-or-ubuntu/

 

Using git


Tuesday, April 23, 2024

part 1:clean rust install

Note:

If you need rustc and cargo to learn rust you might not need rustup.  However it is required for most projects.   So follow this.

Install Rust (macos)

 curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh

 

The install (see above) is as easy as the official site (https://www.rust-lang.org/tools/install) says.   So why don't I like it?

Well I know I would have to:

  1. examine the script and try to figure out what it was doing
  2. write a note to myself about some directory paths
  3. review above note to uninstall 
  4. leave behind a bunch of left over files

Instructions

macport is the package manager I use.

download and install macports from macports.org

A how to for homebrew users.

You don't need xcode but you will need the tools.  Launch terminal and enter these commands:

xcode-select --install

sudo port install rust
sudo port install cargo

 

cd /opt/local/bin 

./rustc --version
rustc 1.77.1 (7cf61ebde 2024-03-27) (built from a source tarball)
 

Success you have installed rust!

macos 12.7 Monterey macbook pro 2.7 GHz Core i5 (I5-5257U)

Part 2: rustup; why