Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.02 KB

< Backaward

Chocolatey

Most OS have some kind of package manager.

  • apt (Linux~)
  • snap (Linux~)
  • brew (Mac)

For installing some tools, you must use package manager.

Chocolatey is package manager for Windows.

Warning

To install Chocolatey, we use PowerShell havve administrative permission.

And we Set-ExecutionPolicy

In official installation commands, Set-ExecutionPolicy, will ease secuirty against external script execution.

So, YOU MUST Set-ExecutionPolicy TO Restricted AFTER INSTALL CHOCOLATEY.

Installation

Get-ExecutionPolicy
# Restricted

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'))
# Install Chocolatey
# References : https://chocolatey.org/install#individual

Get-ExecutionPolicy
# ByPass

Set-ExecutionPolicy Restricted -Scope Process
# Restricted