2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windowsのパッケージマネジャー「scoop」

2
Last updated at Posted at 2026-04-03

Windowsのパッケージマネジャー「scoop」

Windowsには標準で winget というパッケージ管理のコマンドが用意されています。 winget でインストールしたパッケージをアンインストールすると、完全に消えてくれないことがよくあります。そこで「scoop」をおすすめします。

scoopのインストール

管理者権限は不要です。PowerShellで次のコマンドでインストールします。このコマンドは、現在ログインしているユーザのフォルダ C:\Users\ユーザ名\scoop にscoopフォルダを生成し、必要なファイルを配置します。

PowerShell
# スクリプト実行の許可
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

# Scoopのインストール
irm get.scoop.sh | iex

gitpython をインストール

Scoop で実際にパッケージをインストールする例を紹介します。

PowerShell
# git をインストールする
scoop install git

# python をインストールする
scoop install python

VS code をインストールする

VS code も簡単にインストールできます。

PowerShell
# extrasパケットを追加
scoop bucket extras

# VS codeをインストール
scoop install vscode

gitpython をアンインストール

Scoop で実際にパッケージをアンインストールする例を紹介します。

PowerShell
# git をアンインストールする
scoop uninstall git

# python をアンインストールする
scoop uninstall python

VS code をアンインストールする

PowerShell
# VS code をアンインストールする
scoop uninstall vscode

scoop でインストールされたパッケージを確認

PowerShell
scoop list

# 出力例
# Installed apps:

# Name     Version  Source Updated             Info
# ----     -------  ------ -------             ----
# 7zip     26.00    main   2026-04-03 20:31:07
# cmake    4.3.1    main   2026-04-03 23:00:31
# dark     3.14.1   main   2026-04-03 20:41:26
# gh       2.89.0   main   2026-04-03 21:24:56
# git      2.53.0.2 main   2026-04-03 21:22:17
# ninja    1.13.2   main   2026-04-03 23:00:32
# python   3.14.3   main   2026-04-03 21:01:35
# teraterm 5.6.0    extras 2026-04-04 02:12:04
# vscode   1.114.0  extras 2026-04-03 20:50:51

そのほか便利なコマンド

PowerShell におけるコマンドの所在を表示するには Get-Command コマンドを利用します。

PowerShell
Get-Command scoop
# または 
gcm scoop

# 出力例
# CommandType     Name             Version    Source
# -----------     ----             -------    ------
# ExternalScript  scoop.ps1                   # C:\Users\ユーザ名\scoop\shims\scoop.ps1


# コマンドのパスのみ表示
(gcm scoop).Source

# 出力例
# C:\Users\ユーザ名\scoop\shims\scoop.ps1

C:\Users\ユーザ名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\

おわりに

Scoop はコマンドライン操作のみで、必要なパッケージを簡単にインストールでき、さらにゴミを出さずにアンインストールもできる重宝するツールだと思います。

2
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?