brew-like Scoop for Windows

less than 1 minute read

Scoop brings easy install like scoop install gcc of developer programs to Microsoft Windows. Scoop works from a fresh Windows install, for example via free Windows virtual machine image.

Like Homebrew and Linuxbrew, Scoop does NOT require administrator/root access, so users in restrictive (but Internet connected) environments can use Scoop to get the latest development tools.

The Scoop package list is built from little JSON snippets, so Scoop is lightweight to maintain, and easy to add new packages to.

Install

  1. From PowerShell:
    iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
    
  2. Install Git and SSH via Scoop, so that Scoop can update its recipes:
    scoop install git openssh
    
  3. open a new PowerShell to use scoop.

Usage

These are the most common development tools you may want:

  • gcc/gfortran: scoop install gcc
  • make/cmake: scoop install make cmake
  • clang/LLVM: scoop install clang
  • GNU Octave: scoop install octave

sh.exe error with cmake

I get a nuisance error from cmake about sh.exe being on the Path. I eliminate this message by adding -DCMAKE_SH="CMAKE_SH-NOTFOUND" to my cmake command, like:

cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" ..

Updating packages

From time to time, you can simply scoop update gcc or similar to update individual packages.

Notes

Categories:

Updated:

Leave a Comment