Windows Package Managers

My work computer is a MacBook Pro, but my home computer is typically Windows. This gave me issues when I started to trying to blog again–I need to run Hugo in order to preview my posts.

The Hugo install instructions give instructions for both Chocolatey and Scoop, both of which I’ve never heard of before. I’m clueless when it comes to computery stuff on a Windows machine.

This article gives a good intro as to Chocolatey vs. Scoop (it recommends installing both). The summary is that Chocolatey installs things where you’d expect, as an admin. Scoop installs as a user.

Copying the instructions, in case I want to reference this post in the future.

Setup

Open PowerShell (I also didn’t know what this was) as admin. Shortcut: Win+x > Windows PowerShell (Admin).

Then run:

Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy RemoteSigned -scope CurrentUser

This requires all scripts on the computer to be signed by a trusted publisher. The current user can use scripts they write themselves.

Chocolatey

In an Admin PowerShell:

iwr -useb chocolatey.org/install.ps1 | iex

Scoop

In any PowerShell:

iwr -useb get.scoop.sh | iex

Install extras:

scoop bucket add extras