Chocolatey - GradedJestRisk/windows-training GitHub Wiki

Package manager, Windows only.

Bullet points:

  • get the latest release without any manual actions (OK for most apps);
  • script to enable fast new machine setup, sample script here.
Next step would be to store all settings in cloud and synchronise them (Notepad++ has such a feature), all in one place instead of relying on vendors (ex: Mozilla/Google).

Install

Steps:

  • start Powershell CLI with adminstrator rights
  • run Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  • type choco , you'll get Chocolatey v0.10.13
  • type choco feature enable -n allowGlobalConfirmation
  • enable auto-upgrade (schedule task) choco install choco-upgrade-all-at-startup



General

Handful:

  • get installed app: clist -li or choco list --local-only
  • bin location C:\ProgramData\chocolatey\bin
  • search for available app: choco search <APPLICATION_NAME>
  • install app choco install <APPLICATION_NAME>
  • upgrade app choco upgrade <APPLICATION_NAME>
  • upgrade all apps choco upgrade all -y
  • uninstall app choco uninstall <APPLICATION_NAME>

Missing

Package name autocompletion

⚠️ **GitHub.com Fallback** ⚠️