hardware/windows/package-managers.md
Table of Contents
Windows Package Managers
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
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\GitI:\git-sdk-64
- Install Git for Windows SDK somewhere else. You'll need more than 3 GB of free space.
- Copy
${git-sdk}/usr/bin/pacman.exeto${git}/usr/bin - Copy
${git-sdk}/etc/pacman.confand${git-sdk}/etc/pacman.dto${git}/etc - Copy
${git-sdk}/varto${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.