File size: 1,499 Bytes
034ba67
 
 
 
1
2
3
4
5
{"type": "session", "harness": "opencode", "id": "choco-0000", "name": "Chocolatey package installs"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}}
{"type": "message", "message": {"role": "user", "content": "How do I install packages with Chocolatey (choco install) on Windows, including multiple packages, versions, sources and unattended -y? Include code examples."}}
{"type": "message", "message": {"role": "assistant", "content": "Run in elevated PowerShell; docs: `choco install <pkg|packages.config> [opts]` (docs.chocolatey.org).\n\n```powershell\nchoco install 7zip\nchoco install notepadplusplus googlechrome 7zip\nchoco install nodejs.install --version 0.10.35\nchoco install git -y --params \"'/GitAndUnixToolsOnPath /NoAutoCrlf'\"\nchoco install git -s \"'https://somewhere/out/there'\"\nchoco upgrade chocolatey\n```\n\n`-y` confirms unattended. Community feed is default; for offline remove it (`choco source remove --name chocolatey`) and use internal sources. Install Chocolatey itself via MSI, App Installer/WinGet (`winget install --id Chocolatey.Chocolatey`), or official `install.ps1`."}}