User Tools

Site Tools


tool:software:chocolatey

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tool:software:chocolatey [2018/07/28 00:57] (current)
Line 1: Line 1:
 +====== Chocolatey ======
  
 +**Chocolatey** is a [[wp>​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;
 +
 +<file xml>
 +<?xml version="​1.0"​ encoding="​utf-8"?>​
 +<​packages>​
 + <​package id="​firefox"​ />
 + <​package id="​foobar2000"​ />
 + <​package id="​notepadplusplus"​ />
 + <​package id="​steam"​ />
 +</​packages>​
 +</​file>​
 +
 +===== Useful Commands =====
 +
 +  * In [[wp>​Windows PowerShell]],​ ''​set-executionpolicy [unrestricted|restricted]''​
 +
 +  * ''​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:
 +
 +<code batch>
 +PowerShell -NoProfile -NoExit -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell.exe 'choco upgrade all' -Verb RunAs}"​
 +PAUSE
 +</​code>​
 +
 +  * [[git>​ryliejamesthomas/​choco-upgradeall-bat]]
 +
 +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 =====
 +  * [[wp>​chocolatey]]
 +  * [[https://​chocolatey.org/​|chocolatey.org]]
 +    * [[https://​chocolatey.org/​packages|chocolatey.org/​packages]]
tool/software/chocolatey.txt · Last modified: 2018/07/28 00:57 (external edit)