【Terminal】Windows平台的软件包管理器:Scoop

✨Scoop

类似与macOS的Homebrew

Scoop是适用于Windows平台的软件包管理器

虽然Windows平台软件生态较为复杂

很难完全只使用包管理器管理应用程序


Scoop installs programs you know and love, from the command line with a minimal amount of friction. It:

  • Eliminates permission popup windows
  • Hides GUI wizard-style installers
  • Prevents PATH pollution from installing lots of programs
  • Avoids unexpected side-effects from installing and uninstalling programs
  • Finds and installs dependencies automatically
  • Performs all the extra setup steps itself to get a working program

✨安装Scoop

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex

有关高级安装选项,请查看 Installer's Readme.


✨卸载Scoop

会同时卸载Scoop和所有使用Scoop安装的程序

scoop uninstall scoop

✨Scoop基本命令

更新

scoop update

搜索

scoop search ${Software}

安装

scoop install ${Software}

卸载

scoop install ${Software}

列出

scoop list

清理缓存

scoop cache rm *

更多命令

请参考

Commands · ScoopInstaller/Scoop Wiki (github.com)


✨Scoop bucket

类似于Homebrew Cask

Scoop也可以添加bucket以便于安装更多的软件


例如通过scoop安装posh-git就需要添加bucket

执行如下命令行即可安装posh-git并添加到配置文件

scoop bucket add extras
scoop install posh-git
Add-PoshGitToProfile

列出已添加存储库

scoop bucket list

已知存储库

scoop bucket known

image-20230226231911069

添加存储库

scoop bucket add ${bucket}

移除存储库

!参阅了官方文档以及相关资料

大多只有添加存储库,并没有移除存储库的命令

试了下rm居然可以

scoop bucket rm ${bucket}

实际上当重复添加bucket时Scoop会给出提示

image-20230226232541702


更多命令

请参考

Buckets · ScoopInstaller/Scoop Wiki (github.com)


⭐转载请注明出处

本文作者:双份浓缩馥芮白

原文链接:https://www.cnblogs.com/Flat-White/p/17158241.html

版权所有,如需转载请注明出处。

posted @ 2023-02-26 23:32  双份浓缩馥芮白  阅读(115)  评论(0编辑  收藏  举报