scoop(传送门)
安装
scoop是一个类似于linux下apt之类包管理器
安装scoop(Powershell 3+ and .NET Framework 4.5+)
iex (new-object net.webclient).downloadstring('https://get.scoop.sh') //默认安装目录:C:\Users\<user>\scoop
自定义安装scoop目录
[environment]::setEnvironmentVariable('SCOOP','D:\Applications\Scoop','User') //第二个参数是自定义目录
$env:SCOOP='D:\Applications\Scoop' //和上一条命令的自定义目录相同
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')//如果执行scoop命令报错-->set-executionpolicy remotesigned -scope currentuser
使用(常用的)
scoop search package //搜索包 scoop install package //安装包 scoop cleanup package //移除旧版本的包 scoop bucket known //查看有哪几个butcket(仓库) scoop bucket list //查看已添加的butcket(仓库) scoop bucket add bucketName //添加bucket(仓库) scoop bucket rm bucketName //移除bucket(仓库)
全部的scoop命令可以输入 scoop 查看