windows 配置scoop

作者: dreamfly 分类: 个人博客 发布时间: 2024-07-29 16:45

scoop 是windows上的程序管理工具,可以非常方便的在命令行进行程序的安装,管理,卸载等。

下面简单介绍下如如何安装。

需要powershell5.1版本以上

安装

  1. 配置权限
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  1. 安装脚本
iwr -useb get.scoop.sh | iex
  1. 如果是管理员的话
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

配置

列出所有的命令

scoop help 

添加常用bucket,可以安装常用软件

Scoop 默认软件仓库(main bucket)软件数量是有限的,但是可以进行额外的添加。通过 scoop bucket known 命令可以查看官方认可的 bucket。

main - Default bucket for the most common (mostly CLI) apps
extras - Apps that don't fit the main bucket's criteria
games - Open source/freeware games and game-related tools
nerd-fonts - Nerd Fonts
nirsoft - Almost all of the 250+ apps from Nirsoft
sysinternals - Sysinternals Suite and all individual application from Microsoft
java - A collection of Java development kits (JDKs), Java runtime engines (JREs), Java's virtual machine debugging tools and Java based runtime engines.
nonportable - Non-portable apps (may require UAC)
php - Installers for most versions of PHP
versions - Alternative versions of apps found in other buckets

查看已经添加的库 scoop bucket list,以上官方认可的 bucket 可以通过下面这个命令直接添加 scoop bucket add 。

extras 涵盖了大部分因为种种原因不能被收录进主仓库的常用软件,这个是强推荐添加的。

scoop bucket add <bucket>

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!