Chocolatey is a package manager for Windows, handy on a VPS to install or update software via the command line without clicking through multiple installers.
Prerequisites
- Windows Server or recent Windows
- PowerShell run as Administrator
- Execution policy allowing the install script (see below)
Allow scripts (current session)
Open PowerShell (Admin):
PowerShellSet-ExecutionPolicy Bypass -Scope Process -Force
Install Chocolatey
Still as administrator, run the official command (see chocolatey.org/install for updates):
PowerShell[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Close and reopen PowerShell, then verify:
PowerShellchoco -v
Example installs
PowerShellchoco install git -y choco install 7zip -y choco install vscode -y
Upgrade all Chocolatey packages:
PowerShellchoco upgrade all -y
Best practices
- Use
-yfor non-interactive server deployments. - Install only what you need to reduce attack surface.
- Document versions for production and test upgrades.
Our Windows VPS are available in the same 8 locations: Windows VPS France, Windows VPS Germany, Windows VPS Netherlands, Windows VPS United Kingdom, Windows VPS USA, Windows VPS Canada, Windows VPS Turkey and Windows VPS Hong Kong. Desktop editions are offered too: Windows 10 RDP and Windows 11 RDP.
Troubleshooting
- Access denied: ensure PowerShell is elevated.
- Corporate proxy: configure system proxy or Chocolatey’s documented proxy options.
Chocolatey is a third-party ecosystem; verify package details on the community gallery before installing.