windows-包管理器推荐

上一级页面:index-la

windows环境的包管理器

scoop

包管理:跟mac一样,Win 10下安装软件,我会先在Store里找,如果没有再考虑命令行中的包管理软件。这样做的好处是各种版本更新会比较方便。

包管理软件我选择Scoop: Scoop

scoop是现在Windows环境下比较主流的包管理器,建议安装一个

按照官方给的安装方式:

Open a PowerShell terminal (version 5.1 or later) and run:

1
2
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
Invoke-WebRequest get.scoop.sh | Invoke-Expression

For advanced installation options, check out the Installer’s Readme.

完成安装后,在Scoop中安装常用命令行工具,如sudo, git, 7zip, vim等。如果希望能在windows的powershell里拥有类似Linux的体验,也可以考虑安装gow(GNU on Windows)。

winget

Windows 程序包管理器

chocolaty

还可以选择使用Chocolatey(Chocolatey Software | Chocolatey

举例,你通过以下方式安装nodejs:

1
choco install nodejs 

pacman

想要在Windows中使用pacman,需要先安装好环境

首先安装git和git-bash:git-安装-配置

然后安装git sdkgit-sdk安装与配置

在git sdk的环境下就可以使用pacman

参考、引用、致谢

在 Windows 10 中使用 zsh 作为默认终端 - 七海の参考書 (shiraha.cn)

Windows Terminal美化(oh-my-posh3) - 知乎 (zhihu.com)