windows:scoop

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:scoop [2020/05/17 10:48] – [参考文献] ともやんwindows:scoop [2023/07/21 02:45] (現在) – [独自のバケットを検索] ともやん
行 1: 行 1:
-<html> +~~CLOSETOC~~
-  <style> +
-    #result pre, #mincode pre { +
-      overflow: hidden; +
-      font-size: 10px; +
-    } +
-    #result_long pre { +
-      height: 250px; +
-      overflow: scroll; +
-      overflow-x: hidden; +
-      font-size: 10px; +
-    } +
-    #mintbl table { +
-      font-size: 12px; +
-    } +
-    .dokuwiki .plugin_wrap table { +
-      width: auto; +
-    } +
-    #logo { +
-      background-color: white; +
-      padding: 10px; +
-      width: fit-content; +
-    } +
-    #logo p { +
-      margin: 0; +
-    } +
-  </style> +
-</html>+
 ====== Scoop - Windows 用のコマンドラインインストーラ ====== ====== Scoop - Windows 用のコマンドラインインストーラ ======
-{{:windows:scoop_logo.png?300|Scoop Logo}}\\+{{windows:scoop_logo.png?300|Scoop Logo}}\\
 本家: [[https://scoop.sh/|Scoop]]\\ 本家: [[https://scoop.sh/|Scoop]]\\
 ドキュメント: [[https://github.com/lukesampson/scoop/wiki|Home · lukesampson/scoop Wiki]]\\ ドキュメント: [[https://github.com/lukesampson/scoop/wiki|Home · lukesampson/scoop Wiki]]\\
行 34: 行 7:
 \\ \\
 Scoop (スクープ) は、Windows 用のコマンドラインインストーラである。Linux ディストリビューション用のパッケージマネージャ ([[https://ja.wikipedia.org/wiki/DNF_(%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2)|dnf]]、[[https://ja.wikipedia.org/wiki/APT|apt]] など) のように、アプリのインストール/更新/アンインストールを行うことができる。\\ Scoop (スクープ) は、Windows 用のコマンドラインインストーラである。Linux ディストリビューション用のパッケージマネージャ ([[https://ja.wikipedia.org/wiki/DNF_(%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2)|dnf]]、[[https://ja.wikipedia.org/wiki/APT|apt]] など) のように、アプリのインストール/更新/アンインストールを行うことができる。\\
 +
 +{{INLINETOC wide 2-2}}
  
 ===== インストール ===== ===== インストール =====
行 51: 行 26:
 </WRAP> </WRAP>
  
 +以下の別名(Alias)の短いコマンドで **Scoop** をインストールする。\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ iwr -useb get.scoop.sh | iex
 +</code>
 +</WRAP>
 +また、短縮しないコマンドは以下のようになる。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
行 56: 行 38:
 </code> </code>
 </WRAP> </WRAP>
 +
 <WRAP prewrap 100% #result> <WRAP prewrap 100% #result>
 <code powershell> <code powershell>
行 109: 行 92:
 </WRAP> </WRAP>
  
 +==== インストールスクリプト (install.ps1 と同じ内容) ====
 +<WRAP prewrap 100%>
 +<code>
 +$ (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result_long>
 +<code powershell>
 +#Requires -Version 5
 +
 +# remote install:
 +#   Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
 +$old_erroractionpreference = $erroractionpreference
 +$erroractionpreference = 'stop' # quit if anything goes wrong
 +
 +if (($PSVersionTable.PSVersion.Major) -lt 5) {
 +    Write-Output "PowerShell 5 or later is required to run Scoop."
 +    Write-Output "Upgrade PowerShell: https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell"
 +    break
 +}
 +
 +# show notification to change execution policy:
 +$allowedExecutionPolicy = @('Unrestricted', 'RemoteSigned', 'ByPass')
 +if ((Get-ExecutionPolicy).ToString() -notin $allowedExecutionPolicy) {
 +    Write-Output "PowerShell requires an execution policy in [$($allowedExecutionPolicy -join ", ")] to run Scoop."
 +    Write-Output "For example, to set the execution policy to 'RemoteSigned' please run :"
 +    Write-Output "'Set-ExecutionPolicy RemoteSigned -scope CurrentUser'"
 +    break
 +}
 +
 +if ([System.Enum]::GetNames([System.Net.SecurityProtocolType]) -notcontains 'Tls12') {
 +    Write-Output "Scoop requires at least .NET Framework 4.5"
 +    Write-Output "Please download and install it first:"
 +    Write-Output "https://www.microsoft.com/net/download"
 +    break
 +}
 +
 +# get core functions
 +$core_url = 'https://raw.githubusercontent.com/lukesampson/scoop/master/lib/core.ps1'
 +Write-Output 'Initializing...'
 +Invoke-Expression (new-object net.webclient).downloadstring($core_url)
 +
 +# prep
 +if (installed 'scoop') {
 +    write-host "Scoop is already installed. Run 'scoop update' to get the latest version." -f red
 +    # don't abort if invoked with iex that would close the PS session
 +    if ($myinvocation.mycommand.commandtype -eq 'Script') { return } else { exit 1 }
 +}
 +$dir = ensure (versiondir 'scoop' 'current')
 +
 +# download scoop zip
 +$zipurl = 'https://github.com/lukesampson/scoop/archive/master.zip'
 +$zipfile = "$dir\scoop.zip"
 +Write-Output 'Downloading scoop...'
 +dl $zipurl $zipfile
 +
 +Write-Output 'Extracting...'
 +Add-Type -Assembly "System.IO.Compression.FileSystem"
 +[IO.Compression.ZipFile]::ExtractToDirectory($zipfile, "$dir\_tmp")
 +Copy-Item "$dir\_tmp\*master\*" $dir -Recurse -Force
 +Remove-Item "$dir\_tmp", $zipfile -Recurse -Force
 +
 +Write-Output 'Creating shim...'
 +shim "$dir\bin\scoop.ps1" $false
 +
 +# download main bucket
 +$dir = "$scoopdir\buckets\main"
 +$zipurl = 'https://github.com/ScoopInstaller/Main/archive/master.zip'
 +$zipfile = "$dir\main-bucket.zip"
 +Write-Output 'Downloading main bucket...'
 +New-Item $dir -Type Directory -Force | Out-Null
 +dl $zipurl $zipfile
 +
 +Write-Output 'Extracting...'
 +[IO.Compression.ZipFile]::ExtractToDirectory($zipfile, "$dir\_tmp")
 +Copy-Item "$dir\_tmp\*-master\*" $dir -Recurse -Force
 +Remove-Item "$dir\_tmp", $zipfile -Recurse -Force
 +
 +ensure_robocopy_in_path
 +ensure_scoop_in_path
 +
 +scoop config lastupdate ([System.DateTime]::Now.ToString('o'))
 +success 'Scoop was installed successfully!'
 +
 +Write-Output "Type 'scoop help' for instructions."
 +
 +$erroractionpreference = $old_erroractionpreference # Reset $erroractionpreference to original value
 +
 +</code>
 +</WRAP>
 +※PowerShell バージョンチェックなどを行っている。\\
 +Scoop を実行するには、PowerShell 5 以降が必要です。\\
 +PowerShell アップグレード: https://learn.microsoft.com/ja-jp/powershell/scripting/install/installing-powershell-on-windows\\
  
-===== バケット[bucket] =====+===== バケット [bucket] =====
 **Bucket (バケット)** とはアプリのコレクション(ダウンロード元)のことで、具体的にはアプリのインストール方法を記述する JSON アプリマニフェストを含む Git リポジトリである。インストール直後は **main** バケットのみが利用できる。\\ **Bucket (バケット)** とはアプリのコレクション(ダウンロード元)のことで、具体的にはアプリのインストール方法を記述する JSON アプリマニフェストを含む Git リポジトリである。インストール直後は **main** バケットのみが利用できる。\\
 <code powershell> <code powershell>
行 117: 行 193:
 </code> </code>
  
-==== バケットの追加[bucket add] ====+==== バケットの追加 [bucket add] ====
 バケットを追加するためには、**Git** が必要である。\\ バケットを追加するためには、**Git** が必要である。\\
 <code powershell> <code powershell>
行 190: 行 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** のインストール。\\
行 207: 行 283:
  
 ==== 独自のバケットを検索 ==== ==== 独自のバケットを検索 ====
-[[https://scoop-docs.netlify.com/apps/|Search Apps | Scoop]]\\+[[https://scoop.sh|Scoop]]\\ 
 +[[https://scoop-docs.now.sh/|Scoop]]\\ 
 +[[https://scoop-docs.vercel.app/apps/|Search Apps | Scoop]]\\ 
 +<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]]\\
  
-===== アプリの検索[search] =====+===== アプリの検索 [search] =====
 **search** コマンドはバケットを追加していなくても、他のバケット内まで検索対象とするので便利である。\\ **search** コマンドはバケットを追加していなくても、他のバケット内まで検索対象とするので便利である。\\
 +<WRAP prewrap 100%>
 <code powershell> <code powershell>
 $ scoop bucket list $ scoop bucket list
 main main
 </code> </code>
 +</WRAP>
 +<WRAP prewrap 100%>
 <code powershell> <code powershell>
 $ scoop search LxRunOffline $ scoop search LxRunOffline
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 Results from other known buckets... Results from other known buckets...
 (add them using 'scoop bucket add <name>') (add them using 'scoop bucket add <name>')
行 226: 行 314:
     bucket/lxrunoffline     bucket/lxrunoffline
 </code> </code>
 +</WRAP>
 +
 +==== 見つからないアプリは独自のバケットを検索 ====
 +[[https://scoop-docs.now.sh/apps/|Search Apps | Scoop]]\\
  
-===== アプリのインストール/アンインストール[install/uninstall] =====+===== アプリのインストール/アンインストール [install/uninstall] =====
 アプリはスタートメニュー (**Scoop Apps**) に登録される。\\ アプリはスタートメニュー (**Scoop Apps**) に登録される。\\
 パス:\\ パス:\\
行 555: 行 647:
 </WRAP> </WRAP>
  
-==== グローバルインストール [--global] オプション ==== +==== グローバルインストール [-g, --global] オプション ==== 
-**C:\ProgramData\scoop** にインストールされる。\\+デフォルトでは **C:\ProgramData\scoop** にインストールされる。\\
 パスに **PATH=C:\ProgramData\scoop\shims;** が追加される。\\ パスに **PATH=C:\ProgramData\scoop\shims;** が追加される。\\
 <code powershell> <code powershell>
-$ scoop install git --global+$ scoop install --global git
 </code> </code>
 <WRAP prewrap 100% #result> <WRAP prewrap 100% #result>
行 643: 行 735:
 === 管理者として実行されていない場合... === === 管理者として実行されていない場合... ===
 <code powershell> <code powershell>
-$ scoop install git --global+$ scoop install --global git
 </code> </code>
 +
 エラーとなる。\\ エラーとなる。\\
 <WRAP prewrap 100% #result> <WRAP prewrap 100% #result>
行 654: 行 747:
 </code> </code>
 </WRAP> </WRAP>
 +
 +管理者実行し直す。\\
 +<code powershell>
 +$ sudo scoop install --global git
 +</code>
  
 ==== install コマンドのオプション ==== ==== install コマンドのオプション ====
行 681: 行 779:
 </WRAP> </WRAP>
  
-===== Scoop 全体の状態を表示[status] =====+===== Scoop 全体の状態を表示 [status] =====
 <code powershell> <code powershell>
 $ scoop status $ scoop status
行 694: 行 792:
 </WRAP> </WRAP>
  
-===== 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 アプリを更新する。\\
  
-===== インストール済みアプリの一覧[list=====+==== グロルアデート [-g, --globalオプション ====
 <code powershell> <code powershell>
-$ scoop list+$ scoop update --global *
 </code> </code>
-<WRAP prewrap 100% #result_long>+ 
 +=== 管理者として実行されていない場合... ===
 <code powershell> <code powershell>
 +$ scoop update --global *
 +</code>
 +
 +エラーとなる。\\
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +ERROR: You need admin rights to update global apps.
 +</code>
 +<code>
 +エラー:グローバルアプリを更新するには管理者権限が必要です。
 +</code>
 +</WRAP>
 +
 +管理者実行し直す。\\
 +<code powershell>
 +$ sudo scoop update --global *
 +</code>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +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.
 +</code>
 +<code>
 +エラー アプリケーションはまだ実行中です。すべてのインスタンスを閉じて、再試行してください。
 +</code>
 +</WRAP>
 +
 +=== 更新対象のアプリが実行中の場合... ===
 +<code powershell>
 +$ sudo scoop update --global *
 +</code>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +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.
 +</code>
 +<code>
 +エラー アプリケーションはまだ実行中です。すべてのインスタンスを閉じて、再試行してください。
 +</code>
 +</WRAP>
 +
 +**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://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>
 +</code>
 +</WRAP>
 +
 +===== インストール済みアプリの一覧 [list] =====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>scoop</b> list
 +</pre></html></WRAP>
 +<WRAP color_result><code powershell>
 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>+</code></WRAP>
 </WRAP> </WRAP>
  
-===== アプリに関する情報を表示する[info] =====+===== アプリに関する情報を表示する [info] =====
 <code powershell> <code powershell>
 $ scoop info sysinternals $ scoop info sysinternals
行 754: 行 958:
 </code> </code>
 </WRAP> </WRAP>
 +
 +===== ダウンロード キャッシュを表示/領域解放 [cache] =====
 +<code powershell>
 +$ scoop cache show
 +</code>
 +<WRAP prewrap 100% #result_long>
 +<code>
 +
 +    1.7 MB 7zip (19.00)                                            https_7-zip.org_a_7z1900-x64.msi
 +    2.1 MB aria2 (1.35.0-1)                  …load_release-1.35.0_aria2-1.35.0-win-64bit-build1.zip
 +   13.4 MB audacity (2.3.3)                       https_fossies.org_windows_misc_Audacity-2.3.3.zip
 +   11.1 MB audacity (2.4.1)                       https_fossies.org_windows_misc_audacity-2.4.1.zip
 +   11.2 MB audacity (2.4.2)                       https_fossies.org_windows_misc_audacity-2.4.2.zip
 +    5.0 MB chromedriver (85.0.4183.87)       …ge.googleapis.com_85.0.4183.87_chromedriver_win32.zip
 +    7.8 MB concfg (0.2020.03.15)             …_archive_2976a9ffc435a8ba8f2ba47e95cd631f2a73221d.zip
 +    3.5 MB dark (3.11.2)                     …com_ScoopInstaller_Binary_master_dark_dark-3.11.2.zip
 +    1.5 MB everything (1.4.1.969)              https_www.voidtools.com_Everything-1.4.1.969.x64.zip
 +    1.5 MB everything (1.4.1.986)              https_www.voidtools.com_Everything-1.4.1.986.x64.zip
 +    1.5 MB everything (1.4.1.988)              https_www.voidtools.com_Everything-1.4.1.988.x64.zip
 +   66.1 MB ffmpeg (4.2.2)                    …com_builds_win64_static_ffmpeg-4.2.2-win64-static.zip
 +   66.8 MB ffmpeg (4.2.3)                    …com_builds_win64_static_ffmpeg-4.2.3-win64-static.zip
 +   70.6 MB ffmpeg (4.3)                      …e.com_builds_win64_static_ffmpeg-4.3-win64-static.zip
 +   75.8 MB ffmpeg (4.3.1)                    …com_builds_win64_static_ffmpeg-4.3.1-win64-static.zip
 +   68.3 MB ffmpeg-nightly (20200403-52523b6) …win64_static_ffmpeg-20200403-52523b6-win64-static.zip
 +   51.7 MB firefox (78.0.2)                  …78.0.2_win64_en-US_Firefox_20Setup_2078.0.2.exe_dl.7z
 +   52.0 MB firefox (79.0)                    …ses_79.0_win64_en-US_Firefox_20Setup_2079.0.exe_dl.7z
 +    6.3 MB freac (1.0.33)                    …_freac_releases_download_v1.0.33_freac-1.0.33-bin.zip
 +   15.3 MB freac (1.1)                       …reac_releases_download_v1.1_freac-1.1-windows-x64.zip
 +   15.3 MB freac (1.1.1)                     …_releases_download_v1.1.1_freac-1.1.1-windows-x64.zip
 +   15.4 MB freac (1.1.2)                     …releases_download_v1.1.2_freac-1.1.2a-windows-x64.zip
 +   41.1 MB git (2.26.0.windows.1)            …26.0.windows.1_PortableGit-2.26.0-64-bit.7z.exe_dl.7z
 +   41.1 MB git (2.26.2.windows.1)            …26.2.windows.1_PortableGit-2.26.2-64-bit.7z.exe_dl.7z
 +   41.8 MB git (2.27.0.windows.1)            …27.0.windows.1_PortableGit-2.27.0-64-bit.7z.exe_dl.7z
 +   44.7 MB git (2.28.0.windows.1)            …28.0.windows.1_PortableGit-2.28.0-64-bit.7z.exe_dl.7z
 +    8.7 MB gow (0.8.0)                       …elle_gow_releases_download_v0.8.0_Gow-0.8.0.exe_dl.7z
 +   12.9 MB handbrake (1.3.1)                 …leases_1.3.1_HandBrake-1.3.1-x86_64-Win_GUI.exe_dl.7z
 +   17.7 MB handbrake (1.3.2)                 …ses_download_1.3.2_HandBrake-1.3.2-x86_64-Win_GUI.zip
 +   17.3 MB handbrake (1.3.3)                 …ses_download_1.3.3_HandBrake-1.3.3-x86_64-Win_GUI.zip
 +  137.6 KB innounp (0.49)                    …m_ScoopInstaller_Binary_master_innounp_innounp049.rar
 +    1.2 GB kicad (5.1.6_1)                   …cern.ch_windows_stable_kicad-5.1.6_1-x86_64.exe_dl.7z
 +  495.0 KB lessmsi (1.6.91)                  …lessmsi_releases_download_v1.6.91_lessmsi-v1.6.91.zip
 +    2.3 MB lxrunoffline (3.4.1)              …releases_download_v3.4.1_LxRunOffline-v3.4.1-msvc.zip
 +    2.5 MB lxrunoffline (3.5.0)              …releases_download_v3.5.0_LxRunOffline-v3.5.0-msvc.zip
 +  259.2 MB mongodb (4.2.3)                   …_win32_mongodb-win32-x86_64-2012plus-4.2.3-signed.msi
 +  263.2 MB mongodb (4.2.5)                   …_win32_mongodb-win32-x86_64-2012plus-4.2.5-signed.msi
 +  264.4 MB mongodb (4.2.6)                   …_win32_mongodb-win32-x86_64-2012plus-4.2.6-signed.msi
 +  264.2 MB mongodb (4.2.7)                   …_win32_mongodb-win32-x86_64-2012plus-4.2.7-signed.msi
 +     265 B mongodb.txt ()
 +   25.7 MB nmap (7.80)                                      https_nmap.org_dist_nmap-7.80-setup.exe
 +  135.5 KB ntop (0.3.4)                      …ub.com_Nuke928_NTop_releases_download_v0.3.4_ntop.exe
 +   85.5 MB nuget-package-explorer (5.7.113)  …ges.chocolatey.org_NugetPackageExplorer.5.7.113.nupkg
 +    2.3 MB nvm (1.1.7)                       …nvm-windows_releases_download_1.1.7_nvm-noinstall.zip
 +  491.5 KB openhardwaremonitor (0.9.5)       …dwaremonitor.org_files_openhardwaremonitor-v0.9.5.zip
 +    1.9 MB openssh (7.6p1)                   …sys2.org_msys_x86_64_bash-4.4.012-1-x86_64.pkg.tar.xz
 +  821.9 KB openssh (7.6p1)                   …s2.org_msys_x86_64_gcc-libs-6.4.0-1-x86_64.pkg.tar.xz
 +  546.6 KB openssh (7.6p1)                   …ys2.org_msys_x86_64_heimdal-1.5.3-9-x86_64.pkg.tar.xz
 +  592.7 KB openssh (7.6p1)                   …rg_msys_x86_64_heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz
 +    7.3 MB openssh (7.6p1)                   …po.msys2.org_msys_x86_64_icu-59.1-1-x86_64.pkg.tar.xz
 +   32.1 KB openssh (7.6p1)                   …sys2.org_msys_x86_64_libcrypt-2.1-1-x86_64.pkg.tar.xz
 +  656.4 KB openssh (7.6p1)                   …sys2.org_msys_x86_64_libdb-5.3.28-2-x86_64.pkg.tar.xz
 +   96.9 KB openssh (7.6p1)                   …rg_msys_x86_64_libedit-3.1-20170329-x86_64.pkg.tar.xz
 +1,022.5 KB openssh (7.6p1)                   …rg_msys_x86_64_libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz
 +  266.8 KB openssh (7.6p1)                   …g_msys_x86_64_libreadline-7.0.003-1-x86_64.pkg.tar.xz
 +  564.3 KB openssh (7.6p1)                   …rg_msys_x86_64_libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz
 +    2.4 MB openssh (7.6p1)                   …g_msys_x86_64_msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz
 +    1.1 MB openssh (7.6p1)                   …_msys_x86_64_ncurses-6.0.20170708-2-x86_64.pkg.tar.xz
 +  679.9 KB openssh (7.6p1)                   …ys2.org_msys_x86_64_openssh-7.6p1-1-x86_64.pkg.tar.xz
 +   55.1 KB openssh (7.6p1)                   …msys2.org_msys_x86_64_zlib-1.2.11-1-x86_64.pkg.tar.xz
 +    1.9 MB openssh (8.2p1-1)                 …sys2.org_msys_x86_64_bash-4.4.023-2-x86_64.pkg.tar.xz
 +    1.2 MB openssh (8.2p1-1)                 …s2.org_msys_x86_64_gcc-libs-9.3.0-1-x86_64.pkg.tar.xz
 +  430.4 KB openssh (8.2p1-1)                 …ys2.org_msys_x86_64_heimdal-7.7.0-1-x86_64.pkg.tar.xz
 +  742.4 KB openssh (8.2p1-1)                 …rg_msys_x86_64_heimdal-libs-7.7.0-1-x86_64.pkg.tar.xz
 +   35.3 KB openssh (8.2p1-1)                 …sys2.org_msys_x86_64_libcrypt-2.1-2-x86_64.pkg.tar.xz
 +  656.4 KB openssh (8.2p1-1)                 …sys2.org_msys_x86_64_libdb-5.3.28-2-x86_64.pkg.tar.xz
 +  104.2 KB openssh (8.2p1-1)                 …_msys_x86_64_libedit-20191231_3.1-1-x86_64.pkg.tar.xz
 +    1.1 MB openssh (8.2p1-1)                 …rg_msys_x86_64_libopenssl-1.1.1.e-1-x86_64.pkg.tar.xz
 +  463.0 KB openssh (8.2p1-1)                 ….org_msys_x86_64_libsqlite-3.30.0-1-x86_64.pkg.tar.xz
 +    2.6 MB openssh (8.2p1-1)                 …g_msys_x86_64_msys2-runtime-3.0.7-6-x86_64.pkg.tar.xz
 +    1.3 MB openssh (8.2p1-1)                 …msys2.org_msys_x86_64_ncurses-6.2-1-x86_64.pkg.tar.xz
 +  710.6 KB openssh (8.2p1-1)                 …ys2.org_msys_x86_64_openssh-8.2p1-1-x86_64.pkg.tar.xz
 +    2.7 MB openssh (8.2p1-1)                 …2.org_msys_x86_64_openssl-1.1.1.e-1-x86_64.pkg.tar.xz
 +   55.1 KB openssh (8.2p1-1)                 …msys2.org_msys_x86_64_zlib-1.2.11-1-x86_64.pkg.tar.xz
 +   55.3 MB powershell (6.2.4)                …releases_download_v6.2.4_PowerShell-6.2.4-win-x64.zip
 +   88.7 MB powershell (7.0.0)                …releases_download_v7.0.0_PowerShell-7.0.0-win-x64.zip
 +   88.7 MB powershell (7.0.1)                …releases_download_v7.0.1_PowerShell-7.0.1-win-x64.zip
 +   88.9 MB powershell (7.0.2)                …releases_download_v7.0.2_PowerShell-7.0.2-win-x64.zip
 +   88.9 MB powershell (7.0.3)                …releases_download_v7.0.3_PowerShell-7.0.3-win-x64.zip
 +   88.8 MB powershell-preview (7.0.0-rc.3)   …ownload_v7.0.0-rc.3_PowerShell-7.0.0-rc.3-win-x64.zip
 +   53.2 KB pshazz (0.2019.08.07)             …_archive_30609306103dd2988353e44596c6093c688b0ea5.zip
 +   53.3 KB pshazz (0.2020.04.16)             …_archive_ddfe6f392c540b5bc7c319270bcf94ae1707b9b3.zip
 +   53.4 KB pshazz (0.2020.05.16)             …_archive_cb43061ae82f0f71cb540f360f3a810632ba77da.zip
 +   53.5 KB pshazz (0.2020.05.23)             …_archive_e39443e96a744dd62e3054079b25b46297f2eaee.zip
 +     555 B python (3.8.2)                    …taller_Main_master_scripts_python_install-pep-514.reg
 +      86 B python (3.8.2)                    …ller_Main_master_scripts_python_uninstall-pep-514.reg
 +   26.3 MB python (3.8.2)                    …ww.python.org_ftp_python_3.8.2_python-3.8.2-amd64.exe
 +     555 B python (3.8.3)                    …taller_Main_master_scripts_python_install-pep-514.reg
 +      86 B python (3.8.3)                    …ller_Main_master_scripts_python_uninstall-pep-514.reg
 +   26.5 MB python (3.8.3)                    …org_ftp_python_3.8.3_python-3.8.3-amd64.exe_setup.exe
 +     555 B python (3.8.4)                    …taller_Main_master_scripts_python_install-pep-514.reg
 +      86 B python (3.8.4)                    …ller_Main_master_scripts_python_uninstall-pep-514.reg
 +   26.6 MB python (3.8.4)                    …org_ftp_python_3.8.4_python-3.8.4-amd64.exe_setup.exe
 +     555 B python (3.8.5)                    …taller_Main_master_scripts_python_install-pep-514.reg
 +      86 B python (3.8.5)                    …ller_Main_master_scripts_python_uninstall-pep-514.reg
 +   26.6 MB python (3.8.5)                    …org_ftp_python_3.8.5_python-3.8.5-amd64.exe_setup.exe
 +   19.6 MB python27 (2.7.17)                 ….python.org_ftp_python_2.7.17_python-2.7.17.amd64.msi
 +   19.6 MB python27 (2.7.18)                 ….python.org_ftp_python_2.7.18_python-2.7.18.amd64.msi
 +  140.1 MB qemu (5.1.0-rc3)                  …emu.weilnetz.de_w64_qemu-w64-setup-20200805.exe_dl.7z
 +    1.1 MB rufus (3.10)                      …fus_releases_download_v3.10_rufus-3.10p.exe_rufus.exe
 +    1.1 MB rufus (3.11)                      …fus_releases_download_v3.11_rufus-3.11p.exe_rufus.exe
 +    1.1 MB rufus (3.9)                       …rufus_releases_download_v3.9_rufus-3.9p.exe_rufus.exe
 +   18.2 MB scoop-viewer (v0.8.1)             …coop-viewer_releases_download_v0.8.1_scoop-viewer.zip
 +    1.2 MB smartmontools (7.1-1)             …smartmontools_7.1_smartmontools-7.1-1.win32-setup.exe
 +    2.2 KB sudo (0.2020.01.26)               …ils_c7116ac143ca81f223e6091d0974f45ac241eb1d_sudo.ps1
 +   29.4 MB sysinternals (2020.April.28)      …download.sysinternals.com_files_SysinternalsSuite.zip
 +   29.7 MB sysinternals (2020.June.24)       …download.sysinternals.com_files_SysinternalsSuite.zip
 +   29.0 MB sysinternals (December.18.2019)   …download.sysinternals.com_files_SysinternalsSuite.zip
 +  557.4 KB tftpd (4.64)                      …bucket.org_phjounin_tftpd64_downloads_tftpd64.464.zip
 +    8.8 MB vim (8.2)                                 https_ftp.nluug.nl_pub_vim_pc_gvim82.exe_dl.7z
 +     219 B vim (8.2)                         …Installer_Main_master_scripts_vim_install-context.reg
 +     168 B vim (8.2)                         …staller_Main_master_scripts_vim_uninstall-context.reg
 +   35.3 MB vlc (3.0.10)                      …videolan.org_pub_vlc_3.0.10_win64_vlc-3.0.10-win64.7z
 +   34.7 MB vlc (3.0.11)                      …videolan.org_pub_vlc_3.0.11_win64_vlc-3.0.11-win64.7z
 +   34.9 MB wireshark (3.2.4)                 …32_all-versions_WiresharkPortable_3.2.4.paf.exe_dl.7z
 +   35.0 MB wireshark (3.2.5)                 …32_all-versions_WiresharkPortable_3.2.5.paf.exe_dl.7z
 +   35.0 MB wireshark (3.2.6)                 …32_all-versions_WiresharkPortable_3.2.6.paf.exe_dl.7z
 +    2.5 MB xming (6.9.0.31)                  …g-mesa_6.9.0.31_Xming-mesa-6-9-0-31-setup.exe_r_scoop
 +    1.4 MB xz (5.2.5)                                     https_tukaani.org_xz_xz-5.2.5-windows.zip
 +    1.6 MB yarn (1.22.4)                         https_yarnpkg.com_downloads_1.22.4_yarn-1.22.4.msi
 +   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
 +</code>
 +</WRAP>
 +
 +ダウンロード キャッシュをクリアして領域解放する場合は **rm [app]** オプションに **'*'(すべて)** を指定する。\\
 +<code powershell>
 +$ scoop cache rm *
 +$ scoop cache show
 +</code>
 +<WRAP prewrap 100% #result>
 +<code>
 +Total: 0 files, 0 B
 +</code>
 +</WRAP>
 +
 +===== scoop 内部設定情報の取得設定 [config] =====
 +<WRAP prewrap 100%>
 +<code>
 +$ cat ~\.config\scoop\config.json
 +</code>
 +</WRAP>
 +<WRAP prewrap 100%>
 +<code javascript>
 +{
 +  "lastupdate": "2021-10-06T06:03:44.3340404+09:00",
 +  "SCOOP_REPO": "https://github.com/lukesampson/scoop",
 +  "SCOOP_BRANCH": "master",
 +  "alias": {},
 +  "aria2-enabled": false,
 +  "7ZIPEXTRACT_USE_EXTERNAL": false
 +}
 +</code>
 +</WRAP>
 +
 +設定の例\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ scoop config "7ZIPEXTRACT_USE_EXTERNAL"
 +False
 +$ scoop config "7ZIPEXTRACT_USE_EXTERNAL" $true
 +'7ZIPEXTRACT_USE_EXTERNAL' has been set to 'True'
 +$ scoop config "7ZIPEXTRACT_USE_EXTERNAL"
 +True
 +</code>
 +</WRAP>
 +
 +設定値の詳細については以下が参考になります🤤\\
 +[[qita>nimzo6689/items/53c63439f56ccd2d38c1#config|config - 全Scoopコマンド解説 その3 ~使用頻度(低)~ - Qiita]]\\
 +
 +===== コマンドエイリアス [alias] =====
 +<WRAP prewrap 100%>
 +<code>
 +$ scoop alias add reinstall 'scoop uninstall $args[0]; scoop install $args[0]' 'Uninstall and then install app'
 +$ scoop alias list -v
 +
 +Name      Command                                          Summary
 +----      -------                                          -------
 +reinstall scoop uninstall $args[0]; scoop install $args[0] Uninstall and then install app
 +</code>
 +</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 アプリのインストール =====
行 759: 行 1166:
 [[windows:openssh|OpenSSH(Windows)]]\\ [[windows:openssh|OpenSSH(Windows)]]\\
 [[windows:gow|Gow (Gnu On Windows) - Linux コマンド群 (Cygwin 軽量版)]]\\ [[windows:gow|Gow (Gnu On Windows) - Linux コマンド群 (Cygwin 軽量版)]]\\
-[[windows:sudo|sudo コマンド]]\\ +[[windows:sudo|sudo - 管理者実行コマンド]]\\ 
-[[windows:vim|Vim(Windows)]]\\+[[python:python_install|Python]]\\ 
 +[[windows:mongodb|MongoDB]]\\ 
 +[[windows:wsl:lxrunoffline|LxRunOffline]]\\ 
 +[[windows:handbrake|HandBrake - オープンソースビデオトランスコーダー]]\\ 
 +[[windows:sysinternals|Windows Sysinternals - 無償の Windows 向けツール]]\\ 
 +[[windows:windows_terminal|Windows Terminal]]\\ 
 +[[windows:freac|fre:ac - フリーのオープンソース オーディオ コンバータ]]\\ 
 +[[windows:everything|Everything - 高速ファイル検索]]\\ 
 +[[windows:youtube-dl-gui|Youtube-DLG - YouTube や他の動画サイトから動画をダウンロード]]\\ 
 +[[windows:rufus|Rufus - Live USB 作成ツール]]\\ 
 +[[windows:audacity|Audacity - オープンソースのクロスプラットフォームオーディオソフトウェア]]\\ 
 +[[windows:vim|Vim - 高機能テキストエディタ (Windows)]]\\ 
 +[[windows:ffmpeg|ffmpeg - オーディオ/ビデオ 記録・変換・再生 コマンド]]\\ 
 +[[windows:pshazz|Pshazz - Powershell プロファイルの拡張]]\\ 
 +[[javascript:yarn|Yarn - パッケージ マネージャ]]\\
  
 ==== scoop gui ==== ==== scoop gui ====
行 806: 行 1227:
 </WRAP> </WRAP>
 {{:windows:scoop-viewer_001.png?800|Scoop Viewer 001}}\\ {{:windows:scoop-viewer_001.png?800|Scoop Viewer 001}}\\
 +
 +===== 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>
 +<html><code>~/scoop/persist</code></html> フォルダが削除される。\\
 +
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ del ~\scoop -Force
 +</code>
 +</WRAP>
 +<html><code>~/scoop</code></html> フォルダを削除すると Scoop を再インストールできる。\\
 +
 +[[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]]\\
  
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
行 815: 行 1386:
 %HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps %HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps
 </code> </code>
-Windows の大型アップデートによって、ショートカットが消えるらしい...(^_^;;)\\+Windows の大型アップデートによって、ショートカットが消えるらしい...😅💦\\
 以下のコマンドでショートカットを修復できる。\\ 以下のコマンドでショートカットを修復できる。\\
 <code powershell> <code powershell>
行 1087: 行 1658:
 </WRAP> </WRAP>
  
-===== Scoop のアンインストール =====+==== The SSL connection could not be established エラーで scoop がインストールできない場合 ==== 
 +SSL 接続を確立できませんと言われて scoop のインストールに失敗する。\\ 
 +PowerShell v7.1.4 になってから急に発生した現象であるが、ちなみに PowerShell 5.1 ではでは問題なく実行できた。\\ 
 +原因不明な現象で調査はしていませんが、対処方法だけ以下にまとめておきます😒\\ 
 +参考: [[tw>tomoyan596/status/1445511467600515085|最新のPowerShell v7.1.4 でScoopはインストールできない❓🤔SSL接続を確立できませんって言われます🤔古いPowerShell v5.1では問題ないようです🤤何が原因なんでしょうねぇ🤔 / Twitter]]\\ 
 <WRAP prewrap 100%> <WRAP prewrap 100%>
-<code powershell+<html><div id="color_result"><pre
-$ scoop uninstall scoop +iwr -useb get.scoop.sh | iex 
-</code>+Initializing... 
 +<b class=RED>Invoke-Expression: Exception calling "DownloadString" with "1" argument(s): "The SSL connection could not be established, see inner exception."</b> 
 +</pre></html></WRAP> 
 + 
 +この問題とは別の症状とは思われるが、TLS1.3を明示指定すると回避できたので記載しておくことにする。\\ 
 +[[git>lukesampson/scoop/issues/4002|Installation failed, due to SSL/TLS Error [fix] · Issue #4002 · lukesampson/scoop · GitHub]]\\ 
 +\\ 
 +SecurityProtocolType 列挙型で指定可能な一覧は以下の文献を参照のこと🤤\\ 
 +[[https://docs.microsoft.com/ja-jp/dotnet/api/system.net.securityprotocoltype?view=net-5.0|SecurityProtocolType 列挙型 (System.Net)]]\\ 
 +\\ 
 +<WRAP prewrap 100%> 
 +<html><div id="color_result"><pre> 
 +$ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13 
 +$ iwr -useb get.scoop.sh | iex 
 +Initializing... 
 +Downloading scoop... 
 +Extracting... 
 +Creating shim... 
 +Downloading main bucket... 
 +Extracting... 
 +'lastupdate' has been set to '2021-10-06T10:20:25.7125822+09:00' 
 +<b class=GRN>Scoop was installed successfully!</b> 
 +Type 'scoop help' for instructions. 
 +</pre></div></html>
 </WRAP> </WRAP>
-<WRAP prewrap 100% #result+ 
-<code powershell+==== $7zPath で Cannot validate argument on parameter 'FilePath'. エラーが発生する場合 ==== 
-WARN  This will uninstall Scoop and all the programs that have been installed with Scoop! +<WRAP prewrap 100%> 
-Are you sure? (yN)y +<html><div id="color_result"><pre
-Removing ~\scoop\shims from your path+<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>scoop</b> install firefox 
-Scoop has been uninstalled+Installing 'firefox' (93.0) [64bit] 
-</code>+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> </WRAP>
  
 +scoop の shims には shim ファイルが存在しているが...🤔\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
-<code powershell+<html><div id="color_result"><pre
-del ~\scoop -Force +<b class=HIC>~</b> <b class=GRN>$</b> <b class=HIY>which</b> 7z 
-</code>+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>
  
 ===== 参考文献 ===== ===== 参考文献 =====
-[[https://github.com/lukesampson/scoop/wiki|Home · lukesampson/scoop Wiki]]\\ +[[git>lukesampson/scoop/wiki|Home · lukesampson/scoop Wiki]]\\ 
-[[https://qiita.com/Dooteeen/items/12dc8fb14042888113d0|Scoopを使ったWindows環境構築のススメ - Super!! - Qiita]]\\+[[qita>Dooteeen/items/12dc8fb14042888113d0|Scoopを使ったWindows環境構築のススメ - Super!! - Qiita]]\\ 
 +[[qita>Dooteeen/items/c55223c26a42776f7101|Scoopを使ったWindows環境構築のススメ - Hyper!!! - Qiita]]\\
 [[https://tech.guitarrapc.com/entry/2019/12/01/233522|Windows開発環境の構築をChocolateyからscoopに切り替える - tech.guitarrapc.cóm]]\\ [[https://tech.guitarrapc.com/entry/2019/12/01/233522|Windows開発環境の構築をChocolateyからscoopに切り替える - tech.guitarrapc.cóm]]\\
-[[https://qiita.com/akiakishitai/items/67de2d8dded401f218a2|個人的によく使うScoopコマンド - Qiita]]\\+[[qita>akiakishitai/items/67de2d8dded401f218a2|個人的によく使うScoopコマンド - Qiita]]\\
 [[https://blog.haniyama.com/2018/03/12/scoop-bucket/|scoop bucket を作成する - enjoy struggling]]\\ [[https://blog.haniyama.com/2018/03/12/scoop-bucket/|scoop bucket を作成する - enjoy struggling]]\\
 +
 +==== 付録 ====
 +[[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.1589680135.txt.gz
  • 最終更新: 2020/05/17 10:48
  • by ともやん