差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
windows:scoop [2020/05/14 18:04] – [アプリのインストール/アンインストール[install/uninstall]] ともやん | windows:scoop [2020/05/26 20:19] – [グローバルインストール [--global] オプション] ともやん | ||
---|---|---|---|
行 56: | 行 56: | ||
</ | </ | ||
</ | </ | ||
+ | または、別名の短いコマンドは以下の通り\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ iwr -useb get.scoop.sh | iex | ||
+ | </ | ||
+ | </ | ||
+ | |||
<WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | ||
<code powershell> | <code powershell> | ||
行 555: | 行 562: | ||
</ | </ | ||
- | ==== グローバルインストール [--global] オプション ==== | + | ==== グローバルインストール [-g, --global] オプション ==== |
+ | デフォルトでは **C: | ||
+ | パスに **PATH=C: | ||
<code powershell> | <code powershell> | ||
- | $ scoop install | + | $ scoop install --global |
</ | </ | ||
<WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | ||
行 584: | 行 593: | ||
Running post-install script... | Running post-install script... | ||
' | ' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <code powershell> | ||
+ | $ scoop list | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | Installed apps: | ||
+ | |||
+ | 7zip 19.00 *global* | ||
+ | git 2.26.2.windows.1 *global* | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === sudo コマンドをグローバルインストール === | ||
+ | <code powershell> | ||
+ | $ scoop install sudo --global | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | Updating Scoop... | ||
+ | Updating ' | ||
+ | Checking repo... ok | ||
+ | The main bucket was added successfully. | ||
+ | Scoop was updated successfully! | ||
+ | Installing ' | ||
+ | sudo.ps1 (2.2 KB) [===========================================================================================] 100% | ||
+ | Checking hash of sudo.ps1 ... ok. | ||
+ | Linking C: | ||
+ | Creating shim for ' | ||
+ | ' | ||
+ | PS C: | ||
+ | Installed apps: | ||
+ | |||
+ | 7zip 19.00 *global* | ||
+ | git 2.26.2.windows.1 *global* | ||
+ | sudo 0.2020.01.26 *global* | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | グローバルインストールされた Scoop アプリ\\ | ||
+ | <code powershell> | ||
+ | $ scoop list | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | Installed apps: | ||
+ | |||
+ | 7zip 19.00 *global* | ||
+ | git 2.26.2.windows.1 *global* | ||
+ | sudo 0.2020.01.26 *global* | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === 管理者として実行されていない場合... === | ||
+ | <code powershell> | ||
+ | $ scoop install git --global | ||
+ | </ | ||
+ | エラーとなる。\\ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | ERROR: you need admin rights to install global apps | ||
+ | </ | ||
+ | < | ||
+ | エラー:グローバルアプリをインストールするには管理者権限が必要です | ||
</ | </ | ||
</ | </ | ||
行 1016: | 行 1091: | ||
Checking repo... ok | Checking repo... ok | ||
The extras bucket was added successfully. | The extras bucket was added successfully. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Scoop のアンインストール ===== | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ scoop uninstall scoop | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | WARN This will uninstall Scoop and all the programs that have been installed with Scoop! | ||
+ | Are you sure? (yN): y | ||
+ | Removing ~\scoop\shims from your path. | ||
+ | Scoop has been uninstalled. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ del ~\scoop -Force | ||
</ | </ | ||
</ | </ |