ユーザ用ツール

サイト用ツール


サイドバー

Top

タグ

検索タグ

メニュー


変更履歴

windows:scoop

Scoop - Windows 用のコマンドラインインストーラ

Scoop Logo
本家: Scoop
ドキュメント: Home · lukesampson/scoop Wiki
ソースコード: lukesampson/scoop: A command-line installer for Windows.

Scoop (スクープ) は、Windows 用のコマンドラインインストーラである。LinuxLinux カーネルを用いたオペレーティングシステム ディストリビューション用のパッケージマネージャ (dnfapt など) のように、アプリのインストール/更新/アンインストールを行うことができる。

インストール

$ Set-ExecutionPolicy RemoteSigned -scope CurrentUser
実行ポリシーの変更
実行ポリシーは、信頼されていないスクリプトからの保護に役立ちます。実行ポリシーを変更すると、about_Execution_Policies
のヘルプ トピック (https://go.microsoft.com/fwlink/?LinkID=135170)
で説明されているセキュリティ上の危険にさらされる可能性があります。実行ポリシーを変更しますか?
[Y] はい(Y)  [A] すべて続行(A)  [N] いいえ(N)  [L] すべて無視(L)  [S] 中断(S)  [?] ヘルプ (既定値は "N"): y <- y を入力
$ Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

または、別名の短いコマンドは以下の通り

$ iwr -useb get.scoop.sh | iex
Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2020-03-12T19:20:09.9538543+09:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.
$ scoop help
Usage: scoop <command> [<args>]

Some useful commands are:

alias       Manage scoop aliases
bucket      Manage Scoop buckets
cache       Show or clear the download cache
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
export      Exports (an importable) list of installed apps
help        Show help for a command
hold        Hold an app to disable updates
home        Opens the app homepage
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
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 on virustotal.com
which       Locate a shim/executable (similar to 'which' on Linux)

Type 'scoop help <command>' to get help for a specific command.

バケット [bucket]

Bucket (バケット) とはアプリのコレクション(ダウンロード元)のことで、具体的にはアプリのインストール方法を記述する JSON アプリマニフェストを含む Git リポジトリである。インストール直後は main バケットのみが利用できる。

$ scoop bucket list
main

バケットの追加 [bucket add]

バケットを追加するためには、Git が必要である。

$ scoop install git

Git がインストールされていないと、Git is required for buckets. が発生する。

Git is required for buckets. Run 'scoop install git' and try again.

ダウンロード元として extras バケットを追加する。

$ scoop bucket add extras
Checking repo... ok
The extras bucket was added successfully.
$ scoop bucket list
extras
main

既知のバケット

$ scoop bucket known
main
extras
versions
nightlies
nirsoft
php
nerd-fonts
nonportable
java
games
jetbrains
バケット 説明
main 最も一般的な(主にCLI)アプリケーションのデフォルトバケット
extras メインバケットの条件に適合しないアプリ
versions 他のバケットにあるアプリの代替バージョン
nightlies ナイトリービルド専用のバケット
nirsoft 250Nirsoft アプリのサブセット
php ほとんどのバージョンの PHP のインストーラ
nerd-fonts ナード フォント
nonportable 非ポータブルアプリケーション(UACが必要な場合があります)
java Oracle Java、OpenJDK、Zulu、ojdkbuild、AdoptOpenJDK、Amazon Corretto、BellSoft Liberica および SapMachine のインストーラ
games オープンソース/フリーウェアゲームおよびゲーム関連ツール
jetbrains すべての JetBrains ユーティリティおよび IDE のインストーラー

参考文献

人気のサードパーティ バケット

tapannallan / awesome-scoop:Windows用scoopパッケージマネージャー用のすばらしいリソースのコレクション

h404bi/dorado: 🐟 A bucket of Scoop, for h404bi
最新の PowerShell Core などが入手できる人気のバケット。

$ scoop bucket add dorado https://github.com/h404bi/dorado

PowerShell Core のインストール。

$ scoop install powershell

or

$ scoop install powershell-preview

独自のバケットを検索

参考文献

search コマンドはバケットを追加していなくても、他のバケット内まで検索対象とするので便利である。

$ scoop bucket list
main
$ scoop search LxRunOffline
Results from other known buckets...
(add them using 'scoop bucket add <name>')
 
'extras' bucket:
    bucket/lxrunoffline

見つからないアプリは独自のバケットを検索

アプリのインストール/アンインストール [install/uninstall]

アプリはスタートメニュー (Scoop Apps) に登録される。
パス:

%HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps

インストールコマンド

$ scoop install sysinternals
Installing 'sysinternals' (December.18.2019) [64bit]
SysinternalsSuite.zip (29.0 MB) [=============================================================================] 100%
Checking hash of SysinternalsSuite.zip ... ok.
Extracting SysinternalsSuite.zip ... done.
Linking ~\scoop\apps\sysinternals\current => ~\scoop\apps\sysinternals\December.18.2019
Creating shim for 'accesschk'.
Creating shim for 'accesschk64'.
Creating shim for 'AccessEnum'.
Creating shim for 'ADExplorer'.
Creating shim for 'ADInsight'.
Creating shim for 'adrestore'.
Creating shim for 'Autologon'.
Creating shim for 'Autoruns'.
Creating shim for 'Autoruns64'.
Creating shim for 'autorunsc'.
Creating shim for 'autorunsc64'.
Creating shim for 'Bginfo'.
Creating shim for 'Bginfo64'.
Creating shim for 'Cacheset'.
Creating shim for 'Clockres'.
Creating shim for 'Clockres64'.
Creating shim for 'Contig'.
Creating shim for 'Contig64'.
Creating shim for 'Coreinfo'.
Creating shim for 'ctrl2cap'.
Creating shim for 'Dbgview'.
Creating shim for 'Desktops'.
Creating shim for 'disk2vhd'.
Creating shim for 'diskext'.
Creating shim for 'diskext64'.
Creating shim for 'Diskmon'.
Creating shim for 'DiskView'.
Creating shim for 'du'.
Creating shim for 'du64'.
Creating shim for 'efsdump'.
Creating shim for 'FindLinks'.
Creating shim for 'FindLinks64'.
Creating shim for 'handle'.
Creating shim for 'handle64'.
Creating shim for 'hex2dec'.
Creating shim for 'hex2dec64'.
Creating shim for 'junction'.
Creating shim for 'junction64'.
Creating shim for 'ldmdump'.
Creating shim for 'Listdlls'.
Creating shim for 'Listdlls64'.
Creating shim for 'livekd'.
Creating shim for 'livekd64'.
Creating shim for 'LoadOrd'.
Creating shim for 'LoadOrd64'.
Creating shim for 'LoadOrdC'.
Creating shim for 'LoadOrdC64'.
Creating shim for 'logonsessions'.
Creating shim for 'logonsessions64'.
Creating shim for 'movefile'.
Creating shim for 'movefile64'.
Creating shim for 'notmyfault'.
Creating shim for 'notmyfault64'.
Creating shim for 'notmyfaultc'.
Creating shim for 'notmyfaultc64'.
Creating shim for 'ntfsinfo'.
Creating shim for 'ntfsinfo64'.
Creating shim for 'pagedfrg'.
Creating shim for 'pendmoves'.
Creating shim for 'pendmoves64'.
Creating shim for 'pipelist'.
Creating shim for 'pipelist64'.
Creating shim for 'portmon'.
Creating shim for 'procdump'.
Creating shim for 'procdump64'.
Creating shim for 'procexp'.
Creating shim for 'procexp64'.
Creating shim for 'Procmon'.
Creating shim for 'PsExec'.
Creating shim for 'PsExec64'.
Creating shim for 'psfile'.
Creating shim for 'psfile64'.
Creating shim for 'PsGetsid'.
Creating shim for 'PsGetsid64'.
Creating shim for 'PsInfo'.
Creating shim for 'PsInfo64'.
Creating shim for 'pskill'.
Creating shim for 'pskill64'.
Creating shim for 'pslist'.
Creating shim for 'pslist64'.
Creating shim for 'PsLoggedon'.
Creating shim for 'PsLoggedon64'.
Creating shim for 'psloglist'.
Creating shim for 'pspasswd'.
Creating shim for 'pspasswd64'.
Creating shim for 'psping'.
Creating shim for 'psping64'.
Creating shim for 'PsService'.
Creating shim for 'PsService64'.
Creating shim for 'psshutdown'.
Creating shim for 'pssuspend'.
Creating shim for 'pssuspend64'.
Creating shim for 'RAMMap'.
Creating shim for 'RegDelNull'.
Creating shim for 'RegDelNull64'.
Creating shim for 'regjump'.
Creating shim for 'ru'.
Creating shim for 'ru64'.
Creating shim for 'sdelete'.
Creating shim for 'sdelete64'.
Creating shim for 'ShareEnum'.
Creating shim for 'ShellRunas'.
Creating shim for 'sigcheck'.
Creating shim for 'sigcheck64'.
Creating shim for 'streams'.
Creating shim for 'streams64'.
Creating shim for 'strings'.
Creating shim for 'strings64'.
Creating shim for 'sync'.
Creating shim for 'sync64'.
Creating shim for 'Sysmon'.
Creating shim for 'Sysmon64'.
Creating shim for 'Tcpvcon'.
Creating shim for 'Tcpview'.
Creating shim for 'Testlimit'.
Creating shim for 'Testlimit64'.
Creating shim for 'vmmap'.
Creating shim for 'Volumeid'.
Creating shim for 'Volumeid64'.
Creating shim for 'whois'.
Creating shim for 'whois64'.
Creating shim for 'Winobj'.
Creating shim for 'ZoomIt'.
Creating shortcut for SysInternals/AccessEnum - View accesses to directories, files and registry keys (AccessEnum.exe)
Creating shortcut for SysInternals/AdExplorer - Active Directory viewer and editor (AdExplorer.exe)
Creating shortcut for SysInternals/AdInsight - An LDAP real-time monitoring tool (AdInsight.exe)
Creating shortcut for SysInternals/Autologon - Bypass password screen during logon (Autologon.exe)
Creating shortcut for SysInternals/Autoruns - View startup programs and processes (autoruns64.exe)
Creating shortcut for SysInternals/BGInfo - Wallpaper text configurator (Bginfo64.exe)
Creating shortcut for SysInternals/CacheSet - Control the Cache Manager's working set size (CACHESET.EXE)
Creating shortcut for SysInternals/DebugView - View OutputDebugString and DbgPrint output (Dbgview.exe)
Creating shortcut for SysInternals/Desktops - Create up to four virtual desktops (Desktops.exe)
Creating shortcut for SysInternals/Disk2vhd - Create VHD files from online disk (Disk2vhd.exe)
Creating shortcut for SysInternals/DiskMon - Disk activity monitor (Diskmon.exe)
Creating shortcut for SysInternals/DiskView - Graphical disk sector utility (DiskView.exe)
Creating shortcut for SysInternals/LoadOrder - See the order in which devices are loaded (LOADORD.EXE)
Creating shortcut for SysInternals/NotMyFault - Crash, hang, and cause kernel memory leaks (NotMyFault64.exe)
Creating shortcut for SysInternals/PageDefrag - Defragment paging files and registry hives (pagedfrg.exe)
Creating shortcut for SysInternals/PortMon - Serial and parallel port activity monitor (PORTMON.EXE)
Creating shortcut for SysInternals/ProcessExplorer - Enhanced Task Manager (procexp64.exe)
Creating shortcut for SysInternals/ProcessMonitor - Monitor file system, registry, process, thread and DLL activity (ProcMon.exe)
Creating shortcut for SysInternals/RAMMap - Graphical display of memory usage (RAMMap.exe)
Creating shortcut for SysInternals/ShareEnum - View network shares (ShareEnum.exe)
Creating shortcut for SysInternals/TcpView - List TCP UDP endpoints (Tcpview.exe)
Creating shortcut for SysInternals/VMMap - View Virtual and Physical Memory (vmmap.exe)
Creating shortcut for SysInternals/Winobj - Object Manager namespace viewer (Winobj.exe)
Creating shortcut for SysInternals/ZoomIt - Screen magnifier for zooming and drawing on the screen (ZoomIt.exe)
'sysinternals' (December.18.2019) was installed successfully!

アンインストールコマンド

$ scoop uninstall sysinternals
Uninstalling 'sysinternals' (December.18.2019).
Removing shim for 'accesschk'.
Removing shim for 'accesschk64'.
Removing shim for 'AccessEnum'.
Removing shim for 'ADExplorer'.
Removing shim for 'ADInsight'.
Removing shim for 'adrestore'.
Removing shim for 'Autologon'.
Removing shim for 'Autoruns'.
Removing shim for 'Autoruns64'.
Removing shim for 'autorunsc'.
Removing shim for 'autorunsc64'.
Removing shim for 'Bginfo'.
Removing shim for 'Bginfo64'.
Removing shim for 'Cacheset'.
Removing shim for 'Clockres'.
Removing shim for 'Clockres64'.
Removing shim for 'Contig'.
Removing shim for 'Contig64'.
Removing shim for 'Coreinfo'.
Removing shim for 'ctrl2cap'.
Removing shim for 'Dbgview'.
Removing shim for 'Desktops'.
Removing shim for 'disk2vhd'.
Removing shim for 'diskext'.
Removing shim for 'diskext64'.
Removing shim for 'Diskmon'.
Removing shim for 'DiskView'.
Removing shim for 'du'.
Removing shim for 'du64'.
Removing shim for 'efsdump'.
Removing shim for 'FindLinks'.
Removing shim for 'FindLinks64'.
Removing shim for 'handle'.
Removing shim for 'handle64'.
Removing shim for 'hex2dec'.
Removing shim for 'hex2dec64'.
Removing shim for 'junction'.
Removing shim for 'junction64'.
Removing shim for 'ldmdump'.
Removing shim for 'Listdlls'.
Removing shim for 'Listdlls64'.
Removing shim for 'livekd'.
Removing shim for 'livekd64'.
Removing shim for 'LoadOrd'.
Removing shim for 'LoadOrd64'.
Removing shim for 'LoadOrdC'.
Removing shim for 'LoadOrdC64'.
Removing shim for 'logonsessions'.
Removing shim for 'logonsessions64'.
Removing shim for 'movefile'.
Removing shim for 'movefile64'.
Removing shim for 'notmyfault'.
Removing shim for 'notmyfault64'.
Removing shim for 'notmyfaultc'.
Removing shim for 'notmyfaultc64'.
Removing shim for 'ntfsinfo'.
Removing shim for 'ntfsinfo64'.
Removing shim for 'pagedfrg'.
Removing shim for 'pendmoves'.
Removing shim for 'pendmoves64'.
Removing shim for 'pipelist'.
Removing shim for 'pipelist64'.
Removing shim for 'portmon'.
Removing shim for 'procdump'.
Removing shim for 'procdump64'.
Removing shim for 'procexp'.
Removing shim for 'procexp64'.
Removing shim for 'Procmon'.
Removing shim for 'PsExec'.
Removing shim for 'PsExec64'.
Removing shim for 'psfile'.
Removing shim for 'psfile64'.
Removing shim for 'PsGetsid'.
Removing shim for 'PsGetsid64'.
Removing shim for 'PsInfo'.
Removing shim for 'PsInfo64'.
Removing shim for 'pskill'.
Removing shim for 'pskill64'.
Removing shim for 'pslist'.
Removing shim for 'pslist64'.
Removing shim for 'PsLoggedon'.
Removing shim for 'PsLoggedon64'.
Removing shim for 'psloglist'.
Removing shim for 'pspasswd'.
Removing shim for 'pspasswd64'.
Removing shim for 'psping'.
Removing shim for 'psping64'.
Removing shim for 'PsService'.
Removing shim for 'PsService64'.
Removing shim for 'psshutdown'.
Removing shim for 'pssuspend'.
Removing shim for 'pssuspend64'.
Removing shim for 'RAMMap'.
Removing shim for 'RegDelNull'.
Removing shim for 'RegDelNull64'.
Removing shim for 'regjump'.
Removing shim for 'ru'.
Removing shim for 'ru64'.
Removing shim for 'sdelete'.
Removing shim for 'sdelete64'.
Removing shim for 'ShareEnum'.
Removing shim for 'ShellRunas'.
Removing shim for 'sigcheck'.
Removing shim for 'sigcheck64'.
Removing shim for 'streams'.
Removing shim for 'streams64'.
Removing shim for 'strings'.
Removing shim for 'strings64'.
Removing shim for 'sync'.
Removing shim for 'sync64'.
Removing shim for 'Sysmon'.
Removing shim for 'Sysmon64'.
Removing shim for 'Tcpvcon'.
Removing shim for 'Tcpview'.
Removing shim for 'Testlimit'.
Removing shim for 'Testlimit64'.
Removing shim for 'vmmap'.
Removing shim for 'Volumeid'.
Removing shim for 'Volumeid64'.
Removing shim for 'whois'.
Removing shim for 'whois64'.
Removing shim for 'Winobj'.
Removing shim for 'ZoomIt'.
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/AccessEnum - View accesses to directories, files and registry keys.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/AdExplorer - Active Directory viewer and editor.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/AdInsight - An LDAP real-time monitoring tool.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/Autologon - Bypass password screen during logon.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/Autoruns - View startup programs and processes.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/BGInfo - Wallpaper text configurator.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/CacheSet - Control the Cache Manager's working set size.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/DebugView - View OutputDebugString and DbgPrint output.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/Desktops - Create up to four virtual desktops.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/Disk2vhd - Create VHD files from online disk.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/DiskMon - Disk activity monitor.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/DiskView - Graphical disk sector utility.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/LoadOrder - See the order in which devices are loaded.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/NotMyFault - Crash, hang, and cause kernel memory leaks.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/PageDefrag - Defragment paging files and registry hives.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/PortMon - Serial and parallel port activity monitor.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/ProcessExplorer - Enhanced Task Manager.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/ProcessMonitor - Monitor file system, registry, process, thread and DLL activity.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/RAMMap - Graphical display of memory usage.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/ShareEnum - View network shares.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/TcpView - List TCP UDP endpoints.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/VMMap - View Virtual and Physical Memory.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/Winobj - Object Manager namespace viewer.lnk
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\SysInternals/ZoomIt - Screen magnifier for zooming and drawing on the screen.lnk
Unlinking ~\scoop\apps\sysinternals\current
'sysinternals' was uninstalled.

グローバルインストール [-g, --global] オプション

デフォルトでは C:\ProgramData\scoop にインストールされる。
パスに PATH=C:\ProgramData\scoop\shims; が追加される。

$ scoop install --global git
Installing '7zip' (19.00) [64bit]
7z1900-x64.msi (1.7 MB) [=====================================================================================] 100%
Checking hash of 7z1900-x64.msi ... ok.
Extracting 7z1900-x64.msi ... done.
Linking C:\ProgramData\scoop\apps\7zip\current => C:\ProgramData\scoop\apps\7zip\19.00
Creating shim for '7z'.
Creating shortcut for 7-Zip (7zFM.exe)
Adding C:\ProgramData\scoop\shims to global path.
'7zip' (19.00) was installed successfully!
Installing 'git' (2.26.2.windows.1) [64bit]
PortableGit-2.26.2-64-bit.7z.exe (41.1 MB) [==================================================================] 100%
Checking hash of PortableGit-2.26.2-64-bit.7z.exe ... ok.
Extracting dl.7z ... done.
Linking C:\ProgramData\scoop\apps\git\current => C:\ProgramData\scoop\apps\git\2.26.2.windows.1
Creating shim for 'git'.
Creating shim for 'gitk'.
Creating shim for 'git-gui'.
Creating shim for 'tig'.
Creating shim for 'git-bash'.
Creating shortcut for Git Bash (git-bash.exe)
Creating shortcut for Git GUI (git-gui.exe)
Running post-install script...
'git' (2.26.2.windows.1) was installed successfully!
$ scoop list
Installed apps:
 
  7zip 19.00 *global*
  git 2.26.2.windows.1 *global*

sudo コマンドをグローバルインストール

$ scoop install sudo --global
Updating Scoop...
Updating 'main' bucket...
Checking repo... ok
The main bucket was added successfully.
Scoop was updated successfully!
Installing 'sudo' (0.2020.01.26) [64bit]
sudo.ps1 (2.2 KB) [===========================================================================================] 100%
Checking hash of sudo.ps1 ... ok.
Linking C:\ProgramData\scoop\apps\sudo\current => C:\ProgramData\scoop\apps\sudo\0.2020.01.26
Creating shim for 'sudo'.
'sudo' (0.2020.01.26) was installed successfully!
PS C:\WINDOWS\system32> scoop list
Installed apps:
 
  7zip 19.00 *global*
  git 2.26.2.windows.1 *global*
  sudo 0.2020.01.26 *global*

グローバルインストールされた Scoop アプリ

$ scoop list
Installed apps:
 
  7zip 19.00 *global*
  git 2.26.2.windows.1 *global*
  sudo 0.2020.01.26 *global*

管理者として実行されていない場合...

$ scoop install --global git

エラーとなる。

ERROR: you need admin rights to install global apps
エラー:グローバルアプリをインストールするには管理者権限が必要です

管理者実行し直す。

$ sudo scoop install --global git

install コマンドのオプション

$ scoop help install
Usage: scoop install <app> [options]

e.g. The usual way to install an app (uses your local 'buckets'):
     scoop install git

To install an app from a manifest at a URL:
     scoop install https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/runat.json

To install an app from a manifest on your computer
     scoop install \path\to\app.json

Options:
  -g, --global              Install the app globally
  -i, --independent         Don't install dependencies automatically
  -k, --no-cache            Don't use the download cache
  -s, --skip                Skip hash validation (use with caution!)
  -a, --arch <32bit|64bit>  Use the specified architecture, if the app supports it

Scoop 全体の状態を表示 [status]

$ scoop status
Scoop is up to date.
Updates are available for:
    rufus: 3.9 -> 3.10
Everything is ok!

Scoop アプリの更新 [update]

$ scoop update
$ scoop update *

scoop update - scoop 自体を更新する。
scoop update * - scoop アプリを更新する。

グローバルアップデート [-g, --global] オプション

$ scoop update --global *

管理者として実行されていない場合...

$ scoop update --global *

エラーとなる。

ERROR: You need admin rights to update global apps.
エラー:グローバルアプリを更新するには管理者権限が必要です。

管理者実行し直す。

$ sudo scoop update --global *
powershell: 7.0.1 -> 7.0.2 (global)
Updating one outdated app:
Updating 'powershell' (7.0.1 -> 7.0.2)
Downloading new version
Loading PowerShell-7.0.2-win-x64.zip from cache
Checking hash of PowerShell-7.0.2-win-x64.zip ... ok.
ERROR Application is still running. Close all instances and try again.
エラー アプリケーションはまだ実行中です。すべてのインスタンスを閉じて、再試行してください。

更新対象のアプリが実行中の場合...

$ sudo scoop update --global *
powershell: 7.0.1 -> 7.0.2 (global)
Updating one outdated app:
Updating 'powershell' (7.0.1 -> 7.0.2)
Downloading new version
Loading PowerShell-7.0.2-win-x64.zip from cache
Checking hash of PowerShell-7.0.2-win-x64.zip ... ok.
ERROR Application is still running. Close all instances and try again.
エラー アプリケーションはまだ実行中です。すべてのインスタンスを閉じて、再試行してください。

PowerShell v7.0 を更新する場合は PowerShell v5.1 を起動して更新する。
PowerShell v7.0 を起動中で PowerShell v7.0 自体を更新することは出来ない。

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
 
新機能と改善のために最新の PowerShell をインストールしてください!https://aka.ms/PSWindows
 
PS C:\Users\tomoyan> Get-Host
 
 
Name             : ConsoleHost
Version          : 5.1.19640.1
InstanceId       : b8864560-b28c-404c-b4b5-d8182e7623bb
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : ja-JP
CurrentUICulture : ja-JP
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace
 
 
 
PS C:\Users\tomoyan> sudo scoop update --global *
powershell: 7.0.1 -> 7.0.2 (global)
Updating one outdated app:
Updating 'powershell' (7.0.1 -> 7.0.2)
Downloading new version
Loading PowerShell-7.0.2-win-x64.zip from cache
Checking hash of PowerShell-7.0.2-win-x64.zip ... ok.
Uninstalling 'powershell' (7.0.1)
Removing shim for 'pwsh'.
Unlinking C:\ProgramData\scoop\apps\powershell\current
Installing 'powershell' (7.0.2) [64bit]
Loading PowerShell-7.0.2-win-x64.zip from cache
Extracting PowerShell-7.0.2-win-x64.zip ... done.
Linking C:\ProgramData\scoop\apps\powershell\current => C:\ProgramData\scoop\apps\powershell\7.0.2
Creating shim for 'pwsh'.
Creating shortcut for PowerShell (pwsh.exe)
'powershell' (7.0.2) was installed successfully!
PS C:\Users\tomoyan>

インストール済みアプリの一覧 [list]

$ scoop list
Installed apps:
 
  7zip 19.00
  aria2 1.35.0-1
  audacity 2.3.3 [extras]
  dark 3.11.2
  everything 1.4.1.969 [extras]
  ffmpeg 4.2.2
  freac 1.1.1 [extras]
  git 2.26.2.windows.1
  gow 0.8.0
  handbrake 1.3.1 [extras]
  lessmsi 1.6.91
  lxrunoffline 3.4.1 [extras]
  mongodb 4.2.6
  ntop 0.3.4
  openssh 8.2p1-1
  powershell 7.0.0 [dorado]
  pshazz 0.2020.04.16
  python 3.8.2
  python27 2.7.18 [versions]
  rufus 3.10 [extras]
  scoop-viewer v0.8.1 [scoop-viewer-bucket]
  sudo 0.2020.01.26
  sysinternals December.18.2019 [extras]
  vim 8.2
  youtube-dl-gui 0.4 [extras]

アプリに関する情報を表示する [info]

$ scoop info sysinternals
Name: sysinternals
Description: A set of utilities to manage, diagnose, troubleshoot, and monitor a Windows environment.
Version: December.18.2019
Website: https://docs.microsoft.com/en-us/sysinternals/
License: Freeware (https://docs.microsoft.com/en-us/sysinternals/license-terms)
Manifest:
  C:\Users\tomoyan\scoop\buckets\extras\bucket\sysinternals.json
Installed: No

Scoop アプリのインストール

scoop gui

Scoop Viewer Logo
scoop-viewer という python で書かれた GUI フロントエンドも存在する。

インストール

$ scoop bucket add scoop-viewer-bucket https://github.com/prezesp/scoop-viewer-bucket.git
Checking repo... ok
The scoop-viewer-bucket bucket was added successfully.
$ scoop install scoop-viewer
Installing 'scoop-viewer' (v0.8.1) [64bit]
scoop-viewer.zip (18.2 MB) [==================================================================================] 100%
WARN  Warning: No hash in manifest. SHA256 for 'scoop-viewer.zip' is:
    2fbc575cd4f537d7cae88eb42d89fe12472876189ef2d5e870b45fd1e039ac8b
Extracting scoop-viewer.zip ... done.
Linking ~\scoop\apps\scoop-viewer\current => ~\scoop\apps\scoop-viewer\v0.8.1
Creating shim for 'scoopviewer'.
Running post-install script...
'scoop-viewer' (v0.8.1) was installed successfully!

起動

$ scoop gui

Scoop Viewer 001

トラブルシューティング

Scoop Apps のショートカットが消えた場合

アプリはスタートメニュー (Scoop Apps) に登録される。
パス:

%HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps

Windows の大型アップデートによって、ショートカットが消えるらしい…😅💦
以下のコマンドでショートカットを修復できる。

$ scoop reset *
Resetting 7zip (19.00).
Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\19.00
Creating shim for '7z'.
Creating shortcut for 7-Zip (7zFM.exe)
Resetting aria2 (1.35.0-1).
Linking ~\scoop\apps\aria2\current => ~\scoop\apps\aria2\1.35.0-1
Creating shim for 'aria2c'.
Resetting freac (1.0.33).
Linking ~\scoop\apps\freac\current => ~\scoop\apps\freac\1.0.33
Creating shim for 'freaccmd'.
Creating shortcut for freac - free audio converter (freac.exe)
Persisting freac.xml
Resetting mongodb (4.2.5).
Linking ~\scoop\apps\mongodb\current => ~\scoop\apps\mongodb\4.2.5
Creating shim for 'bsondump'.
Creating shim for 'mongo'.
Creating shim for 'mongod'.
Creating shim for 'mongodump'.
Creating shim for 'mongoexport'.
Creating shim for 'mongofiles'.
Creating shim for 'mongoimport'.
Creating shim for 'mongorestore'.
Creating shim for 'mongos'.
Creating shim for 'mongostat'.
Creating shim for 'mongotop'.
Persisting bin\mongod.cfg
Persisting data
Persisting log
Resetting openssh (7.6p1).
Linking ~\scoop\apps\openssh\current => ~\scoop\apps\openssh\7.6p1
Creating shim for 'findssl.sh'.
Creating shim for 'scp'.
Creating shim for 'sftp'.
Creating shim for 'ssh'.
Creating shim for 'ssh-add'.
Creating shim for 'ssh-agent'.
Creating shim for 'ssh-copy-id'.
Creating shim for 'ssh-keygen'.
Creating shim for 'ssh-keyscan'.
Creating shim for 'sshd'.
Resetting powershell (7.0.0).
Linking ~\scoop\apps\powershell\current => ~\scoop\apps\powershell\7.0.0
Creating shim for 'pwsh'.
Creating shortcut for PowerShell Core (pwsh.exe)
Resetting scoop-viewer (v0.8.1).
Linking ~\scoop\apps\scoop-viewer\current => ~\scoop\apps\scoop-viewer\v0.8.1
Creating shim for 'scoopviewer'.
Resetting sudo (0.2020.01.26).
Linking ~\scoop\apps\sudo\current => ~\scoop\apps\sudo\0.2020.01.26
Creating shim for 'sudo'.
Resetting sysinternals (December.18.2019).
Linking ~\scoop\apps\sysinternals\current => ~\scoop\apps\sysinternals\December.18.2019
Creating shim for 'accesschk'.
Creating shim for 'accesschk64'.
Creating shim for 'AccessEnum'.
Creating shim for 'ADExplorer'.
Creating shim for 'ADInsight'.
Creating shim for 'adrestore'.
Creating shim for 'Autologon'.
Creating shim for 'Autoruns'.
Creating shim for 'Autoruns64'.
Creating shim for 'autorunsc'.
Creating shim for 'autorunsc64'.
Creating shim for 'Bginfo'.
Creating shim for 'Bginfo64'.
Creating shim for 'Cacheset'.
Creating shim for 'Clockres'.
Creating shim for 'Clockres64'.
Creating shim for 'Contig'.
Creating shim for 'Contig64'.
Creating shim for 'Coreinfo'.
Creating shim for 'ctrl2cap'.
Creating shim for 'Dbgview'.
Creating shim for 'Desktops'.
Creating shim for 'disk2vhd'.
Creating shim for 'diskext'.
Creating shim for 'diskext64'.
Creating shim for 'Diskmon'.
Creating shim for 'DiskView'.
Creating shim for 'du'.
Creating shim for 'du64'.
Creating shim for 'efsdump'.
Creating shim for 'FindLinks'.
Creating shim for 'FindLinks64'.
Creating shim for 'handle'.
Creating shim for 'handle64'.
Creating shim for 'hex2dec'.
Creating shim for 'hex2dec64'.
Creating shim for 'junction'.
Creating shim for 'junction64'.
Creating shim for 'ldmdump'.
Creating shim for 'Listdlls'.
Creating shim for 'Listdlls64'.
Creating shim for 'livekd'.
Creating shim for 'livekd64'.
Creating shim for 'LoadOrd'.
Creating shim for 'LoadOrd64'.
Creating shim for 'LoadOrdC'.
Creating shim for 'LoadOrdC64'.
Creating shim for 'logonsessions'.
Creating shim for 'logonsessions64'.
Creating shim for 'movefile'.
Creating shim for 'movefile64'.
Creating shim for 'notmyfault'.
Creating shim for 'notmyfault64'.
Creating shim for 'notmyfaultc'.
Creating shim for 'notmyfaultc64'.
Creating shim for 'ntfsinfo'.
Creating shim for 'ntfsinfo64'.
Creating shim for 'pagedfrg'.
Creating shim for 'pendmoves'.
Creating shim for 'pendmoves64'.
Creating shim for 'pipelist'.
Creating shim for 'pipelist64'.
Creating shim for 'portmon'.
Creating shim for 'procdump'.
Creating shim for 'procdump64'.
Creating shim for 'procexp'.
Creating shim for 'procexp64'.
Creating shim for 'Procmon'.
Creating shim for 'PsExec'.
Creating shim for 'PsExec64'.
Creating shim for 'psfile'.
Creating shim for 'psfile64'.
Creating shim for 'PsGetsid'.
Creating shim for 'PsGetsid64'.
Creating shim for 'PsInfo'.
Creating shim for 'PsInfo64'.
Creating shim for 'pskill'.
Creating shim for 'pskill64'.
Creating shim for 'pslist'.
Creating shim for 'pslist64'.
Creating shim for 'PsLoggedon'.
Creating shim for 'PsLoggedon64'.
Creating shim for 'psloglist'.
Creating shim for 'pspasswd'.
Creating shim for 'pspasswd64'.
Creating shim for 'psping'.
Creating shim for 'psping64'.
Creating shim for 'PsService'.
Creating shim for 'PsService64'.
Creating shim for 'psshutdown'.
Creating shim for 'pssuspend'.
Creating shim for 'pssuspend64'.
Creating shim for 'RAMMap'.
Creating shim for 'RegDelNull'.
Creating shim for 'RegDelNull64'.
Creating shim for 'regjump'.
Creating shim for 'ru'.
Creating shim for 'ru64'.
Creating shim for 'sdelete'.
Creating shim for 'sdelete64'.
Creating shim for 'ShareEnum'.
Creating shim for 'ShellRunas'.
Creating shim for 'sigcheck'.
Creating shim for 'sigcheck64'.
Creating shim for 'streams'.
Creating shim for 'streams64'.
Creating shim for 'strings'.
Creating shim for 'strings64'.
Creating shim for 'sync'.
Creating shim for 'sync64'.
Creating shim for 'Sysmon'.
Creating shim for 'Sysmon64'.
Creating shim for 'Tcpvcon'.
Creating shim for 'Tcpview'.
Creating shim for 'Testlimit'.
Creating shim for 'Testlimit64'.
Creating shim for 'vmmap'.
Creating shim for 'Volumeid'.
Creating shim for 'Volumeid64'.
Creating shim for 'whois'.
Creating shim for 'whois64'.
Creating shim for 'Winobj'.
Creating shim for 'ZoomIt'.
Creating shortcut for SysInternals/AccessEnum - View accesses to directories, files and registry keys (AccessEnum.exe)
Creating shortcut for SysInternals/AdExplorer - Active Directory viewer and editor (AdExplorer.exe)
Creating shortcut for SysInternals/AdInsight - An LDAP real-time monitoring tool (AdInsight.exe)
Creating shortcut for SysInternals/Autologon - Bypass password screen during logon (Autologon.exe)
Creating shortcut for SysInternals/Autoruns - View startup programs and processes (autoruns64.exe)
Creating shortcut for SysInternals/BGInfo - Wallpaper text configurator (Bginfo64.exe)
Creating shortcut for SysInternals/CacheSet - Control the Cache Manager's working set size (CACHESET.EXE)
Creating shortcut for SysInternals/DebugView - View OutputDebugString and DbgPrint output (Dbgview.exe)
Creating shortcut for SysInternals/Desktops - Create up to four virtual desktops (Desktops.exe)
Creating shortcut for SysInternals/Disk2vhd - Create VHD files from online disk (Disk2vhd.exe)
Creating shortcut for SysInternals/DiskMon - Disk activity monitor (Diskmon.exe)
Creating shortcut for SysInternals/DiskView - Graphical disk sector utility (DiskView.exe)
Creating shortcut for SysInternals/LoadOrder - See the order in which devices are loaded (LOADORD.EXE)
Creating shortcut for SysInternals/NotMyFault - Crash, hang, and cause kernel memory leaks (NotMyFault64.exe)
Creating shortcut for SysInternals/PageDefrag - Defragment paging files and registry hives (pagedfrg.exe)
Creating shortcut for SysInternals/PortMon - Serial and parallel port activity monitor (PORTMON.EXE)
Creating shortcut for SysInternals/ProcessExplorer - Enhanced Task Manager (procexp64.exe)
Creating shortcut for SysInternals/ProcessMonitor - Monitor file system, registry, process, thread and DLL activity (ProcMon.exe)
Creating shortcut for SysInternals/RAMMap - Graphical display of memory usage (RAMMap.exe)
Creating shortcut for SysInternals/ShareEnum - View network shares (ShareEnum.exe)
Creating shortcut for SysInternals/TcpView - List TCP UDP endpoints (Tcpview.exe)
Creating shortcut for SysInternals/VMMap - View Virtual and Physical Memory (vmmap.exe)
Creating shortcut for SysInternals/Winobj - Object Manager namespace viewer (Winobj.exe)
Creating shortcut for SysInternals/ZoomIt - Screen magnifier for zooming and drawing on the screen (ZoomIt.exe)
Resetting vim (8.2).
Linking ~\scoop\apps\vim\current => ~\scoop\apps\vim\8.2
Creating shim for 'vim'.
Creating shim for 'vi'.
Creating shim for 'ex'.
Creating shim for 'view'.
Creating shim for 'rvim'.
Creating shim for 'rview'.
Creating shim for 'vimdiff'.
Creating shim for 'gvim'.
Creating shim for 'gview'.
Creating shim for 'evim'.
Creating shim for 'eview'.
Creating shim for 'rgvim'.
Creating shim for 'rgview'.
Creating shim for 'gvimdiff'.
Creating shim for 'xxd'.
Creating shortcut for gVim (gvim.exe)
Persisting _vimrc
Persisting _gvimrc
Persisting vimfiles
Persisting vimrc
$

Couldn't find manifest for 'app name'. が発生する場合

$ scoop install sysinternals
Updating Scoop...
Updating 'main' bucket...
Checking repo... ok
The main bucket was added successfully.
Scoop was updated successfully!
Couldn't find manifest for 'sysinternals'.

該当パッケージのバケットを調べる。

$ scoop search sysinternals
Results from other known buckets...
(add them using 'scoop bucket add <name>')

'extras' bucket:
    bucket/sysinternals

extras バケットを追加する。

$ scoop bucket add extras
Checking repo... ok
The extras bucket was added successfully.

Scoop のアンインストール

$ scoop uninstall scoop
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.
$ del ~\scoop -Force

参考文献

windows/scoop.txt · 最終更新: 2020/07/24 04:40 by ともやん