Ngu2a

Ngu2a

code word, change world.
blog
bilibili
github

Installation of Scoop Package Manager on Windows

Installation#

# Set PowerShell script rules
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

# Configure Scoop to install global programs to a custom directory
$env:SCOOP='D:\\Software\Scoop\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')

# Configure Scoop to install global programs to a custom directory SCOOP_GLOBAL (command line method), open the terminal as an administrator and run
$env:SCOOP_GLOBAL='D:\\Software\Scoop\GlobalScoopApps'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')

# Installation
iwr -useb get.scoop.sh | iex

Configuration#

# Install other buckets
# extras
scoop bucket add extras

# Java
scoop bucket add java

# Others
scoop bucket add dorado https://github.com/h404bi/dorado
scoop bucket add spoon https://github.com/FDUZS/spoon.git
scoop bucket add Ash258 https://github.com/Ash258/Scoop-Ash258.git
# Chinese software bucket
scoop bucket add scoopcn https://github.com/scoopcn/scoopcn.git

scoop bucket add main 'https://github.com.cnpmjs.org/ScoopInstaller/Main'
scoop bucket add extras 'https://github.com.cnpmjs.org/lukesampson/scoop-extras'
scoop bucket add versions 'https://github.com.cnpmjs.org/ScoopInstaller/Versions'
scoop bucket add jetbrains 'https://github.com.cnpmjs.org/Ash258/Scoop-JetBrains'

Command Usage#

scoop help # View help
scoop help <command> # View help for a specific command

scoop install <app>   # Install APP
scoop uinstall <app>  # Uninstall APP

scoop list  # List installed APPs
scoop search # Search APPs
scoop status # Check for software updates

scoop update # Update Scoop itself
scoop update appName1 appName2 # Update specific apps
scoop update *  # Update all apps (requires operating in the apps directory)

scoop bucket known # Use this command to list all known buckets (software sources)
scoop bucket add bucketName # Add a specific bucket

scoop cache rm <app> # Remove cache for a specific app

scoop update # Update Scoop itself

scoop update appName1 appName2 # Update specific apps

# Update all apps (may require operating in the apps directory)
scoop update *

# Prevent a program from updating
scoop hold <app>
# Allow a program to update
scoop unhold <app>

# View all downloaded cache information
scoop cache show

# Clear the download cache for a specific program
scoop cache rm <app>

# Clear all caches
scoop cache rm *

# Delete old versions of a software
scoop cleanup <app>

# Delete old versions of a globally installed software
scoop cleanup <app> -g

# Delete expired download caches
scoop cleanup <app> -k
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.