windows:scoop

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:scoop [2021/10/06 11:00] – [The SSL connection could not be established エラーで scoop がインストールできない場合] ともやんwindows:scoop [2023/07/21 02:45] (現在) – [独自のバケットを検索] ともやん
行 184: 行 184:
 ※PowerShell バージョンチェックなどを行っている。\\ ※PowerShell バージョンチェックなどを行っている。\\
 Scoop を実行するには、PowerShell 5 以降が必要です。\\ Scoop を実行するには、PowerShell 5 以降が必要です。\\
-PowerShell アップグレード: https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell\\+PowerShell アップグレード: https://learn.microsoft.com/ja-jp/powershell/scripting/install/installing-powershell-on-windows\\
  
 ===== バケット [bucket] ===== ===== バケット [bucket] =====
行 266: 行 266:
 [[https://github.com/tapannallan/awesome-scoop/|tapannallan / awesome-scoop:Windows用scoopパッケージマネージャー用のすばらしいリソースのコレクション]]\\ [[https://github.com/tapannallan/awesome-scoop/|tapannallan / awesome-scoop:Windows用scoopパッケージマネージャー用のすばらしいリソースのコレクション]]\\
  
-**[[https://github.com/h404bi/dorado|h404bi/dorado: 🐟 bucket of Scoop, for h404bi]]**\\+**[[https://github.com/chawyehsu/dorado|chawyehsu/dorado: 🐟 Yet Another bucket for lovely Scoop]]**\\
 最新の **PowerShell Core** などが入手できる人気のバケット。\\ 最新の **PowerShell Core** などが入手できる人気のバケット。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
-$ scoop bucket add dorado https://github.com/h404bi/dorado+$ scoop bucket add dorado https://github.com/chawyehsu/dorado
 </code> </code>
 **PowerShell Core** のインストール。\\ **PowerShell Core** のインストール。\\
行 283: 行 283:
  
 ==== 独自のバケットを検索 ==== ==== 独自のバケットを検索 ====
 +[[https://scoop.sh|Scoop]]\\
 +[[https://scoop-docs.now.sh/|Scoop]]\\
 [[https://scoop-docs.vercel.app/apps/|Search Apps | Scoop]]\\ [[https://scoop-docs.vercel.app/apps/|Search Apps | Scoop]]\\
 <del>[[https://scoop-docs.netlify.com/apps/|Search Apps | Scoop]]</del>\\ <del>[[https://scoop-docs.netlify.com/apps/|Search Apps | Scoop]]</del>\\
  
 +scoop のバケットに存在しないアプリは [[https://chocolatey.org|Chocolatey - The package manager for Windows]] を探してみる🤤\\
 +[[https://community.chocolatey.org/packages|Chocolatey Software | Packages]]\\
 ==== 参考文献 ==== ==== 参考文献 ====
 [[https://github.com/lukesampson/scoop/wiki/Buckets|Buckets · lukesampson/scoop Wiki]]\\ [[https://github.com/lukesampson/scoop/wiki/Buckets|Buckets · lukesampson/scoop Wiki]]\\
行 789: 行 793:
  
 ===== Scoop アプリの更新 [update] ===== ===== Scoop アプリの更新 [update] =====
-<code powershell+<WRAP color_term
-$ scoop update +<WRAP color_command><html><pre> 
-$ scoop update * +<b class=GRN>$</b> <b class=HIY>scoop</b> update 
-</code>+<b class=GRN>$</b> <b class=HIY>scoop</b> update * 
 +</pre></html></WRAP> 
 +</WRAP>
 ※**scoop update** - scoop 自体を更新する。\\ ※**scoop update** - scoop 自体を更新する。\\
 ※**scoop update *** - scoop アプリを更新する。\\ ※**scoop update *** - scoop アプリを更新する。\\
行 901: 行 907:
  
 ===== インストール済みアプリの一覧 [list] ===== ===== インストール済みアプリの一覧 [list] =====
-<code powershell+<WRAP color_term
-$ scoop list +<WRAP color_command><html><pre> 
-</code> +<b class=GRN>$</b> <b class=HIY>scoop</b> list 
-<WRAP prewrap 100% #result_long+</pre></html></WRAP> 
-<code powershell>+<WRAP color_result><code powershell>
 Installed apps: Installed apps:
  
行 933: 行 939:
   vim 8.2   vim 8.2
   youtube-dl-gui 0.4 [extras]   youtube-dl-gui 0.4 [extras]
-</code>+</code></WRAP>
 </WRAP> </WRAP>
  
行 1142: 行 1148:
 </code> </code>
 </WRAP> </WRAP>
 +
 +<html><div id="color_result"><pre>
 +$ scoop reinstall sccache
 +Uninstalling 'sccache' (0.2.14).
 +<b class=GRN>'sccache' was uninstalled.</b>
 +Installing 'sccache' (0.2.14) [64bit]
 +Loading sccache-0.2.14-x86_64-pc-windows-msvc.tar.gz from cache
 +Checking hash of <b class=HIC>sccache-0.2.14-x86_64-pc-windows-msvc.tar.gz</b> ... <b class=GRN>ok.</b>
 +Extracting <b class=HIC>sccache-0.2.14-x86_64-pc-windows-msvc.tar.gz</b> ... <b class=GRN>done.</b>
 +Linking ~\scoop\apps\sccache\current => ~\scoop\apps\sccache\0.2.14
 +Creating shim for 'sccache'.
 +<b class=GRN>'sccache' (0.2.14) was installed successfully!</b>
 +</pre></div></html>
  
 ===== Scoop アプリのインストール ===== ===== Scoop アプリのインストール =====
行 1209: 行 1228:
 {{:windows:scoop-viewer_001.png?800|Scoop Viewer 001}}\\ {{:windows:scoop-viewer_001.png?800|Scoop Viewer 001}}\\
  
-===== 技術資料 ===== +===== Scoop のアンインストール =====
- +
-==== scoop uninstall scoop コマンドの動作 ==== +
-Scoop のアンインストール\\+
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
行 1218: 行 1234:
 </code> </code>
 </WRAP> </WRAP>
-<html><code>~/scoop/persist</code></html> フォルダ削除る。\\+<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. 
 +</code> 
 +</WRAP> 
 +<html><code>~/scoop/persist</code></html> フォルダ削除される。\\
  
-<html><code>~/scoop</code></html> フォルダを削除すると再インストールできる。\\ 
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
-$ del .\scoop -Force+$ del ~\scoop -Force
 </code> </code>
 </WRAP> </WRAP>
 +<html><code>~/scoop</code></html> フォルダを削除すると Scoop を再インストールできる。\\
 +
 [[https://github.com/lukesampson/scoop/wiki/Uninstalling-Scoop|Uninstalling Scoop · lukesampson/scoop Wiki · GitHub]] より\\ [[https://github.com/lukesampson/scoop/wiki/Uninstalling-Scoop|Uninstalling Scoop · lukesampson/scoop Wiki · GitHub]] より\\
 +
 +===== 独自パッケージの作成 =====
 +Scoop の独自パッケージを作成して、自前の bucket でアプリを配信するのは意外と簡単です🥰\\
 +
 +**github に好きな名前でリポジトリを作成する。(自前の bucket)**\\
 +[[git>tomoyan596/usukawa-taiyaki|]]\\
 +ローカルでファイルの準備。\\
 +<WRAP prewrap 100% mincode>
 +<code>
 +$ mkdir usukawa-taiyaki
 +$ cd usukawa-taiyaki
 +$ echo "# usukawa-taiyaki" >> README.md
 +$ git init
 +$ git add README.md
 +$ git commit -m "first commit"
 +$ git branch -M main
 +$ git remote add origin git@github.com:my_git_account/usukawa-taiyaki.git
 +$ git push -u origin main
 +</code>
 +</WRAP>
 +
 +**既存のアプリを Scoop 化するにはアプリをインストールするためのマニフェスト(app manifest)を書く。**
 +Mixxx を Scoop 化するための最低限なマニフェスト定義を書く🤔\\
 +<WRAP prewrap 100% mincode>
 +<code javascript mixxx.json>
 +{
 +    "version": "2.3.1",
 +    "description": "Mixxx is Free DJ software that gives you everything you need to perform live mixes.",
 +    "homepage": "https://mixxx.org/",
 +    "license": {
 +        "identifier": "Freeware,GPL-2.0-only",
 +        "url": "https://github.com/mixxxdj/mixxx/blob/main/LICENSE"
 +    },
 +    "architecture": {
 +        "64bit": {
 +            "url": "https://downloads.mixxx.org/releases/2.3.1/mixxx-2.3.1-win64.msi",
 +            "hash": "c624f5ba54f1e7711a4cd9a92a623bddf3439d339082544c2855fe4f7d285b3c"
 +        }
 +    },
 +    "extract_dir": "Mixxx",
 +    "bin": "mixxx.exe",
 +    "shortcuts": [
 +        [
 +            "mixxx.exe",
 +            "Mixxx"
 +        ]
 +    ]
 +}
 +</code>
 +</WRAP>
 +
 +ローカルでマニフェストがインストール可能か確認する🤤\\
 +<WRAP prewrap 100%>
 +<code>
 +$ scoop install .\mixxx.json
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% result>
 +<code>
 +Installing 'mixxx' (2.3.1) [64bit]
 +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 'mixxx'.
 +Creating shortcut for Mixxx (mixxx.exe)
 +'mixxx' (2.3.1) was installed successfully!
 +</code>
 +</WRAP>
 +
 +マニフェストを自前の bucket に追加する🤤\\
 +<WRAP prewrap 100%>
 +<code>
 +$ git add mixxx.json
 +$ git commit -m "Added manifest for Mixxx package."
 +$ git push
 +</code>
 +</WRAP>
 +
 +Scoop で自前の bucket を使えるように登録する。\\
 +<WRAP prewrap 100%>
 +<code>
 +$ scoop bucket add usukawa-taiyaki https://github.com/tomoyan596/usukawa-taiyaki
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% result>
 +<code>
 +Checking repo... ok
 +The usukawa-taiyaki bucket was added successfully.
 +</code>
 +</WRAP>
 +
 +アプリを一旦アンインストールしてから、自前の bucket が使用出来るか確認する🤔\\
 +<WRAP prewrap 100%>
 +<code>
 +$ scoop uninstall mixxx
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% result>
 +<code>
 +Uninstalling 'mixxx' (2.3.1).
 +Removing shim for 'mixxx'.
 +Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Mixxx.lnk
 +Unlinking ~\scoop\apps\mixxx\current
 +</code>
 +</WRAP>
 +<WRAP prewrap 100%>
 +<code>
 +$ scoop install mixxx
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% result>
 +<code>
 +Installing 'mixxx' (2.3.1) [64bit]
 +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 'mixxx'.
 +Creating shortcut for Mixxx (mixxx.exe)
 +'mixxx' (2.3.1) was installed successfully!
 +</code>
 +</WRAP>
 +参考: [[qita>Dooteeen/items/12dc8fb14042888113d0|Scoopを使ったWindows環境構築のススメ - Super!! - Qiita]]\\
 + [[git>lukesampson/scoop/wiki/App-Manifests|App Manifests · lukesampson/scoop Wiki]]\\
  
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
行 1507: 行 1657:
 </code> </code>
 </WRAP> </WRAP>
- 
-===== Scoop のアンインストール ===== 
-<WRAP prewrap 100%> 
-<code powershell> 
-$ scoop uninstall scoop 
-</code> 
-</WRAP> 
-<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. 
-</code> 
-</WRAP> 
- 
-<WRAP prewrap 100%> 
-<code powershell> 
-$ del ~\scoop -Force 
-</code> 
-</WRAP> 
- 
-===== トラブルシューティング ===== 
  
 ==== The SSL connection could not be established エラーで scoop がインストールできない場合 ==== ==== The SSL connection could not be established エラーで scoop がインストールできない場合 ====
行 1538: 行 1665:
  
 <WRAP prewrap 100%> <WRAP prewrap 100%>
-<html> +<html><div id="color_result"><pre>
-<div id="color_result"> +
-<pre>+
 $ iwr -useb get.scoop.sh | iex $ iwr -useb get.scoop.sh | iex
 Initializing... Initializing...
 <b class=RED>Invoke-Expression: Exception calling "DownloadString" with "1" argument(s): "The SSL connection could not be established, see inner exception."</b> <b class=RED>Invoke-Expression: Exception calling "DownloadString" with "1" argument(s): "The SSL connection could not be established, see inner exception."</b>
-</pre> +</pre></html></WRAP>
-</html> +
-</WRAP>+
  
 この問題とは別の症状とは思われるが、TLS1.3を明示指定すると回避できたので記載しておくことにする。\\ この問題とは別の症状とは思われるが、TLS1.3を明示指定すると回避できたので記載しておくことにする。\\
 [[git>lukesampson/scoop/issues/4002|Installation failed, due to SSL/TLS Error [fix] · Issue #4002 · lukesampson/scoop · GitHub]]\\ [[git>lukesampson/scoop/issues/4002|Installation failed, due to SSL/TLS Error [fix] · Issue #4002 · lukesampson/scoop · GitHub]]\\
 +\\
 SecurityProtocolType 列挙型で指定可能な一覧は以下の文献を参照のこと🤤\\ SecurityProtocolType 列挙型で指定可能な一覧は以下の文献を参照のこと🤤\\
 [[https://docs.microsoft.com/ja-jp/dotnet/api/system.net.securityprotocoltype?view=net-5.0|SecurityProtocolType 列挙型 (System.Net)]]\\ [[https://docs.microsoft.com/ja-jp/dotnet/api/system.net.securityprotocoltype?view=net-5.0|SecurityProtocolType 列挙型 (System.Net)]]\\
 +\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
-<html> +<html><div id="color_result"><pre>
-<div id="color_result"> +
-<pre>+
 $ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13 $ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13
 $ iwr -useb get.scoop.sh | iex $ iwr -useb get.scoop.sh | iex
行 1569: 行 1690:
 <b class=GRN>Scoop was installed successfully!</b> <b class=GRN>Scoop was installed successfully!</b>
 Type 'scoop help' for instructions. Type 'scoop help' for instructions.
-</pre> +</pre></div></html
-</div> +</WRAP> 
-</html>+ 
 +==== $7zPath で Cannot validate argument on parameter 'FilePath'. エラーが発生する場合 ==== 
 +<WRAP prewrap 100%> 
 +<html><div id="color_result"><pre
 +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>scoop</b> install firefox 
 +Installing 'firefox' (93.0) [64bit] 
 +Loading Firefox%20Setup%2093.0.exe from cache 
 +Checking hash of <b class=HIC>Firefox%20Setup%2093.0.exe</b> ... <b class=GRN>ok.</b> 
 +Extracting <b class=HIC>dl.7z</b> ... <b class=RED>Invoke-ExternalCommand:</b> C:\Users\tomoyan\scoop\apps\scoop\current\lib\decompress.ps1:81 
 +<b class=HIC>Line |</b> 
 +<b class=HIC>  81 |</b>      $Status = Invoke-ExternalCommand <b class=HIC>$7zPath</b> $ArgList -LogPath $LogPa … 
 +<b class=HIC>     |</b>                                       <b class=RED>~~~~~~~</b> 
 +<b class=HIC>     |</b> <b class=RED>Cannot validate argument on parameter 'FilePath'. The argument is null or empty.</b> 
 +<b class=HIC>     |</b> <b class=RED>Provide an argument that is not null or empty, and then try the command again. 
 + 
 +Failed to extract files from C:\Users\tomoyan\scoop\apps\firefox\93.0\dl.7z. 
 +Log file: 
 +  ~\scoop\apps\firefox\93.0\7zip.log 
 + 
 +Please try again or create a new issue by using the following link and paste your console output: 
 +https://github.com/lukesampson/scoop-extras/issues/new?title=firefox%4093.0%3a+decompress+error</b> 
 +<b class=HIC>~</b> <b class=GRN>$</b> 
 +</pre></div></html> 
 +</WRAP> 
 + 
 +scoop の shims には shim ファイルが存在しているが...🤔\\ 
 +<WRAP prewrap 100%> 
 +<html><div id="color_result"><pre> 
 +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>which</b> 7z 
 +C:\Users\tomoyan\scoop\shims\7z.exe 
 +</pre></div></html> 
 +</WRAP> 
 + 
 +7z を実行すると \apps\7zip\current\7z.exe は認識されないとのエラーになる😥\\ 
 +<WRAP prewrap 100%> 
 +<html><div id="color_result"><pre> 
 +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>7z</b> 
 +<b class=RED>&:</b> C:\Users\tomoyan\scoop\shims\7z.ps1:
 +<b class=HIC>Line |</b> 
 +<b class=HIC>   3 |</b>  … on.expectingInput) { $input | & $path  @args } else { & $path  @args  … 
 +<b class=HIC>     |</b>                                                            ~~~~~ 
 +<b class=HIC>     |</b> <b class=RED>The term 'C:\Users\tomoyan\scoop\shims\..\apps\7zip\current\7z.exe' is not</b> 
 +<b class=HIC>     |</b> <b class=RED>recognized as a name of a cmdlet, function, script file, or executable program.</b> 
 +<b class=HIC>     |</b> <b class=RED>Check the spelling of the name, or if a path was included, verify that the path is</b> 
 +<b class=HIC>     |</b> <b class=RED>correct and try again.</b> 
 +</pre></div></html> 
 +</WRAP> 
 + 
 +\apps\7zip\current が指している先に 7z.exe が何故か存在していない😥\\ 
 +{{:windows:scoop_7zpath_error_002.png?800|7z Path Error 002}}\\ 
 + 
 +7zip を修復するには 7zip を強制アップデートで再インストールする🤤\\ 
 +<WRAP prewrap 100%> 
 +<html><div id="color_result"><pre> 
 +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>scoop</b> update -f 7zip 
 +<b class=HIY>7zip: 19.00 -> 19.00</b> 
 +<b class=HIB>Updating one outdated app:</b> 
 +Updating '7zip' (19.00 -> 19.00) 
 +Downloading new version 
 +Loading 7z1900-x64.msi from cache 
 +Checking hash of <b class=HIC>7z1900-x64.msi</b> ... <b class=GRN>ok.</b> 
 +Uninstalling '7zip' (19.00) 
 +Removing shim for '7z'
 +Unlinking ~\scoop\apps\7zip\current 
 +Installing '7zip' (19.00) [64bit] 
 +Loading 7z1900-x64.msi from cache 
 +Extracting <b class=HIC>7z1900-x64.msi</b> ... <b class=GRN>done.</b> 
 +Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\19.00 
 +Creating shim for '7z'
 +Creating shortcut for 7-Zip (7zFM.exe) 
 +<b class=GRN>'7zip' (19.00) was installed successfully!</b> 
 +</pre></div></html> 
 +</WRAP> 
 + 
 +壊れた 7zip は .old に移動されて、7zip が再インストールされる。\\ 
 +{{:windows:scoop_7zpath_error_004.png?800|7z Path Error 004}}\\ 
 +{{:windows:scoop_7zpath_error_005.png?800|7z Path Error 005}}\\ 
 + 
 +そして、アプリが正常にインストール出来ることを確認する🤔\\ 
 +正常にインストールできましたねぇ😊\\ 
 +<WRAP prewrap 100%> 
 +<html><div id="color_result"><pre> 
 +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>scoop</b> uninstall firefox 
 +Uninstalling 'firefox' (93.0). 
 +<b class=GRN>'firefox' was uninstalled.</b> 
 +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>scoop</b> install firefox 
 +Installing 'firefox' (93.0) [64bit] 
 +Loading Firefox%20Setup%2093.0.exe from cache 
 +Checking hash of <b class=HIC>Firefox%20Setup%2093.0.exe</b> ... <b class=GRN>ok.</b> 
 +Extracting <b class=HIC>dl.7z</b> ... <b class=GRN>done.</b> 
 +Linking ~\scoop\apps\firefox\current => ~\scoop\apps\firefox\93.0 
 +Creating shim for 'firefox'
 +Creating shortcut for Firefox (firefox.exe) 
 +<b class=GRN>'firefox' (93.0) was installed successfully!</b> 
 +</pre></div></html>
 </WRAP> </WRAP>
  
行 1584: 行 1799:
 ==== 付録 ==== ==== 付録 ====
 [[tw>tomoyan596/status/1445511467600515085|最新のPowerShell v7.1.4 でScoopはインストールできない❓🤔SSL接続を確立できませんって言われます🤔古いPowerShell v5.1では問題ないようです🤤何が原因なんでしょうねぇ🤔 / Twitter]]\\ [[tw>tomoyan596/status/1445511467600515085|最新のPowerShell v7.1.4 でScoopはインストールできない❓🤔SSL接続を確立できませんって言われます🤔古いPowerShell v5.1では問題ないようです🤤何が原因なんでしょうねぇ🤔 / Twitter]]\\
 +[[tw>tomoyan596/status/1448056182719930373|Windowsのscoop環境がぶっ壊れて、firefoxが更新出来なくなりましたが原因はわかりました🤔7zipの7z.exeが何故か存在していません😅💦どうなっているんでしょうねぇ🤔スマートな治し方をちょっと調べています🤤$7zPath The argument is null or empty.🤤 / Twitter]]\\
  
  • windows/scoop.1633485655.txt.gz
  • 最終更新: 2021/10/06 11:00
  • by ともやん