Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Meta Package Manager works fine, but is maintained by only one person 😶‍🌫️.
You can help if you purchase business support 🤝 or sponsor the project 🫶.
Meta Package Manager
Logo
  • Installation
  • Package managers
    • Alpine apk
    • Atom apm
    • Debian apt
    • apt-cyg
    • Linux Mint apt
    • asdf
    • Homebrew Formulae
    • Rust cargo
    • Homebrew Cask
    • cave
    • Chocolatey
    • Chromebrew
    • PHP Composer
    • Conda
    • Perl CPAN
    • deb-get
    • Fedora DNF
    • Fedora DNF5
    • Gentoo emerge
    • Solus eopkg
    • Fink
    • Flatpak
    • Linux fwupd
    • RubyGems
    • GitHub CLI extensions
    • GNU Guix
    • MacPorts
    • Mac App Store
    • mise
    • Nix
    • Node npm
    • opkg
    • Arch Linux pacaur
    • Arch Linux pacman
    • Pacstall
    • Arch Linux paru
    • Python pip
    • Python pipx
    • PackageKit
    • FreeBSD pkg
    • OpenBSD pkg tools
    • Pkgin
    • Node pnpm
    • FreeBSD Ports Collection
    • PowerShell Gallery
    • Scoop
    • SDKMAN
    • Scoop sfsu
    • slapt-get
    • Snap
    • Soar
    • Sorcery
    • Valve SteamCMD
    • stew
    • Solaris SVR4 package tools
    • Clear Linux Software Updater
    • TazPkg
    • TeX Live Manager
    • Topgrade
    • urpmi
    • Python uv
    • Python uvx
    • Visual Studio Code
    • VSCodium
    • WinGet
    • Void XBPS
    • Yarn Classic
    • Yarn Berry
    • Arch Linux yay
    • Fedora YUM
    • zerobrew
    • openSUSE Zypper
  • Manager augmentations
  • Cross-manager operations
  • JSON & CSV exports
  • Snapshot and export
  • SBOM: Software Bill of Materials
  • CLI parameters
  • Configuration
  • Per-manager overrides
  • Cooldown
  • Privilege escalation and sudo
  • Security model
  • Xbar and SwiftBar plugin
  • Falsehoods programmers believe about package managers
  • Benchmark

Development

  • Contribution guide
  • Add a new package manager
  • Add a packaging channel
  • API
    • meta_package_manager.managers package
    • meta_package_manager.sbom package
  • tests package
  • Downstream packaging
  • Binaries
  • Releasing
  • Index
  • Module Index
  • Changelog
  • History
  • Todo-list
  • Code of conduct
  • License
  • GitHub repository
  • Funding
Back to top
View this page
Edit this page

PowerShell Gallery¶

PowerShell Gallery client, driven through the modern Microsoft.PowerShell.PSResourceGet module.

Note

Every operation is one PowerShell expression, run non-interactively with no user profile loaded. Reads emit ConvertTo-Json -AsArray and are parsed as JSON; outdated has no native cmdlet, so its installed-versus-gallery comparison runs inside that single pwsh call rather than as one round trip per installed module.

Note

Only pwsh (PowerShell 7+) is supported. Legacy Windows PowerShell 5.1 is intentionally excluded: it ships PowerShellGet v2, which depends on the NuGet provider and prompts to trust PSGallery on first install. PSResourceGet ships bundled with pwsh 7.4+ and supersedes the v2 cmdlets with cleaner, JSON-friendly objects.

Caution

All install and search operations target -Scope CurrentUser so that mpm does not require elevation. upgrade and remove are scope- agnostic and operate on whichever scope holds each module.

Caution

Install-PSResource is invoked with -TrustRepository so the confirmation prompt on the default PSGallery repository is bypassed. Only the default repository is consulted: third-party PSRepository registrations are out of scope.

  • Home page: https://www.powershellgallery.com

  • Source: meta_package_manager/managers/pwsh_gallery.py

  • Version requirement: >=7.4.0

Platforms¶

  • 🐧 Linux

  • 🍎 macOS

  • 🪟 Windows

Operations¶

Operation

Supported

Notes

installed

✓

outdated

✓

search

✓

extended search backfilled by mpm

install

✓

upgrade

✓

upgrade_all

✓

remove

✓

sync

cleanup

Ecosystem¶

  • Accepted purl types: pkg:pwsh-gallery

Usage¶

$ mpm --pwsh-gallery installed
$ mpm --pwsh-gallery search "query"
$ mpm --pwsh-gallery upgrade --all
$ mpm install pkg:pwsh-gallery/hello
$ mpm --dry-run --pwsh-gallery upgrade --all

Every example above accepts --dry-run, which simulates the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.

Deselect the manager for a single run with --no-pwsh-gallery, disable it from your configuration, or tune its invocation attributes with per-manager overrides.

Command line¶

  • CLI names, in lookup order: pwsh

  • Arguments forced before each call: -NoProfile -NonInteractive -Command

The version is probed by running:

$ pwsh --version
PowerShell 7.4.6

and extracted with:

r"PowerShell\s+(?P<version>\S+)"

Privilege escalation¶

mpm runs this manager as the current user and never prepends sudo by default. Flip the policy for its privileged operations with --sudo or the per-manager sudo override.

See privilege escalation for the full policy.

Cooldown¶

State of PowerShell Gallery’s release-age gating, from the cooldown support table:

  • Status: ❌ None

With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --allow-unsupported-managers opts back in.

Reference traces¶

Raw native outputs captured in the manager source: the reference mpm’s parsers were written against. If you know PowerShell Gallery well and a transcript below looks wrong, or a newer release changed its output format, report it.

$ pwsh -NoProfile -NonInteractive -Command \
    "Get-InstalledPSResource | \
     Select-Object Name, @{n='Version';e={$_.Version.ToString()}} | \
     ConvertTo-Json -AsArray -Depth 2 -Compress"
[{"Name":"PSReadLine","Version":"2.3.6"},
 {"Name":"Pester","Version":"5.5.0"}]
$ pwsh -NoProfile -NonInteractive -Command \
    "Get-InstalledPSResource | ForEach-Object { ... } | \
     ConvertTo-Json -AsArray -Depth 2 -Compress"
[{"Name":"PSReadLine","Installed":"2.3.4","Latest":"2.3.6"}]
Next
Scoop
Previous
FreeBSD Ports Collection
Copyright © Kevin Deldycke and contributors
Made with Furo
Last updated on 2026-07-20
On this page
  • PowerShell Gallery
    • Platforms
    • Operations
    • Ecosystem
    • Usage
    • Command line
    • Privilege escalation
    • Cooldown
    • Reference traces