Skip to content

Instantly share code, notes, and snippets.

@abakum
Created May 12, 2025 08:34
Show Gist options
  • Save abakum/c3caac2483dc4828786232600d45fe57 to your computer and use it in GitHub Desktop.
Save abakum/c3caac2483dc4828786232600d45fe57 to your computer and use it in GitHub Desktop.
Install scoop.sh like chocolatey.org
Попробовал:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Invoke-RestMethod : Запрос был прерван: Не удалось создать защищенный канал SSL/TLS.
строка:1 знак:1
+ Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Тогда посмотрел как это делает chocolatey.org:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Заменил community.chocolatey.org на get.scoop.sh:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh/install.ps1'))
Initializing...
Downloading...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
@abakum
Copy link
Author

abakum commented May 12, 2025

@abakum
Copy link
Author

abakum commented May 24, 2025

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
irm -useb https://pixi.sh/install.ps1 | iex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment