Today, I introduce a software for everyone : Scoop - A package manager for Windows.

1.Overview

Scoop is a package manager for Windows.
It can help you quick manage (download ,install ,update ,uninstall …) an app by a few lines of commands.
Once installed , You don’t need to set environment variables.(Because it will automatically add environment variables).

2.Installation

Requirements

Installation

Enable powerShell for your user account e.g :

1
set-executionpolicy remotesigned -s cu

Install scoop to its default location (C:\Users<user>\scoop) :

1
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

Once installed, run scoop help for instructions.

The default setup is configured so all user installed programs and Scoop itself live in C:\Users\<user>\scoop. Globally installed programs (--global) live in C:\ProgramData\scoop. These settings can be changed through environment variables.

Install Scoop to a Custom Directory :

1
2
3
$env:SCOOP='D:\Applications\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

Configure Scoop to install global programs to a Custom Directory :

1
2
$env:SCOOP_GLOBAL='F:\GlobalScoopApps'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')

3.Usage

Type scoop help to get help :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PS C:\Users\Jianrry\Desktop> scoop help
Usage: scoop <command> [<args>]

Some useful commands are:

alias Manage scoop aliases
bucket Manage Scoop buckets
cache Show or clear the download cache
checkup Check for potential problems
cleanup Cleanup apps by removing old versions
config Get or set configuration values
create Create a custom app manifest
depends List dependencies for an app
export Exports (an importable) list of installed apps
help Show help for a command
hold Hold an app to disable updates
home Opens the app homepage
info Display information about an app
install Install apps
list List installed apps
prefix Returns the path to the specified app
reset Reset an app to resolve conflicts
search Search available apps
status Show status and check for new app versions
unhold Unhold an app to enable updates
uninstall Uninstall an app
update Update apps, or Scoop itself
virustotal Look for app's hash on virustotal.com
which Locate a shim/executable (similar to 'which' on Linux)


Type 'scoop help <command>' to get help for a specific command.

Search available apps (Take firefox as an example):

1
scoop search firefox

Because results are from other known buckets ,it is necessary to add them using ‘scoop bucket add ‘.

Add an scoop bucket (Take extras as an example):

1
scoop bucket add extras

Install an app (Take firefox as an example):

1
scoop install firefox

Update an app (Take firefox as an example):

1
scoop update firefox

Uninstall an app (Take firefox as an example):

1
scoop uninstall firefox

List installed apps :

1
scoop list

4.Buckets

The following buckets are known to scoop:

  • main - Default bucket for the most common (mostly CLI) apps

  • extras - Apps that don’t fit the main bucket’s criteria

  • games - Open source/freeware games and game-related tools

  • nerd-fonts - Nerd Fonts

  • nirsoft - A subset of the 250 Nirsoft apps

  • java - Installers for Oracle Java, OpenJDK, Zulu, ojdkbuild, AdoptOpenJDK, Amazon Corretto, BellSoft Liberica & SapMachine

  • jetbrains - Installers for all JetBrains utilities and IDEs

  • nonportable + Non-portable apps (may require UAC)

  • php - Installers for most versions of PHP

  • versions - Alternative versions of apps found in other buckets

The main bucket is installed by default.

If results are from other known buckets ,it is necessary to add them using ‘scoop bucket add ‘.

Add an scoop bucket (Take extras as an example):

1
scoop bucket add extras

Add a customized scoop bucket (Take dorado as an example):

1
scoop bucket add dorado https://github.com/h404bi/dorado

Remove an scoop bucket (Take extras as an example):

1
scoop bucket rm extras

5.Reference

scoop official website

lukesampson/scoop

scoop official wiki