Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, chocolatey, winget, scoop 安装 powershell

查看 powershell 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install powershell

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install powershell

MacPorts ports tree · shells/powershell/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add powershell

Alpine Linux edge package indexes · powershell · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#powershell

nixpkgs package indexes · pkgs/by-name/po/powershell/package.nix · 来源: api.github.com

Windows

Chocolatey已验证 · 92%
choco install PowerShell

Chocolatey community package catalog · PowerShell · 来源: community.chocolatey.org

Windows Package Manager已验证 · 92%
winget install --id Microsoft.PowerShell -e

Windows Package Manager source index · Microsoft.PowerShell · 来源: cdn.winget.microsoft.com

Scoop已验证 · 92%
scoop install main/pwsh

Scoop official bucket manifest trees · bucket/pwsh.json · 来源: api.github.com

概览

软件包摘要

Command-line shell and scripting language

命令和别名

  • pwsh

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:scripting language,shell

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Linux
~/.config/powershell/profile.ps1~/.config/powershell/Microsoft.PowerShell_profile.ps1
macOS
~/.config/powershell/profile.ps1~/.config/powershell/Microsoft.PowerShell_profile.ps1
Windows
$HOME\Documents\PowerShell\Profile.ps1$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

可执行文件

已安装的可执行文件

命令类型暴露范围备注
pwshcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本7.6.4
管理器更新时间2026-07-21
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/PowerShell/PowerShell

安装元数据

软件包元数据

软件包键brew:powershell
版本7.6.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/powershell
主页https://github.com/PowerShell/PowerShell
仓库https://github.com/PowerShell/PowerShell
上游文档https://github.com/PowerShell/PowerShell#readme
许可证MIT
源码归档https://github.com/PowerShell/PowerShell.git
最后更新2026-07-21T00:23:58Z
Pulseupdated
依赖dotnet
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepowershell
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

powershell

nix profile install nixpkgs#powershell
  • normalized package name match
  • 匹配方式:Powershell
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/po/powershell/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

powershell 7.6.1-r0

A cross-platform automation and configuration tool/framework

https://github.com/PowerShell/PowerShell

sudo apk add powershell
  • License: MIT
  • Architecture: x86_64
  • Source Package: powershell
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Powershell
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: powershell from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
MacPorts95%

powershell

sudo port install powershell
  • normalized package name match
  • 匹配方式:Powershell
MacPorts ports tree · api.github.com · MacPorts ports tree: shells/powershell/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

PowerShell

choco install PowerShell
  • normalized package name match
  • 匹配方式:Powershell
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: PowerShell from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','pingplotter'
winget95%

Microsoft.PowerShell

winget install --id Microsoft.PowerShell -e
  • normalized package name match
  • 匹配方式:Powershell
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Microsoft.PowerShell from https://cdn.winget.microsoft.com/cache/source.msix
Chocolatey92%

pwsh

choco install pwsh
  • installed executable or alias match
  • 匹配方式:Pwsh
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: pwsh from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','pswinupdate'
Scoop92%

main/pwsh

scoop install main/pwsh
  • installed executable or alias match
  • 匹配方式:Pwsh
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/pwsh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment