Applications/windows/chocolatey.md
2024-04-03 22:04:13 +02:00

31 lines
826 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Chocolatey
Chocolatey is a machine-level, command-line package manager and installer for Windows software.
Project Homepage: [Chocolatey Homepage](https://chocolatey.org)
---
## Installation
1. Check the Execution Policy
Run `Get-ExecutionPolicy`. If it returns `Restricted`, then run `Set-ExecutionPolicy AllSigned` or `Set-ExecutionPolicy Bypass -Scope Process`.
2. Install Chocolatey
```powershell
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'))
```
3. Check if you install chocolatey
```powershell
choco -?
```
---
## Install software package
```powershell
choco install <package>
```