OS/Ubuntu

Ubuntu 26.04 RUST (rustup) Install / Uninstall

강서버 2026. 4. 24. 18:08
728x90
반응형

1. Install

 

2. Uninstall

 

 

Install

* Rustup: the Rust installer and version management tool

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

 

[ Execution log ]

* If curl is not installed, an error occurs; install curl first, then install rust.

 

gangserver@TCM73-U0424:~$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
명령어 'curl' 을(를) 찾을 수 없습니다. 그러나 다음을 통해 설치할 수 있습니다:
sudo snap install curl  # version 8.19.0, or
sudo apt  install curl  # version 8.18.0-1ubuntu2
'snap info curl'에서 추가적인 버전을 확인하십시오.

 

 

- Install curl

gangserver@TCM73-U0424:~$ sudo apt install curl
[sudo: authenticate] 비밀번호:       
설치할 패키지:                                    
  curl

요약:
  업그레이드: 0, 설치: 1, 삭제: 0, 업그레이드 안 함: 0
  다운로드 크기: 272 kB
  필요한 공간: 521 kB / 8,595 MB 사용 가능

받기:1 http://kr.archive.ubuntu.com/ubuntu resolute/main amd64 curl amd64 8.18.0-1ubuntu2 [272 kB]
내려받기 272 k바이트, 소요시간 0초 (919 k바이트/초)
Selecting previously unselected package curl.
(데이터베이스 읽는중 ...현재 195268개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../curl_8.18.0-1ubuntu2_amd64.deb ...
Unpacking curl (8.18.0-1ubuntu2) ...
curl (8.18.0-1ubuntu2) 설정하는 중입니다 ...
Processing triggers for man-db (2.13.1-1build1) ...

 

 

- Install Rust

gangserver@TCM73-U0424:~$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer
warn: It looks like you have an existing rustup settings file at:
warn: /home/gangserver/.rustup/settings.toml
warn: Rustup will install the default toolchain as specified in the settings file,
warn: instead of the one inferred from the default host triple.

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/gangserver/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

  /home/gangserver/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /home/gangserver/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/gangserver/.profile
  /home/gangserver/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
> (Press Enter)

info: profile set to default
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for stable-x86_64-unknown-linux-gnu
info: latest update on 2026-04-16 for version 1.95.0 (59807616e 2026-04-14)
info: downloading 6 components
        cargo installed                       10.48 MiB
       clippy installed                        4.48 MiB
    rust-docs installed                       21.18 MiB
     rust-std installed                       28.20 MiB
        rustc installed                       76.63 MiB
      rustfmt installed                        2.06 MiB                                                     info: default toolchain set to stable-x86_64-unknown-linux-gnu

  stable-x86_64-unknown-linux-gnu installed - rustc 1.95.0 (59807616e 2026-04-14)


Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, you need to source
the corresponding env file under $HOME/.cargo.

This is usually done by running one of the following (note the leading DOT):
. "$HOME/.cargo/env"            # For sh/bash/zsh/ash/dash/pdksh
source "$HOME/.cargo/env.fish"  # For fish
source "~/.cargo/env.nu"  # For nushell
source "$HOME/.cargo/env.tcsh"  # For tcsh
. "$HOME/.cargo/env.ps1"        # For pwsh
source "$HOME/.cargo/env.xsh"   # For xonsh

 

 

 

Update

$ rustup update

 

[ Execution log ]

gangserver@TCM73-U0424:~$ rustup update
info: syncing channel updates for stable-x86_64-unknown-linux-gnu

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.95.0 (59807616e 2026-04-14)

info: checking for self-update (current version: 1.29.0)
info: cleaning up downloads & tmp directories

 

 

 

Check version

$ rustc --version

 

[ Execution log ]

gangserver@TCM73-U0424:~$ rustc --version
rustc 1.95.0 (59807616e 2026-04-14)

 

 

 

Uninstall

$ rustup self uninstall

 

[ Execution log ]

gangserver@TCM73-U0424:~$ rustup self uninstall


Thanks for hacking in Rust!

This will uninstall all Rust toolchains and data, and remove
$HOME/.cargo/bin from your PATH environment variable.

Continue? (y/N) y

info: removing rustup home
info: removing cargo home
info: removing rustup binaries
info: rustup is uninstalled

 

 

728x90
반응형