差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| windows:scoop [2020/05/17 10:48] – [参考文献] ともやん | windows:scoop [2023/07/21 02:45] (現在) – [独自のバケットを検索] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | < | + | ~~CLOSETOC~~ |
| - | < | + | |
| - | #result pre, #mincode pre { | + | |
| - | overflow: hidden; | + | |
| - | font-size: 10px; | + | |
| - | } | + | |
| - | # | + | |
| - | height: 250px; | + | |
| - | overflow: scroll; | + | |
| - | overflow-x: hidden; | + | |
| - | font-size: 10px; | + | |
| - | } | + | |
| - | #mintbl table { | + | |
| - | font-size: 12px; | + | |
| - | } | + | |
| - | .dokuwiki .plugin_wrap table { | + | |
| - | width: auto; | + | |
| - | } | + | |
| - | #logo { | + | |
| - | background-color: | + | |
| - | padding: 10px; | + | |
| - | width: fit-content; | + | |
| - | } | + | |
| - | #logo p { | + | |
| - | margin: 0; | + | |
| - | } | + | |
| - | </ | + | |
| - | </ | + | |
| ====== Scoop - Windows 用のコマンドラインインストーラ ====== | ====== Scoop - Windows 用のコマンドラインインストーラ ====== | ||
| - | {{:windows: | + | {{windows: |
| 本家: [[https:// | 本家: [[https:// | ||
| ドキュメント: | ドキュメント: | ||
| 行 34: | 行 7: | ||
| \\ | \\ | ||
| Scoop (スクープ) は、Windows 用のコマンドラインインストーラである。Linux ディストリビューション用のパッケージマネージャ ([[https:// | Scoop (スクープ) は、Windows 用のコマンドラインインストーラである。Linux ディストリビューション用のパッケージマネージャ ([[https:// | ||
| + | |||
| + | {{INLINETOC wide 2-2}} | ||
| ===== インストール ===== | ===== インストール ===== | ||
| 行 51: | 行 26: | ||
| </ | </ | ||
| + | 以下の別名(Alias)の短いコマンドで **Scoop** をインストールする。\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | <code powershell> | ||
| + | $ iwr -useb get.scoop.sh | iex | ||
| + | </ | ||
| + | </ | ||
| + | また、短縮しないコマンドは以下のようになる。\\ | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| 行 56: | 行 38: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| <WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | ||
| <code powershell> | <code powershell> | ||
| 行 109: | 行 92: | ||
| </ | </ | ||
| + | ==== インストールスクリプト (install.ps1 と同じ内容) ==== | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ (New-Object System.Net.WebClient).DownloadString(' | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% # | ||
| + | <code powershell> | ||
| + | #Requires -Version 5 | ||
| + | |||
| + | # remote install: | ||
| + | # | ||
| + | $old_erroractionpreference = $erroractionpreference | ||
| + | $erroractionpreference = ' | ||
| + | |||
| + | if (($PSVersionTable.PSVersion.Major) -lt 5) { | ||
| + | Write-Output " | ||
| + | Write-Output " | ||
| + | break | ||
| + | } | ||
| + | |||
| + | # show notification to change execution policy: | ||
| + | $allowedExecutionPolicy = @(' | ||
| + | if ((Get-ExecutionPolicy).ToString() -notin $allowedExecutionPolicy) { | ||
| + | Write-Output " | ||
| + | Write-Output "For example, to set the execution policy to ' | ||
| + | Write-Output "' | ||
| + | break | ||
| + | } | ||
| + | |||
| + | if ([System.Enum]:: | ||
| + | Write-Output "Scoop requires at least .NET Framework 4.5" | ||
| + | Write-Output " | ||
| + | Write-Output " | ||
| + | break | ||
| + | } | ||
| + | |||
| + | # get core functions | ||
| + | $core_url = ' | ||
| + | Write-Output ' | ||
| + | Invoke-Expression (new-object net.webclient).downloadstring($core_url) | ||
| + | |||
| + | # prep | ||
| + | if (installed ' | ||
| + | write-host "Scoop is already installed. Run 'scoop update' | ||
| + | # don't abort if invoked with iex that would close the PS session | ||
| + | if ($myinvocation.mycommand.commandtype -eq ' | ||
| + | } | ||
| + | $dir = ensure (versiondir ' | ||
| + | |||
| + | # download scoop zip | ||
| + | $zipurl = ' | ||
| + | $zipfile = " | ||
| + | Write-Output ' | ||
| + | dl $zipurl $zipfile | ||
| + | |||
| + | Write-Output ' | ||
| + | Add-Type -Assembly " | ||
| + | [IO.Compression.ZipFile]:: | ||
| + | Copy-Item " | ||
| + | Remove-Item " | ||
| + | |||
| + | Write-Output ' | ||
| + | shim " | ||
| + | |||
| + | # download main bucket | ||
| + | $dir = " | ||
| + | $zipurl = ' | ||
| + | $zipfile = " | ||
| + | Write-Output ' | ||
| + | New-Item $dir -Type Directory -Force | Out-Null | ||
| + | dl $zipurl $zipfile | ||
| + | |||
| + | Write-Output ' | ||
| + | [IO.Compression.ZipFile]:: | ||
| + | Copy-Item " | ||
| + | Remove-Item " | ||
| + | |||
| + | ensure_robocopy_in_path | ||
| + | ensure_scoop_in_path | ||
| + | |||
| + | scoop config lastupdate ([System.DateTime]:: | ||
| + | success 'Scoop was installed successfully!' | ||
| + | |||
| + | Write-Output "Type 'scoop help' for instructions." | ||
| + | |||
| + | $erroractionpreference = $old_erroractionpreference # Reset $erroractionpreference to original value | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | ※PowerShell バージョンチェックなどを行っている。\\ | ||
| + | Scoop を実行するには、PowerShell 5 以降が必要です。\\ | ||
| + | PowerShell アップグレード: | ||
| - | ===== バケット[bucket] ===== | + | ===== バケット [bucket] ===== |
| **Bucket (バケット)** とはアプリのコレクション(ダウンロード元)のことで、具体的にはアプリのインストール方法を記述する JSON アプリマニフェストを含む Git リポジトリである。インストール直後は **main** バケットのみが利用できる。\\ | **Bucket (バケット)** とはアプリのコレクション(ダウンロード元)のことで、具体的にはアプリのインストール方法を記述する JSON アプリマニフェストを含む Git リポジトリである。インストール直後は **main** バケットのみが利用できる。\\ | ||
| <code powershell> | <code powershell> | ||
| 行 117: | 行 193: | ||
| </ | </ | ||
| - | ==== バケットの追加[bucket add] ==== | + | ==== バケットの追加 [bucket add] ==== |
| バケットを追加するためには、**Git** が必要である。\\ | バケットを追加するためには、**Git** が必要である。\\ | ||
| <code powershell> | <code powershell> | ||
| 行 190: | 行 266: | ||
| [[https:// | [[https:// | ||
| - | **[[https:// | + | **[[https:// |
| 最新の **PowerShell Core** などが入手できる人気のバケット。\\ | 最新の **PowerShell Core** などが入手できる人気のバケット。\\ | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| - | $ scoop bucket add dorado https:// | + | $ scoop bucket add dorado https:// |
| </ | </ | ||
| **PowerShell Core** のインストール。\\ | **PowerShell Core** のインストール。\\ | ||
| 行 207: | 行 283: | ||
| ==== 独自のバケットを検索 ==== | ==== 独自のバケットを検索 ==== | ||
| - | [[https:// | + | [[https:// |
| + | [[https:// | ||
| + | [[https:// | ||
| + | <del>[[https:// | ||
| + | scoop のバケットに存在しないアプリは [[https:// | ||
| + | [[https:// | ||
| ==== 参考文献 ==== | ==== 参考文献 ==== | ||
| [[https:// | [[https:// | ||
| - | ===== アプリの検索[search] ===== | + | ===== アプリの検索 [search] ===== |
| **search** コマンドはバケットを追加していなくても、他のバケット内まで検索対象とするので便利である。\\ | **search** コマンドはバケットを追加していなくても、他のバケット内まで検索対象とするので便利である。\\ | ||
| + | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| $ scoop bucket list | $ scoop bucket list | ||
| main | main | ||
| </ | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| $ scoop search LxRunOffline | $ scoop search LxRunOffline | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| Results from other known buckets... | Results from other known buckets... | ||
| (add them using 'scoop bucket add < | (add them using 'scoop bucket add < | ||
| 行 226: | 行 314: | ||
| bucket/ | bucket/ | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | ==== 見つからないアプリは独自のバケットを検索 ==== | ||
| + | [[https:// | ||
| - | ===== アプリのインストール/ | + | ===== アプリのインストール/ |
| アプリはスタートメニュー (**Scoop Apps**) に登録される。\\ | アプリはスタートメニュー (**Scoop Apps**) に登録される。\\ | ||
| パス:\\ | パス:\\ | ||
| 行 555: | 行 647: | ||
| </ | </ | ||
| - | ==== グローバルインストール [--global] オプション ==== | + | ==== グローバルインストール [-g, --global] オプション ==== |
| - | **C: | + | デフォルトでは |
| パスに **PATH=C: | パスに **PATH=C: | ||
| <code powershell> | <code powershell> | ||
| - | $ scoop install | + | $ scoop install --global |
| </ | </ | ||
| <WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | ||
| 行 643: | 行 735: | ||
| === 管理者として実行されていない場合... === | === 管理者として実行されていない場合... === | ||
| <code powershell> | <code powershell> | ||
| - | $ scoop install | + | $ scoop install --global |
| </ | </ | ||
| + | |||
| エラーとなる。\\ | エラーとなる。\\ | ||
| <WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | ||
| 行 654: | 行 747: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | 管理者実行し直す。\\ | ||
| + | <code powershell> | ||
| + | $ sudo scoop install --global git | ||
| + | </ | ||
| ==== install コマンドのオプション ==== | ==== install コマンドのオプション ==== | ||
| 行 681: | 行 779: | ||
| </ | </ | ||
| - | ===== Scoop 全体の状態を表示[status] ===== | + | ===== Scoop 全体の状態を表示 [status] ===== |
| <code powershell> | <code powershell> | ||
| $ scoop status | $ scoop status | ||
| 行 694: | 行 792: | ||
| </ | </ | ||
| - | ===== Scoop アプリの更新[update] ===== | + | ===== Scoop アプリの更新 [update] ===== |
| - | <code powershell> | + | <WRAP color_term> |
| - | $ scoop update | + | <WRAP color_command>< |
| - | $ scoop update * | + | <b class=GRN> |
| - | </code> | + | <b class=GRN> |
| + | </pre></ | ||
| + | </WRAP> | ||
| ※**scoop update** - scoop 自体を更新する。\\ | ※**scoop update** - scoop 自体を更新する。\\ | ||
| ※**scoop update *** - scoop アプリを更新する。\\ | ※**scoop update *** - scoop アプリを更新する。\\ | ||
| - | ===== インストール済みアプリの一覧[list] ===== | + | ==== グローバルアップデート |
| <code powershell> | <code powershell> | ||
| - | $ scoop list | + | $ scoop update --global * |
| </ | </ | ||
| - | <WRAP prewrap 100% # | + | |
| + | === 管理者として実行されていない場合... === | ||
| <code powershell> | <code powershell> | ||
| + | $ scoop update --global * | ||
| + | </ | ||
| + | |||
| + | エラーとなる。\\ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | ERROR: You need admin rights to update global apps. | ||
| + | </ | ||
| + | < | ||
| + | エラー:グローバルアプリを更新するには管理者権限が必要です。 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 管理者実行し直す。\\ | ||
| + | <code powershell> | ||
| + | $ sudo scoop update --global * | ||
| + | </ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | powershell: 7.0.1 -> 7.0.2 (global) | ||
| + | Updating one outdated app: | ||
| + | Updating ' | ||
| + | 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. | ||
| + | </ | ||
| + | < | ||
| + | エラー アプリケーションはまだ実行中です。すべてのインスタンスを閉じて、再試行してください。 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | === 更新対象のアプリが実行中の場合... === | ||
| + | <code powershell> | ||
| + | $ sudo scoop update --global * | ||
| + | </ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | powershell: 7.0.1 -> 7.0.2 (global) | ||
| + | Updating one outdated app: | ||
| + | Updating ' | ||
| + | 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** 自体を更新することは出来ない。\\ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | Windows PowerShell | ||
| + | Copyright (C) Microsoft Corporation. All rights reserved. | ||
| + | |||
| + | 新機能と改善のために最新の PowerShell をインストールしてください!https:// | ||
| + | |||
| + | PS C: | ||
| + | |||
| + | |||
| + | Name : ConsoleHost | ||
| + | Version | ||
| + | InstanceId | ||
| + | UI : System.Management.Automation.Internal.Host.InternalHostUserInterface | ||
| + | CurrentCulture | ||
| + | CurrentUICulture : ja-JP | ||
| + | PrivateData | ||
| + | DebuggerEnabled | ||
| + | IsRunspacePushed : False | ||
| + | Runspace | ||
| + | |||
| + | |||
| + | |||
| + | PS C: | ||
| + | powershell: 7.0.1 -> 7.0.2 (global) | ||
| + | Updating one outdated app: | ||
| + | Updating ' | ||
| + | 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 ' | ||
| + | Removing shim for ' | ||
| + | Unlinking C: | ||
| + | Installing ' | ||
| + | Loading PowerShell-7.0.2-win-x64.zip from cache | ||
| + | Extracting PowerShell-7.0.2-win-x64.zip ... done. | ||
| + | Linking C: | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for PowerShell (pwsh.exe) | ||
| + | ' | ||
| + | PS C: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== インストール済みアプリの一覧 [list] ===== | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | <b class=GRN> | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| Installed apps: | Installed apps: | ||
| 行 735: | 行 939: | ||
| vim 8.2 | vim 8.2 | ||
| youtube-dl-gui 0.4 [extras] | youtube-dl-gui 0.4 [extras] | ||
| - | </ | + | </code></ |
| </ | </ | ||
| - | ===== アプリに関する情報を表示する[info] ===== | + | ===== アプリに関する情報を表示する [info] ===== |
| <code powershell> | <code powershell> | ||
| $ scoop info sysinternals | $ scoop info sysinternals | ||
| 行 754: | 行 958: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ===== ダウンロード キャッシュを表示/ | ||
| + | <code powershell> | ||
| + | $ scoop cache show | ||
| + | </ | ||
| + | <WRAP prewrap 100% # | ||
| + | < | ||
| + | |||
| + | 1.7 MB 7zip (19.00) | ||
| + | 2.1 MB aria2 (1.35.0-1) | ||
| + | 13.4 MB audacity (2.3.3) | ||
| + | 11.1 MB audacity (2.4.1) | ||
| + | 11.2 MB audacity (2.4.2) | ||
| + | 5.0 MB chromedriver (85.0.4183.87) | ||
| + | 7.8 MB concfg (0.2020.03.15) | ||
| + | 3.5 MB dark (3.11.2) | ||
| + | 1.5 MB everything (1.4.1.969) | ||
| + | 1.5 MB everything (1.4.1.986) | ||
| + | 1.5 MB everything (1.4.1.988) | ||
| + | 66.1 MB ffmpeg (4.2.2) | ||
| + | 66.8 MB ffmpeg (4.2.3) | ||
| + | 70.6 MB ffmpeg (4.3) …e.com_builds_win64_static_ffmpeg-4.3-win64-static.zip | ||
| + | 75.8 MB ffmpeg (4.3.1) | ||
| + | 68.3 MB ffmpeg-nightly (20200403-52523b6) …win64_static_ffmpeg-20200403-52523b6-win64-static.zip | ||
| + | 51.7 MB firefox (78.0.2) | ||
| + | 52.0 MB firefox (79.0) | ||
| + | 6.3 MB freac (1.0.33) | ||
| + | 15.3 MB freac (1.1) | ||
| + | 15.3 MB freac (1.1.1) | ||
| + | 15.4 MB freac (1.1.2) | ||
| + | 41.1 MB git (2.26.0.windows.1) | ||
| + | 41.1 MB git (2.26.2.windows.1) | ||
| + | 41.8 MB git (2.27.0.windows.1) | ||
| + | 44.7 MB git (2.28.0.windows.1) | ||
| + | 8.7 MB gow (0.8.0) | ||
| + | 12.9 MB handbrake (1.3.1) | ||
| + | 17.7 MB handbrake (1.3.2) | ||
| + | 17.3 MB handbrake (1.3.3) | ||
| + | 137.6 KB innounp (0.49) | ||
| + | 1.2 GB kicad (5.1.6_1) | ||
| + | 495.0 KB lessmsi (1.6.91) | ||
| + | 2.3 MB lxrunoffline (3.4.1) | ||
| + | 2.5 MB lxrunoffline (3.5.0) | ||
| + | 259.2 MB mongodb (4.2.3) | ||
| + | 263.2 MB mongodb (4.2.5) | ||
| + | 264.4 MB mongodb (4.2.6) | ||
| + | 264.2 MB mongodb (4.2.7) | ||
| + | 265 B mongodb.txt () | ||
| + | 25.7 MB nmap (7.80) | ||
| + | 135.5 KB ntop (0.3.4) | ||
| + | 85.5 MB nuget-package-explorer (5.7.113) | ||
| + | 2.3 MB nvm (1.1.7) | ||
| + | 491.5 KB openhardwaremonitor (0.9.5) | ||
| + | 1.9 MB openssh (7.6p1) | ||
| + | 821.9 KB openssh (7.6p1) | ||
| + | 546.6 KB openssh (7.6p1) | ||
| + | 592.7 KB openssh (7.6p1) | ||
| + | 7.3 MB openssh (7.6p1) | ||
| + | 32.1 KB openssh (7.6p1) | ||
| + | 656.4 KB openssh (7.6p1) | ||
| + | 96.9 KB openssh (7.6p1) | ||
| + | 1,022.5 KB openssh (7.6p1) | ||
| + | 266.8 KB openssh (7.6p1) | ||
| + | 564.3 KB openssh (7.6p1) | ||
| + | 2.4 MB openssh (7.6p1) | ||
| + | 1.1 MB openssh (7.6p1) | ||
| + | 679.9 KB openssh (7.6p1) | ||
| + | 55.1 KB openssh (7.6p1) | ||
| + | 1.9 MB openssh (8.2p1-1) | ||
| + | 1.2 MB openssh (8.2p1-1) | ||
| + | 430.4 KB openssh (8.2p1-1) | ||
| + | 742.4 KB openssh (8.2p1-1) | ||
| + | 35.3 KB openssh (8.2p1-1) | ||
| + | 656.4 KB openssh (8.2p1-1) | ||
| + | 104.2 KB openssh (8.2p1-1) | ||
| + | 1.1 MB openssh (8.2p1-1) | ||
| + | 463.0 KB openssh (8.2p1-1) | ||
| + | 2.6 MB openssh (8.2p1-1) | ||
| + | 1.3 MB openssh (8.2p1-1) | ||
| + | 710.6 KB openssh (8.2p1-1) | ||
| + | 2.7 MB openssh (8.2p1-1) | ||
| + | 55.1 KB openssh (8.2p1-1) | ||
| + | 55.3 MB powershell (6.2.4) | ||
| + | 88.7 MB powershell (7.0.0) | ||
| + | 88.7 MB powershell (7.0.1) | ||
| + | 88.9 MB powershell (7.0.2) | ||
| + | 88.9 MB powershell (7.0.3) | ||
| + | 88.8 MB powershell-preview (7.0.0-rc.3) | ||
| + | 53.2 KB pshazz (0.2019.08.07) | ||
| + | 53.3 KB pshazz (0.2020.04.16) | ||
| + | 53.4 KB pshazz (0.2020.05.16) | ||
| + | 53.5 KB pshazz (0.2020.05.23) | ||
| + | 555 B python (3.8.2) | ||
| + | 86 B python (3.8.2) | ||
| + | 26.3 MB python (3.8.2) | ||
| + | 555 B python (3.8.3) | ||
| + | 86 B python (3.8.3) | ||
| + | 26.5 MB python (3.8.3) | ||
| + | 555 B python (3.8.4) | ||
| + | 86 B python (3.8.4) | ||
| + | 26.6 MB python (3.8.4) | ||
| + | 555 B python (3.8.5) | ||
| + | 86 B python (3.8.5) | ||
| + | 26.6 MB python (3.8.5) | ||
| + | 19.6 MB python27 (2.7.17) | ||
| + | 19.6 MB python27 (2.7.18) | ||
| + | 140.1 MB qemu (5.1.0-rc3) | ||
| + | 1.1 MB rufus (3.10) | ||
| + | 1.1 MB rufus (3.11) | ||
| + | 1.1 MB rufus (3.9) | ||
| + | 18.2 MB scoop-viewer (v0.8.1) | ||
| + | 1.2 MB smartmontools (7.1-1) | ||
| + | 2.2 KB sudo (0.2020.01.26) | ||
| + | 29.4 MB sysinternals (2020.April.28) | ||
| + | 29.7 MB sysinternals (2020.June.24) | ||
| + | 29.0 MB sysinternals (December.18.2019) | ||
| + | 557.4 KB tftpd (4.64) | ||
| + | 8.8 MB vim (8.2) | ||
| + | 219 B vim (8.2) | ||
| + | 168 B vim (8.2) | ||
| + | 35.3 MB vlc (3.0.10) | ||
| + | 34.7 MB vlc (3.0.11) | ||
| + | 34.9 MB wireshark (3.2.4) | ||
| + | 35.0 MB wireshark (3.2.5) | ||
| + | 35.0 MB wireshark (3.2.6) | ||
| + | 2.5 MB xming (6.9.0.31) | ||
| + | 1.4 MB xz (5.2.5) | ||
| + | 1.6 MB yarn (1.22.4) | ||
| + | 36.0 MB youtube-dl-gui (0.4) …ases_download_0.4_youtube-dl-gui-0.4-win-portable.zip | ||
| + | |||
| + | Total: 121 files, 4.2 GB | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ダウンロード キャッシュをクリアして領域解放する場合は **rm [app]** オプションに **' | ||
| + | <code powershell> | ||
| + | $ scoop cache rm * | ||
| + | $ scoop cache show | ||
| + | </ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | < | ||
| + | Total: 0 files, 0 B | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== scoop 内部設定情報の取得設定 [config] ===== | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ cat ~\.config\scoop\config.json | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100%> | ||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 設定の例\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | <code powershell> | ||
| + | $ scoop config " | ||
| + | False | ||
| + | $ scoop config " | ||
| + | ' | ||
| + | $ scoop config " | ||
| + | True | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 設定値の詳細については以下が参考になります🤤\\ | ||
| + | [[qita> | ||
| + | |||
| + | ===== コマンドエイリアス [alias] ===== | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop alias add reinstall 'scoop uninstall $args[0]; scoop install $args[0]' | ||
| + | $ scoop alias list -v | ||
| + | |||
| + | Name Command | ||
| + | ---- ------- | ||
| + | reinstall scoop uninstall $args[0]; scoop install $args[0] Uninstall and then install app | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ scoop reinstall sccache | ||
| + | Uninstalling ' | ||
| + | <b class=GRN>' | ||
| + | Installing ' | ||
| + | Loading sccache-0.2.14-x86_64-pc-windows-msvc.tar.gz from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Extracting <b class=HIC> | ||
| + | Linking ~\scoop\apps\sccache\current => ~\scoop\apps\sccache\0.2.14 | ||
| + | Creating shim for ' | ||
| + | <b class=GRN>' | ||
| + | </ | ||
| ===== Scoop アプリのインストール ===== | ===== Scoop アプリのインストール ===== | ||
| 行 759: | 行 1166: | ||
| [[windows: | [[windows: | ||
| [[windows: | [[windows: | ||
| - | [[windows: | + | [[windows: |
| - | [[windows: | + | [[python: |
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[windows: | ||
| + | [[javascript: | ||
| ==== scoop gui ==== | ==== scoop gui ==== | ||
| 行 806: | 行 1227: | ||
| </ | </ | ||
| {{: | {{: | ||
| + | |||
| + | ===== 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 | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== 独自パッケージの作成 ===== | ||
| + | Scoop の独自パッケージを作成して、自前の bucket でアプリを配信するのは意外と簡単です🥰\\ | ||
| + | |||
| + | **github に好きな名前でリポジトリを作成する。(自前の bucket)**\\ | ||
| + | [[git> | ||
| + | ローカルでファイルの準備。\\ | ||
| + | <WRAP prewrap 100% mincode> | ||
| + | < | ||
| + | $ mkdir usukawa-taiyaki | ||
| + | $ cd usukawa-taiyaki | ||
| + | $ echo "# usukawa-taiyaki" | ||
| + | $ git init | ||
| + | $ git add README.md | ||
| + | $ git commit -m "first commit" | ||
| + | $ git branch -M main | ||
| + | $ git remote add origin git@github.com: | ||
| + | $ git push -u origin main | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | **既存のアプリを Scoop 化するにはアプリをインストールするためのマニフェスト(app manifest)を書く。** | ||
| + | Mixxx を Scoop 化するための最低限なマニフェスト定義を書く🤔\\ | ||
| + | <WRAP prewrap 100% mincode> | ||
| + | <code javascript mixxx.json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | [ | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ローカルでマニフェストがインストール可能か確認する🤤\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop install .\mixxx.json | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Installing ' | ||
| + | Loading mixxx-2.3.1-win64.msi from cache | ||
| + | Checking hash of mixxx-2.3.1-win64.msi ... ok. | ||
| + | Extracting mixxx-2.3.1-win64.msi ... done. | ||
| + | Linking ~\scoop\apps\mixxx\current => ~\scoop\apps\mixxx\2.3.1 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for Mixxx (mixxx.exe) | ||
| + | ' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | マニフェストを自前の bucket に追加する🤤\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ git add mixxx.json | ||
| + | $ git commit -m "Added manifest for Mixxx package." | ||
| + | $ git push | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Scoop で自前の bucket を使えるように登録する。\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop bucket add usukawa-taiyaki https:// | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Checking repo... ok | ||
| + | The usukawa-taiyaki bucket was added successfully. | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | アプリを一旦アンインストールしてから、自前の bucket が使用出来るか確認する🤔\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop uninstall mixxx | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Uninstalling ' | ||
| + | Removing shim for ' | ||
| + | Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Mixxx.lnk | ||
| + | Unlinking ~\scoop\apps\mixxx\current | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop install mixxx | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Installing ' | ||
| + | Loading mixxx-2.3.1-win64.msi from cache | ||
| + | Checking hash of mixxx-2.3.1-win64.msi ... ok. | ||
| + | Extracting mixxx-2.3.1-win64.msi ... done. | ||
| + | Linking ~\scoop\apps\mixxx\current => ~\scoop\apps\mixxx\2.3.1 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for Mixxx (mixxx.exe) | ||
| + | ' | ||
| + | </ | ||
| + | </ | ||
| + | 参考: [[qita> | ||
| + | [[git> | ||
| ===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
| 行 815: | 行 1386: | ||
| %HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps | %HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps | ||
| </ | </ | ||
| - | Windows の大型アップデートによって、ショートカットが消えるらしい...(^_^;;)\\ | + | Windows の大型アップデートによって、ショートカットが消えるらしい...😅💦\\ |
| 以下のコマンドでショートカットを修復できる。\\ | 以下のコマンドでショートカットを修復できる。\\ | ||
| <code powershell> | <code powershell> | ||
| 行 1087: | 行 1658: | ||
| </ | </ | ||
| - | ===== Scoop のアンインストール ===== | + | ==== The SSL connection could not be established エラーで scoop がインストールできない場合 |
| + | SSL 接続を確立できませんと言われて scoop のインストールに失敗する。\\ | ||
| + | PowerShell v7.1.4 になってから急に発生した現象であるが、ちなみに PowerShell 5.1 ではでは問題なく実行できた。\\ | ||
| + | 原因不明な現象で調査はしていませんが、対処方法だけ以下にまとめておきます😒\\ | ||
| + | 参考: [[tw> | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| - | <code powershell> | + | <html>< |
| - | $ scoop uninstall | + | $ iwr -useb get.scoop.sh | iex |
| - | </code> | + | Initializing... |
| + | <b class=RED> | ||
| + | </ | ||
| + | |||
| + | この問題とは別の症状とは思われるが、TLS1.3を明示指定すると回避できたので記載しておくことにする。\\ | ||
| + | [[git> | ||
| + | \\ | ||
| + | SecurityProtocolType 列挙型で指定可能な一覧は以下の文献を参照のこと🤤\\ | ||
| + | [[https:// | ||
| + | \\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ [Net.ServicePointManager]:: | ||
| + | $ iwr -useb get.scoop.sh | iex | ||
| + | Initializing... | ||
| + | Downloading scoop... | ||
| + | Extracting... | ||
| + | Creating shim... | ||
| + | Downloading main bucket... | ||
| + | Extracting... | ||
| + | ' | ||
| + | <b class=GRN> | ||
| + | Type 'scoop help' for instructions. | ||
| + | </ | ||
| </ | </ | ||
| - | <WRAP prewrap 100% #result> | + | |
| - | <code powershell> | + | ==== $7zPath で Cannot validate argument on parameter ' |
| - | WARN This will uninstall Scoop and all the programs that have been installed with Scoop! | + | <WRAP prewrap 100%> |
| - | Are you sure? (yN): y | + | <html>< |
| - | Removing | + | <b class=HIC> |
| - | Scoop has been uninstalled. | + | Installing ' |
| - | </code> | + | Loading Firefox%20Setup%2093.0.exe from cache |
| + | Checking hash of <b class=HIC> | ||
| + | Extracting <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | |||
| + | Failed to extract files from C:\Users\tomoyan\scoop\apps\firefox\93.0\dl.7z. | ||
| + | Log file: | ||
| + | | ||
| + | |||
| + | Please try again or create a new issue by using the following link and paste your console output: | ||
| + | https:// | ||
| + | <b class=HIC> | ||
| + | </ | ||
| </ | </ | ||
| + | scoop の shims には shim ファイルが存在しているが...🤔\\ | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| - | <code powershell> | + | <html>< |
| - | $ del ~\scoop -Force | + | <b class=HIC> |
| - | </code> | + | C: |
| + | </ | ||
| + | </ | ||
| + | |||
| + | 7z を実行すると \apps\7zip\current\7z.exe は認識されないとのエラーになる😥\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | <b class=RED>&:</ | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | \apps\7zip\current が指している先に 7z.exe が何故か存在していない😥\\ | ||
| + | {{: | ||
| + | |||
| + | 7zip を修復するには 7zip を強制アップデートで再インストールする🤤\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | <b class=HIY> | ||
| + | <b class=HIB> | ||
| + | Updating ' | ||
| + | Downloading new version | ||
| + | Loading 7z1900-x64.msi from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Uninstalling ' | ||
| + | Removing shim for ' | ||
| + | Unlinking ~\scoop\apps\7zip\current | ||
| + | Installing ' | ||
| + | Loading 7z1900-x64.msi from cache | ||
| + | Extracting <b class=HIC> | ||
| + | Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\19.00 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for 7-Zip (7zFM.exe) | ||
| + | <b class=GRN>' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 壊れた 7zip は .old に移動されて、7zip が再インストールされる。\\ | ||
| + | {{: | ||
| + | {{: | ||
| + | |||
| + | そして、アプリが正常にインストール出来ることを確認する🤔\\ | ||
| + | 正常にインストールできましたねぇ😊\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | Uninstalling ' | ||
| + | <b class=GRN>' | ||
| + | <b class=HIC> | ||
| + | Installing ' | ||
| + | Loading Firefox%20Setup%2093.0.exe from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Extracting <b class=HIC> | ||
| + | Linking ~\scoop\apps\firefox\current => ~\scoop\apps\firefox\93.0 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for Firefox (firefox.exe) | ||
| + | <b class=GRN>' | ||
| + | </ | ||
| </ | </ | ||
| ===== 参考文献 ===== | ===== 参考文献 ===== | ||
| - | [[https:// | + | [[git>lukesampson/ |
| - | [[https:// | + | [[qita>Dooteeen/ |
| + | [[qita> | ||
| [[https:// | [[https:// | ||
| - | [[https:// | + | [[qita>akiakishitai/ |
| [[https:// | [[https:// | ||
| + | |||
| + | ==== 付録 ==== | ||
| + | [[tw> | ||
| + | [[tw> | ||