Scoop是一个Windows的命令行安装程序

网友投稿 1324 2022-10-21

Scoop是一个Windows的命令行安装程序

Scoop是一个Windows的命令行安装程序

Scoop

Features | Installation | Documentation

Scoop is a command-line installer for Windows.

What does Scoop do?

Scoop installs programs from the command line with a minimal amount of friction. It tries to eliminate things like:

Permission popup windowsGUI wizard-style installersPath pollution from installing lots of programsUnexpected side-effects from installing and uninstalling programsThe need to find and install dependenciesThe need to perform extra setup steps to get a working program

Scoop is very scriptable, so you can run repeatable setups to get your environment just the way you like, e.g.:

scoop install sudosudo scoop install 7zip git openssh --globalscoop install aria2 curl grep sed less touchscoop install python ruby go perl

If you've built software that you'd like others to use, Scoop is an alternative to building an installer (e.g. MSI or InnoSetup) — you just need to zip your program and provide a JSON manifest that describes how to install it.

Requirements

Windows 7 SP1+ / Windows Server 2008+PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later)PowerShell must be enabled for your user account e.g. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Installation

Run the following command from your PowerShell to install scoop to its default location (C:\Users\\scoop)

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')# or shorteriwr -useb get.scoop.sh | iex

Once installed, run scoop help for instructions.

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

Install Scoop to a Custom Directory by changing SCOOP

$env:SCOOP='D:\Applications\Scoop'[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')# run the installer

Configure Scoop to install global programs to a Custom Directory by changing SCOOP_GLOBAL

$env:SCOOP_GLOBAL='F:\GlobalScoopApps'[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')# run the installer

Documentation

Multi-connection downloads with aria2

Scoop can utilize aria2 to use multi-connection downloads. Simply install aria2 through Scoop and it will be used for all downloads afterward.

scoop install aria2

You can tweak the following aria2 settings with the scoop config command:

aria2-enabled (default: true)aria2-retry-wait (default: 2)aria2-split (default: 5)aria2-max-connection-per-server (default: 5)aria2-min-split-size (default: 5M)

Inspiration

Homebrewsub

What sort of apps can Scoop install?

The apps that install best with Scoop are commonly called "portable" apps: i.e. compressed program files that run stand-alone when extracted and don't have side-effects like changing the registry or putting files outside the program directory.

Since installers are common, Scoop supports them too (and their uninstallers).

Scoop is also great at handling single-file programs and Powershell scripts. These don't even need to be compressed. See the runat package for an example: it's really just a GitHub gist.

Support this project

If you find Scoop useful and would like to support ongoing development and maintenance, here's how:

PayPal (one-time donation)

Known application buckets

The following buckets are known to scoop:

main - Default bucket for the most common (mostly CLI) appsextras - Apps that don't fit the main bucket's criteriagames - Open source/freeware games and game-related toolsnerd-fonts - Nerd Fontsnirsoft - A subset of the 250 Nirsoft appsjava - Installers for Oracle Java, OpenJDK, Zulu, ojdkbuild, AdoptOpenJDK, Amazon Corretto, BellSoft Liberica & SapMachinejetbrains - Installers for all JetBrains utilities and IDEs

nonportable - Non-portable apps (may require UAC)php - Installers for most versions of PHPversions - Alternative versions of apps found in other buckets

The main bucket is installed by default. To add any of the other buckets, type:

scoop bucket add bucketname

For example, to add the extras bucket, type:

scoop bucket add extras

Other application buckets

Many other application buckets hosted on Github can be found in the Scoop Directory.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:179. 最大数(类似剑指offer,最小数)
下一篇:剑指offer刷题-面试题05. 替换空格
相关文章

 发表评论

暂时没有评论,来抢沙发吧~