A quick recap on Chocolatey, a package manager for Windows

SubPointSupport
SubPointSolutions
Published in
3 min readMar 4, 2019
Chocolatey - The package manager for Windows

Setting up a new laptop or virtual machine with the software and tooling might be a challenging and extremely boring routine. If you want to streamline installation experience, you might consider looking into the Chocolatey package manager. It takes away the complexity of software downloads, installation, and upgrades so you can have your coffee or focus on other tasks.

Install Chocolatey

Getting Chocolatey installed is super-easy. It comes with cmd.exe and PowerShell versions. Refer to the official installation guide for more details or fire up the following in your console:

# via cmd
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
# via PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Explore Chocolatey packages

Once done, you can install new software with the help of a few commands. Chocolatey is built on top of NuGet so that all packages are available in Chocolatey Gallery. You can find nearly every software package there:

Let see a bare developer setup via Chocolatey lenses. We need recent browsers, git, Cmder, Visual Studio Code, and maybe curl/wget? Here we go:

choco install -y googlechrome
choco install -y firefox
choco install -y cmder
choco install -y nugetpackageexplorer
choco install -y gitchoco install -y wget
choco install -y curl
choco install -y 7zip
choco install -y visualstudiocode

A broader setup might look as following:

choco install -y googlechrome
choco install -y firefox
choco install -y adobereader
choco install -y kindle
choco install -y skype
choco install -y spotify
choco install -y slack
choco install -y viber
choco install -y cmder
choco install -y rdcman
choco install -y mremoteng
choco install -y paint.net
choco install -y nugetpackageexplorer
choco install -y dd
choco install -y fciv
choco install -y putty
choco install -y nano
choco install -y git
choco install -y svn
choco install -y github
choco install -y wget
choco install -y curl
choco install -y 7zip
choco install -y winrar
choco install -y sysinternals
choco install -y awscli
choco install -y awstools.powershell
choco install -y azure-cli
choco install -y windowsazurepowershell
choco install -y azcopy
choco install -y azurestorageexplorer
choco install -y visualstudiocode
choco install -y cshell
choco install -y ruby
choco install -y nodejs
choco install -y python
choco install -y jre8
choco install -y dotnet4.6
choco install -y dotnet3.5
choco install -y dogtail.dotnet3.5sp1
choco install -y golang
choco install -y liteide
choco install -y evernote
choco install -y xmind
choco install -y packer
choco install -y vagrant
choco install -y virtualbox --version 5.1.22
choco install -y vlc

For what the Chocolatey does, it is worth exploring further. Codified setup can be stored in source control, your personal setups can be easily managed in https://gist.github.com, and then infrastructure automation becomes much easier.

In our projects, we use Chocolatey in a variety of cases including baking Windows and SharePoint images with packer to produce reusable vagrant boxes.

Further reading
Checkout how other people use Chocolatey and share your experience as well.
https://chocolatey.org
https://chocolatey.org/packages
https://medium.com/@jiayu./thoughts-on-chocolatey-6d2c69b28727
https://medium.com/@jrcharney/the-list-of-windows-software-you-should-be-using-65aaf387bbdf

--

--

SubPointSupport
SubPointSolutions

Easy SharePoint automation for developers and engineers. Provision SharePoint artifacts and deliver SharePoint infrastructure with confidence, sanity and joy.