User Tools

Site Tools


Sidebar

tool:software:chocolatey

Table of Contents

Chocolatey

Chocolatey is a package manager for Windows. It's a bit slow, but it's really handy if you want to keep your program installations and upgrades organised. I imagine it's especially great if you've a new computer and want to install a whole bunch of favourite programs.

You install stuff from a command prompt, with commands like choco install/search/upgrade all, etc (And there are shorter versions too, eg: cinst).

You can also give it a file which lists everything you want to install, autoconfirm prompts, and let it do it's thing;

<?xml version="1.0" encoding="utf-8"?>
<packages>
	<package id="firefox" />
	<package id="foobar2000" />
	<package id="notepadplusplus" />
	<package id="steam" />
</packages>

Useful Commands

  • search
  • install / cinst
  • uninstall / cuninst
  • upgrade all / cup all
  • list -localonly

Shortcut

I keep this batch file on my desktop so I can run an update whenever:

PowerShell -NoProfile -NoExit -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell.exe 'choco upgrade all' -Verb RunAs}"
PAUSE

You could also just run a Powershell script directly, but I keep my executionpolicy restricted setting on, so scripts can't get through. Maybe that's paranaoid…

See Also

tool/software/chocolatey.txt · Last modified: 2018/07/28 00:57 (external edit)