Scoopをインストール
Scoop (スクープ) とは
Windows 用のコマンドライン版のインストーラである。 通常windowsでアプリをinstallする際にはinstall.exeなどのインストーラを使って アプリを入れますがScoopならコマンドライン(power shell)からインストールが可能になります。
Linux ディストリビューションではパッケージマネージャ(apt-get などコマンドライン) で アプリのインストール/更新/アンインストールを行うことができる。 Scoop はこれのwindows版に相当します。
インストールコマンド(power shell)
PS> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force PS> iwr -useb get.scoop.sh | iex
実際のインストール画面
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. 新しいクロスプラットフォームの PowerShell をお試しください https://aka.ms/pscore6 PS C:\Users\********> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force 実行ポリシーの変更 実行ポリシーは、信頼されていないスクリプトからの保護に役立ちます。実行ポリシーを変更すると、about_Execution_Policies のヘルプ トピック (https://go.microsoft.com/fwlink/?LinkID=135170) で説明されているセキュリティ上の危険にさらされる可能性があります。実行ポリシーを変更しますか? [Y] はい(Y) [A] すべて続行(A) [N] いいえ(N) [L] すべて無視(L) [S] 中断(S) [?] ヘルプ (既定値は "N"): y PS C:\Users\********> iwr -useb get.scoop.sh | iex Initializing... Downloading ... Extracting... Creating shim... Adding ~\scoop\shims to your path. Scoop was installed successfully! Type 'scoop help' for instructions. PS C:\Users\********>
scoopを使ってgitをinstallしてみる
gitのインストール
> scoop install git
gitのアンインストール
> scoop uninstall git
scoop コマンド一覧
> scoop help Usage: scoop[ ] Available commands are listed below. Type 'scoop help ' to get more help for a specific command. Command Summary ------- ------- alias Manage scoop aliases bucket Manage Scoop buckets cache Show or clear the download cache cat Show content of specified manifest. checkup Check for potential problems cleanup Cleanup apps by removing old versions config Get or set configuration values create Create a custom app manifest depends List dependencies for an app, in the order they'll be installed download Download apps in the cache folder and verify hashes export Exports installed apps, buckets (and optionally configs) in JSON format help Show help for a command hold Hold an app to disable updates home Opens the app homepage import Imports apps, buckets and configs from a Scoopfile in JSON format info Display information about an app install Install apps list List installed apps prefix Returns the path to the specified app reset Reset an app to resolve conflicts search Search available apps shim Manipulate Scoop shims status Show status and check for new app versions unhold Unhold an app to enable updates uninstall Uninstall an app update Update apps, or Scoop itself virustotal Look for app's hash or url on virustotal.com which Locate a shim/executable (similar to 'which' on Linux)
created: