macOS
brew install powershelllocal Homebrew formula metadata
sudo port install powershellMacPorts ports tree · shells/powershell/Portfile · 来源: api.github.com
安装
brew install powershelllocal Homebrew formula metadata
sudo port install powershellMacPorts ports tree · shells/powershell/Portfile · 来源: api.github.com
sudo apk add powershellAlpine Linux edge package indexes · powershell · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#powershellnixpkgs package indexes · pkgs/by-name/po/powershell/package.nix · 来源: api.github.com
choco install PowerShellChocolatey community package catalog · PowerShell · 来源: community.chocolatey.org
winget install --id Microsoft.PowerShell -eWindows Package Manager source index · Microsoft.PowerShell · 来源: cdn.winget.microsoft.com
scoop install main/pwshScoop official bucket manifest trees · bucket/pwsh.json · 来源: api.github.com
概览
Command-line shell and scripting language
历史
PowerShell is Microsoft's cross-platform command shell, scripting language, and automation framework, distinguished by its pipeline of structured .NET objects.
Development began in 2002 from Jeffrey Snover's automation vision, originally described under the Monad name. Windows PowerShell 1.0 shipped in November 2006.
Successive Windows releases expanded remoting, workflows, modules, Desired State Configuration, and deep integration with Microsoft server products.
In 2016 Microsoft made PowerShell open source and available on Linux and macOS. PowerShell 6, released in 2018, established the cross-platform .NET Core-based product line; PowerShell 7 continued that line on modern .NET.
PowerShell became a central Windows administration interface through its integration with Microsoft operating systems and server products. Its module ecosystem expanded the object-oriented command model across Windows, Azure, Exchange, SQL Server, and third-party platforms.
Microsoft open-sourced PowerShell and introduced Linux and macOS support in 2016. The cross-platform line subsequently moved onto .NET Core and adopted the `pwsh` executable, making the language usable in heterogeneous administration and CI/CD environments.
PowerShell is distributed through native and third-party package ecosystems across Windows, macOS, Linux, and container workflows.
Users run `pwsh` interactively or execute `.ps1` scripts for system administration, application deployment, testing, cloud operations, and CI/CD automation.
Profile scripts customize startup behavior by defining aliases, functions, variables, modules, drives, and preferences. `$PROFILE` exposes the exact host- and user-specific paths for the current session.
Commands emit .NET objects into the pipeline, allowing later commands to filter, sort, group, format, or modify structured values without parsing display text.
PowerShell replaced the traditional text-only Unix pipeline assumption with pipelines of structured .NET objects. Commands can pass typed values without repeatedly serializing and reparsing columns of text.
Its verb-noun cmdlet convention, discoverable help system, remoting, module ecosystem, and object pipeline created a distinctive administration culture that spans interactive shell use, scripts, infrastructure automation, and configuration management.
Package users should distinguish current cross-platform PowerShell, launched as `pwsh`, from the Windows PowerShell 5.1 component that remains tied to Windows.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.config/powershell/profile.ps1~/.config/powershell/Microsoft.PowerShell_profile.ps1~/.config/powershell/profile.ps1~/.config/powershell/Microsoft.PowerShell_profile.ps1$HOME\Documents\PowerShell\Profile.ps1$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pwsh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/PowerShell/PowerShell
安装元数据
| 软件包键 | brew:powershell |
|---|---|
| 版本 | 7.6.9 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/powershell |
| 主页 | https://github.com/PowerShell/PowerShell |
| 仓库 | https://github.com/PowerShell/PowerShell |
| 许可证 | MIT |
| 源码归档 | https://github.com/PowerShell/PowerShell.git |
| 最后更新 | 2026-10-26T14:49:07Z |
| Pulse | updated |
| 依赖 | dotnet |
| Bottle | 可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | powershell |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
powershell
nix profile install nixpkgs#powershellpowershell 7.6.1-r0
A cross-platform automation and configuration tool/framework
https://github.com/PowerShell/PowerShell
sudo apk add powershellpowershell
sudo port install powershellPowerShell
choco install PowerShellMicrosoft.PowerShell
winget install --id Microsoft.PowerShell -epwsh
choco install pwshmain/pwsh
scoop install main/pwsh来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.