Windows 安装 Scoop
Scoop介绍
scoop是Windows下的包管理工具
安装环境要求
1,操作环境:win10
2,确保你的 PowerShell 版本 >= 3. win7或许低于3,得升级。如何确认PowerShell,在powershell 命令窗口输入
$PSVersionTable.PSVersion
3,确保你允许PowerShell执行本地脚本,在PowerShell中输入如下内容后,选择yes或则A
set-executionpolicy remotesigned -scope currentuser
安装Scoop
在PowerShell中输入如下内容(默认安装目录C:\Users\user(自己的用户名)\scoop):
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
想要指定安装目录,在PowerShell中输入如下内容(代码中的C:\Scoop为指定的目录):
[environment]::setEnvironmentVariable('SCOOP','c:\Scoop','User')
$env:SCOOP='C:\Scoop'
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
等待安装完成。
Scoop安装完成后
输入以下命令查看Scoop命令的概述:
scoop help
结果显示如下:
1 PS C:\Users\Alex.k.wang> scoop help
2 Usage: scoop <command> [<args>]
3
4 Some useful commands are:
5
6 alias Manage scoop aliases
7 bucket Manage Scoop buckets
8 cache Show or clear the download cache
9 checkup Check for potential problems
10 cleanup Cleanup apps by removing old versions
11 config Get or set configuration values
12 create Create a custom app manifest
13 depends List dependencies for an app
14 export Exports (an importable) list of installed apps
15 help Show help for a command
16 home Opens the app homepage
17 info Display information about an app
18 install Install apps
19 list List installed apps
20 prefix Returns the path to the specified app
21 reset Reset an app to resolve conflicts
22 search Search available apps
23 status Show status and check for new app versions
24 uninstall Uninstall an app
25 update Update apps, or Scoop itself
26 virustotal Look for app's hash on virustotal.com
27 which Locate a shim/executable (similar to 'which' on Linux)
28
29
30 Type 'scoop help <command>' to get help for a specific command.
输入'scoop help <command>'可以查看具体的某个命令的用法,如下所示:
scoop help install
显示结果如下:

1 PS C:\Users\Alex.k.wang> scoop help install
2 Usage: scoop install <app> [options]
3
4 e.g. The usual way to install an app (uses your local 'buckets'):
5 scoop install git
6
7 To install an app from a manifest at a URL:
8 scoop install https://raw.github.com/lukesampson/scoop/master/bucket/runat.json
9
10 To install an app from a manifest on your computer
11 scoop install \path\to\app.json
12
13 When installing from your computer, you can leave the .json extension off if you like.
14
15 Options:
16 -g, --global Install the app globally
17 -i, --independent Don't install dependencies automatically
18 -k, --no-cache Don't use the download cache
19 -s, --skip Skip hash validation (use with caution!)
20 -a, --arch <32bit|64bit> Use the specified architecture, if the app supports it

查找要安装的程序,如gradle:
scoop search gradle
显示结果如下:
1 PS C:\Users\Alex.k.wang> scoop search gradle
2 'main' bucket:
3 gradle-bin (5.1.1)
4 gradle (5.1.1)
查找所有可用程序:
scoop search
安装程序,如gradle,默认会安装到Scoop安装目录下的apps目录:
scoop install gradle
显示结果如下:
1 PS C:\Users\alex.k.wang> scoop install gradle
2 Installing 'gradle' (5.1.1) [32bit]
3 gradle-5.1.1-all.zip (124.7 MB) [> ] 1%
也可将程序安装到指定目录,如F:\GlobalScoopApps:
[environment]::setEnvironmentVariable('SCOOP_GLOBAL','c:\GlobalScoopApps','Machine')
$env:SCOOP_GLOBAL='c:\GlobalScoopApps'
scoop install -g <app>
对Scoop进行版本更新:
scoop update
对Scoop安装的所有程序进行更新(也可指定某个程序进行更新):
scoop update *
Windows 安装 Scoop的更多相关文章
- Mysql(windows)安装
h3 { color: rgb(255, 255, 255); background-color: rgb(30,144,255); padding: 3px; margin: 10px 0px } ...
- Windows 安装JRuby 生成 war 到 tomcat 运行
Windows安装JRuby Rails 直接下载 JRuby,不装 Ruby. http://jruby.org/download 该安装包可以配好环境变量 %JRUBY_HOME% 等 安装 bu ...
- windows安装rabbitmq
官网下载windows安装版本:http://www.rabbitmq.com/install-windows.html ,安装文件rabbitmq-server-3.6.5.exe 前提:安装erl ...
- windows 安装 mongodb
windows 安装 mongodb 下载 首先到官网下载合适的安装包,下载地址为 https://www.mongodb.com/download-center MongoDB for Window ...
- 2016 windows安装phing:安装成功
21:39 2016/7/212016 windows安装phing:安装成功注意:出现错误时就去更新pear:参见:http://www.cnblogs.com/pinnasky/archive/2 ...
- Windows安装和使用zookeeper
之前整理过一篇文章<zookeeper 分布式锁服务>,本文介绍的 Zookeeper 是以 3.4.5 这个稳定版本为基础,最新的版本可以通过官网 http://hadoop.apach ...
- windows 安装mysql 步骤
Windows 安装mysql 5.7.12教程 1.在官网下载mysql5.7.12.zip并解压 复制默认配置文件my-default.ini,并命名为my.ini 使用记事本打开,修改如下配置 ...
- DOCKER windows安装
DOCKER windows安装 1.下载程序包 2. 设置环境变量 3. 启动DOCKERT 4. 分析start.sh 5. 利用SSH工具管理 6. 下载镜像 6.1 下载地址 6.2 用FTP ...
- openssh for windows安装
openssh for windows安装 2009-11-22 22:43:58 分类: WINDOWS 本文转自:http://blog.chinaunix.net/uid-7541208-id ...
随机推荐
- SpringMVC中利用@CrossOrigin注解解决ajax跨域请求的问题
1. 什么是跨域 跨域,即跨站HTTP请求(Cross-site HTTP request),指发起请求的资源所在域不同于请求指向资源所在域的HTTP请求. 2. 跨域的应用情景 当使用前后端分离,后 ...
- Spring MVC 的 Java Config ( 非 XML ) 配置方式
索引: 开源Spring解决方案--lm.solution 参看代码 GitHub: solution/pom.xml web/pom.xml web.xml WebInitializer.java ...
- Android 实战美女拼图游戏 你能坚持到第几关
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/40595385,本文出自:[张鸿洋的博客] 1.概述 继2048之后,今天给大家带 ...
- intelij IDEA破解
破解intelij IDEA请见链接:https://blog.csdn.net/weixin_37937646/article/details/79119540
- 「SDOI 2018」反回文串
题目大意: 求字符集大小为$k$长度为$n$的经循环移位后为回文串的数量. 题解: 这题是D1里最神的吧 考虑一个长度为$n$回文串,将其循环移位后所有的串都是满足要求的串. 但是显然这样计算会算重. ...
- codeForces 472D 最小生成树
题目大意:给出一个图中点的两两距离,问是否是一棵树,若是,求出平均边权最大的点 prim最小生成树,若原图是树,则最小生成树的距离就是原距离.否则不是. 搞出来树了,第二问随便dfs就好了. #inc ...
- BZOJ_3282_Tree_LCT
BZOJ_3282_Tree_LCT Description 给定N个点以及每个点的权值,要你处理接下来的M个操作. 操作有4种.操作从0到3编号.点从1到N编号. 0:后接两个整数(x,y),代表询 ...
- BZOJ_4128_Matrix_矩阵乘法+哈希+BSGS
BZOJ_4128_Matrix_矩阵乘法+哈希+BSGS Description 给定矩阵A,B和模数p,求最小的x满足 A^x = B (mod p) Input 第一行两个整数n和p,表示矩阵的 ...
- set命令详解
我们依然是围绕这几个话题展开学习: 1.什么是set命令? 2.为什么要用set命令? 3.怎样使用set命令? 1.什么是set命令? ♦ set命令作用主要是显示系统中已经存在的shell变量,以 ...
- Docker最全教程——Redis容器化以及排行榜实战(十三)
前言 容器教程的路还很长,笔者尽量根据实践来不断地完善.由于在编写的过程中还会有完善和补充,后续可能会以番外来补充. 接下来会分享TeamCity.树莓派等内容,节奏可能会有点跳脱. 另外,长沙.NE ...