- 一款Windows包管理器
- 国内项目地址
安装Scoop
- 打开PowerShell(不要使用管理员):因为scoop的理念是为单独用户去安装的
# 脚本执行策略更改,默认自动同意Set-ExecutionPolicy RemoteSigned -scope CurrentUser -Force## 自定义安装目录(不设置的话,默认安装在用户目录下)$env:SCOOP='D:\Apps\scoop'[Environment]::SetEnvironmentVariable('SCOOP',$env:SCOOP,'USER')# 执行安装命令iwr -useb scoop.201704.xyz|iex# 更换scoop的repo地址scoop config SCOOP_REPO"https://gitee.com/scoop-installer/scoop"# 拉取新库地址(这一步需要有git,如果没有的话安装一个:scoop install git )scoop update ···
软件桶bucket
- 一个bucket就是一个软件仓库
#查询已知bucketscoop bucket known#添加bucketscoop bucketaddextras#查询当前的bucket列表scoop bucket list - 系统本身的main软件桶,是指向外网仓库的,下面命令是替换为国内仓库
# 查看当前bucktscoop bucket list# 删除已安装的bucketscoop bucketrmextras# 重新添加bucketscoop bucketaddextras# 重新查看bucket镜像scoop bucket list - 添加第三方仓库
# 基本语法scoop bucketadd<别名><git地址># 举例添加scoopcn([Mostly Chinese applications / 大多是国内应用程序](https://github.com/scoopcn/scoopcn))scoop bucketaddscoopcn https://gitee.com/scoop-installer/scoopcn# 其他较为优秀的bucket,可访问scoop-installer,有选择性地添加
安装软件
- 软件仓库官网,可在线查询软件
- 代理(可选)
# 添加代理 根据实际填写http代理scoop config proxy127.0.0.1:4412# 删除代理scoop configrmproxy - 软件安装
# 基本语法scoopinstall<库名/软件名># 例如安装 qq 微信(wechat)scoopinstallqq# 指定bucket库的软件(如需要)scoopinstallscoopcn/wechat# 一条命令安装多个软件scoopinstallqq wechat aria2 - 软件卸载
scoop uninstall qq wechat - 软件更新
scoop update * - 其他命令
#搜索软件scoop search 软件名# 软件暂停更新scoop hold<软件名># 切换到指定版本scoop reset<软件名@版本号># 重置所有软件链接及图标scoop reset *# 删除缓存软件包scoop cacherm*# 删除软件老版本scoop cleanuprm*
常用命令
Usage: scoop <command> [<args>] Some useful commands are: alias Manage scoop aliases # 管理指令的替身 bucket Manage Scoop buckets # 管理软件仓库 cache Show or clear the download cache # 查看与管理缓存 checkup Check for potential problems # 做个体检 cleanup Cleanup apps by removing old versions # 清理缓存与旧版本软件包 config Get or set configuration values # 配置Scoop create Create a custom app manifest # 创建自定义软件包 depends List dependencies for an app # 查看依赖 export Exports (an importable) list of installed apps # 导出软件包列表 help Show help for a command # 显示帮助指令 hold Hold an app to disable updates # 禁止软件包更新 home Opens the app homepage # 打开软件包主页 info Display information about an app # 显示软件包信息 install Install apps # 安装软件包的指令 list List installed apps # 列出所有已安装软件包 prefix Returns the path to the specified app # 查看软件包路径 reset Reset an app to resolve conflicts # 恢复软件包版本 search Search available apps # 搜索软件包 status Show status and check for new app versions # 查看软件包更新状态 unhold Unhold an app to enable updates # 启动软件包更新 uninstall Uninstall an app # 卸载软件包的指令 update Update apps, or Scoop itself # 更新软件包 virustotal Look for app hash on virustotal.com # 查看哈希值 which Locate a shim/executable (similar to 'which' on Linux) # 查看可执行程序路径