前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布

scoop

作者头像
阿超
发布2023-02-20 13:18:59
4390
发布2023-02-20 13:18:59
举报
文章被收录于专栏:快乐阿超

分享一个windows命令行安装工具scoop

github地址:https://github.com/ScoopInstaller/scoop

官网:https://scoop.sh/

安装方式:

ctrl+R打开powershell

image-20230208214302709
image-20230208214302709

执行:

代码语言:javascript
复制
> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
> irm get.scoop.sh | iex

稍等一会儿

image-20230208214515314
image-20230208214515314

然后报错了

image-20230208214703894
image-20230208214703894

我们多试几次

image-20230208214842158
image-20230208214842158

安装成功

image-20230208214906446
image-20230208214906446

搜索软件:

代码语言:javascript
复制
scoop search mongo
image-20230208215015175
image-20230208215015175

当然你也可以在这里搜索:https://scoop.sh/#/apps

例如安装nodejs

代码语言:javascript
复制
PS C:\> scoop install nodejs                                                    
Installing 'nodejs' (18.4.0) [64bit]                                            
node-v18.4.0-win-x64.7z (17.3 MB) [===================================] 100%    
Checking hash of node-v18.4.0-win-x64.7z ... ok.                                
Extracting node-v18.4.0-win-x64.7z ... done.                                    
Linking ~\scoop\apps\nodejs\current => ~\scoop\apps\nodejs\18.4.0               
Persisting bin                                                                  
Persisting cache                                                                
Running post_install script...                                                  
'nodejs' (18.4.0) was installed successfully! 

安装python

代码语言:javascript
复制
> scoop search python
Results from local buckets...

Name      Version  Source Binaries
----      -------  ------ --------
python    3.10.5   main
winpython 3.10.4.0 main

> scoop install python@3.10.4.0
...
Creating shim for 'python.exe'.
'python' (3.10.4.0) was installed successfully!

> python -c "print('Hello from Python installed by Scoop!')"
Hello from Python installed by Scoop!
image-20230208215647902
image-20230208215647902
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-02-08,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档