2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Scoopのインストール

Last updated at Posted at 2020-09-25

Scoopとは

Windows用のコマンドラインパッケージマネージャー。

Chocolateyと比較したメリット

  • アンインストールをScoop上のみで完結できる
  • UACポップアップが無い

インストールの前提条件

  • Windows PowerShell 3以上
  • .NET Framework 4.5以上

インストール手順

1. PowerShell を起動する。

※[Win]または[Win]+[s]で、検索ボックスに「powershell」と入力すれば起動できる)

2. ポリシー設定変更

ローカルの PowerShell スクリプトを実行できるように、PowerShell 実行ポリシーを Restricted から RemoteSigned に設定する。

PowerShell
PS C:\> Set-ExecutionPolicy RemoteSigned -scope CurrentUser -force

3. インストールスクリプトを実行する

get.scoop.sh を Invoke-WebRequest でダウンロードして invoke-Expression で起動する。
※ iwr : Invoke-WebRequest のエイリアス
※ iex : invoke-Expression のエイリアス

PowerShell
PS C:\> iwr -useb get.scoop.sh | iex

4. Scoopのディレクトリ構成

デフォルトでは、ユーザーディレクトリ下にScoopのディレクトリが作成されます。
%UserProfile%/.config/
%UserProfile%/scoop/

参考文献

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?