软件安装的选择(包管理工具)
Scoop 便携式安装
Scoop is a command-line installer for Windows.
重装系统后还原环境非常容易,只需要执行 scoop reset *
命令即可。缺点是有些软件数据会写在 User 目录下,重装系统后不会保留。
# 推荐添加的别名
# Install app
scoop alias add i 'scoop install @args' 'Install apps'
scoop alias add add 'scoop install @args' 'Install apps'
# Uninstall app
scoop alias add rm 'scoop uninstall @args' 'Uninstall apps'
scoop alias add remove 'scoop uninstall @args' 'Uninstall apps'
# List apps
scoop alias add ls 'scoop list' 'List installed apps'
# Update
scoop alias add u 'scoop update @args' 'Update apps, or Scoop itself'
scoop alias add up 'scoop update @args' 'Update apps, or Scoop itself'
scoop alias add upgrade 'scoop update @args' 'Update apps, or Scoop itself'
# cleanup
scoop alias add cl 'scoop cleanup @args' 'Cleanup apps'
# cleanup cache
scoop alias add cc 'scoop cache rm *' 'Cleanup cache'
# remove all alias 删除所有别名
foreach ($alias in (scoop alias list | % { (($_ -split (' '))[0]).replace('@{Name=', '').replace(';', '') })) { scoop alias rm $alias }
Winget 非便携式安装推荐
Windows 系统自带,推荐安装开发环境啥的使用。
常见需要装的环境软件
# Microsoft Visual C++ Redistributables bundle for all major versions
scoop install vcredist
# vs_buildtools for developer
winget install Microsoft.VisualStudio.2022.BuildTools