hardware/windows/package-managers.md

Windows Package Managers

Chocolatey

chocolatey

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Then (in elevated/admin powershell): choco install ack

Scoop

Scoop

In powershell, run:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

Then: scoop install fd

Old Package Manager: pacman via Git for Windows SDK

Git does not ship pacman with Git for Windows. To get a fully fledged package-manager-maintained environment, install the Git for Windows SDK. Reference.

Uses https://www.msys2.org/.

Make pacman work for existing git

Requires running git bash as admin.

Locations:

  • C:\Program Files\Git
  • I:\git-sdk-64
  1. Install Git for Windows SDK somewhere else. You'll need more than 3 GB of free space.
  2. Copy ${git-sdk}/usr/bin/pacman.exe to ${git}/usr/bin
  3. Copy ${git-sdk}/etc/pacman.conf and ${git-sdk}/etc/pacman.d to ${git}/etc
  4. Copy ${git-sdk}/var to ${git}/

You can now open Git Bash and run pacman -S python, pacman -S tmux to install packages on your existing Git for Windows setup.