Windows下的包管理工具-Scoop

关于scoop的介绍


https://www.jianshu.com/p/bb0ba62b519c

https://blog.csdn.net/fcymk2/article/details/86653207

https://www.h404bi.com/blog/2018/05/12/talk-about-scoop-the-package-manager-for-windows-again.html

一、安装

打开 CMD ,输入 powershell

测试 powershell

# should be >= 3
$psversiontable.psversion.major

确保允许 PowerShell 执行本地脚本

set-executionpolicy remotesigned -scope currentuser

安装scoop,假设目标目录是C:\scoop,在 PowerShell 命令控制台中运行

$env:SCOOP='C:\scoop'
[environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User')
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

 将全局应用安装到自定义目录

$env:SCOOP_GLOBAL='c:\apps'
[environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine')
scoop install -g <app>

 

二、使用

查看帮助

scoop help

添加源(buckets),需要先安装 git

scoop install git
scoop bucket add extras
# 或 scoop bucket add extras https://github.com/lukesampson/scoop-extras.git

安装 idea 试试


官网

官方文档

猜你喜欢

转载自www.cnblogs.com/jhxxb/p/10519166.html