chocolatey是window平台的包管理工具,我们可以用其完成开发环境的快速搭建
官网地址

安装

首先我们要安装它,用以下其一终端执行:
cmd:

1
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

PowerShell:

1
2
PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

常用工具

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 下载工具 需配置
cinst aria2
cinst nvm 
# 类似于mac的聚集搜索
cinst listary
cinst sourcetree
cinst git.install
cinst yarn
cinst miniconda3
cinst teamviewer
cinst 7zip.install
cinst googlechrome
cinst vscode 
cinst mongodb.Portable 
cinst robo3t.install
cinst redis-64
# 下载工具
cinst freedownloadmanager
# 视频播放器
cinst potplayer
cinst jdk8
cinst golang
cinst steam
cinst mingw
cinst msys2
# ssh sftp客户端
cinst bitvise-ssh-client
# go 博客生成器
cinst hugo

其它命令

1
2
3
4
# 查看本地所有包
choco list --localonly 
# 更新所有包
choco update all 

附录

win10 aria2配置指南