欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

windows安装scoop

程序员文章站 2022-05-29 22:46:06
...

参考:https://scoop.sh/
参考:https://github.com/lukesampson/scoop/wiki/Quick-Start

懂不懂,先装上,这样你就完成了该工具学习的第一步

一、确认powershell版本大于等于5.0

# cmd命令行下进入powershell
C:\Users\24305>powershell
Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。

尝试新的跨平台 PowerShell https://aka.ms/pscore6

PS C:\Users\24305>
# 确认powershell版本大于等于5.0
PS C:\Users\24305> $psversiontable.psversion.major
5

二、允许powershell执行本地脚本

PS C:\Users\24305> set-executionpolicy remotesigned -scope currentuser

三、安装scoop

PS C:\Users\24305> iwr -useb get.scoop.sh | iex
Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2020-09-19T23:13:43.2551738+08:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.

四、查看scoop使用方法

PS C:\Users\24305> 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.
相关标签: windows scoop