Skip to main content

๐ŸŽ wraps all package managers with an unifying CLI

Project description

Meta Package Manager

Last release Python versions Type checked with mypy Unittests status Coverage status Documentation status DOI

What is Meta Package Manager?


Features

  • Inventory and list all package managers available on the system.
  • Supports macOS, Linux and Windows.
  • Standalone x86_64 executables: mpm.exe for Windows, mpm.bin for Linux and for macOS.
  • List installed packages.
  • List duplicate installed packages.
  • Search for packages.
  • Install a package.
  • Remove a package.
  • List outdated packages.
  • Sync local package infos.
  • Upgrade all outdated packages.
  • Backup list of installed packages to TOML file.
  • Restore/install list of packages from TOML files.
  • Pin-point commands to a subset of package managers (include/exclude selectors).
  • Support plain, versionned and purl package specifiers.
  • Export output to JSON or print user-friendly tables.
  • Shell auto-completion for Bash, Zsh and Fish.
  • Provides a Xbar/SwiftBar plugin for friendly macOS integration.
  • Because mpm try to wrap all other package managers, it became another pathological case of XKCD #927: Standards

Supported package managers and operations

Package manager Min. version Linux macOS Windows installed outdated search install upgrade upgrade_all remove sync cleanup
apm โš ๏ธ 1.0.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
apt 1.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
apt-mint 1.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
brew 2.7.0 ๐Ÿง ๐ŸŽ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
cargo 1.0.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“
cask 2.7.0 ๐ŸŽ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
choco 0.10.4 ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
composer 1.4.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
dnf 4.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
emerge 3.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
flatpak 1.2.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
gem 2.5.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
mas 1.6.1 ๐ŸŽ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
npm 4.0.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
opkg 0.2.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
pacaur 4.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
pacman 5.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
paru 1.9.3 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
pip 10.0.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
pipx 1.0.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
scoop 0.2.4 ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
snap 2.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
steamcmd None ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“
vscode 1.60.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“
yarn 1.20.0 ๐Ÿง ๐ŸŽ ๐ŸชŸ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
yay 11.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
yum 4.0.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“
zypper 1.14.0 ๐Ÿง โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“ โœ“

Note: Missing manager

If your favorite manager is missing or does not support an operation, you can influence its implementation: open a ticket to document its output or read the contribution guide and submit a pull request.

I can do that work for you if you purchase business support ๐Ÿค or sponsor the project ๐Ÿซถ.

Installation

From sources

Easiest way is to install mpm from sources with pipx:

$ pipx install meta-package-manager

Other alternatives installation methods are available in the documentation.

Binaries

x86_64 binaries are available so you can skip the installation process above and download the standalone executables directly:

Quickstart

List managers

List all supported package managers and their status on current system (macOS in this case):

$ mpm --all-managers managers
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Manager ID โ”‚ Name               โ”‚ Supported      โ”‚ CLI                          โ”‚ Executable โ”‚ Version   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ apm        โ”‚ Atom's apm         โ”‚ โœ“              โ”‚ โœ˜ apm not found              โ”‚            โ”‚           โ”‚
โ”‚ apt        โ”‚ APT                โ”‚ โœ˜ Linux only   โ”‚ โœ“ /usr/bin/apt               โ”‚ โœ“          โ”‚ โœ˜         โ”‚
โ”‚ apt-mint   โ”‚ Linux Mint's apt   โ”‚ โœ˜ Linux only   โ”‚ โœ“ /usr/bin/apt               โ”‚ โœ“          โ”‚ โœ˜         โ”‚
โ”‚ brew       โ”‚ Homebrew Formulae  โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/brew     โ”‚ โœ“          โ”‚ โœ“ 3.6.3   โ”‚
โ”‚ cargo      โ”‚ Rust's cargo       โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/cargo    โ”‚ โœ“          โ”‚ โœ“ 1.64.0  โ”‚
โ”‚ cask       โ”‚ Homebrew Cask      โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/brew     โ”‚ โœ“          โ”‚ โœ“ 3.6.3   โ”‚
โ”‚ choco      โ”‚ Chocolatey         โ”‚ โœ˜ Windows only โ”‚ โœ˜ choco not found            โ”‚            โ”‚           โ”‚
โ”‚ composer   โ”‚ PHP's Composer     โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/composer โ”‚ โœ“          โ”‚ โœ“ 2.4.2   โ”‚
โ”‚ dnf        โ”‚ DNF                โ”‚ โœ˜ Linux only   โ”‚ โœ˜ dnf not found              โ”‚            โ”‚           โ”‚
โ”‚ emerge     โ”‚ Emerge             โ”‚ โœ˜ Linux only   โ”‚ โœ˜ emerge not found           โ”‚            โ”‚           โ”‚
โ”‚ flatpak    โ”‚ Flatpak            โ”‚ โœ˜ Linux only   โ”‚ โœ˜ flatpak not found          โ”‚            โ”‚           โ”‚
โ”‚ gem        โ”‚ Ruby Gems          โ”‚ โœ“              โ”‚ โœ“ /usr/bin/gem               โ”‚ โœ“          โ”‚ โœ“ 3.0.3.1 โ”‚
โ”‚ mas        โ”‚ Mac AppStore       โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/mas      โ”‚ โœ“          โ”‚ โœ“ 1.8.6   โ”‚
โ”‚ npm        โ”‚ Node's npm         โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/npm      โ”‚ โœ“          โ”‚ โœ“ 8.19.2  โ”‚
โ”‚ opkg       โ”‚ OPKG               โ”‚ โœ˜ Linux only   โ”‚ โœ˜ opkg not found             โ”‚            โ”‚           โ”‚
โ”‚ pacman     โ”‚ Pacman             โ”‚ โœ˜ Linux only   โ”‚ โœ˜ pacman not found           โ”‚            โ”‚           โ”‚
โ”‚ paru       โ”‚ Paru               โ”‚ โœ˜ Linux only   โ”‚ โœ˜ paru not found             โ”‚            โ”‚           โ”‚
โ”‚ pip        โ”‚ Pip                โ”‚ โœ“              โ”‚ โœ“ ~/.pyenv/shims/python3     โ”‚ โœ“          โ”‚ โœ“ 22.2.2  โ”‚
โ”‚ pipx       โ”‚ Pipx               โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/pipx     โ”‚ โœ“          โ”‚ โœ“ 1.1.0   โ”‚
โ”‚ scoop      โ”‚ Scoop              โ”‚ โœ˜ Windows only โ”‚ โœ˜ scoop not found            โ”‚            โ”‚           โ”‚
โ”‚ snap       โ”‚ Snap               โ”‚ โœ˜ Linux only   โ”‚ โœ˜ snap not found             โ”‚            โ”‚           โ”‚
โ”‚ steamcmd   โ”‚ Valve Steam        โ”‚ โœ“              โ”‚ โœ˜ steamcmd not found         โ”‚            โ”‚           โ”‚
โ”‚ vscode     โ”‚ Visual Studio Code โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/code     โ”‚ โœ“          โ”‚ โœ“ 1.71.2  โ”‚
โ”‚ yarn       โ”‚ Node's yarn        โ”‚ โœ“              โ”‚ โœ“ /opt/homebrew/bin/yarn     โ”‚ โœ“          โ”‚ โœ“ 1.22.19 โ”‚
โ”‚ yay        โ”‚ Yay                โ”‚ โœ˜ Linux only   โ”‚ โœ˜ yay not found              โ”‚            โ”‚           โ”‚
โ”‚ yum        โ”‚ YUM                โ”‚ โœ˜ Linux only   โ”‚ โœ˜ yum not found              โ”‚            โ”‚           โ”‚
โ”‚ zypper     โ”‚ Zypper             โ”‚ โœ˜ Linux only   โ”‚ โœ˜ zypper not found           โ”‚            โ”‚           โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

If your favorite manager is not supported yet, you can help! See the contibution guide.

List installed packages

List all packages installed on current system:

$ mpm installed
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Package name                โ”‚ ID                          โ”‚ Manager โ”‚ Installed version  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ github                      โ”‚ github                      โ”‚ apm     โ”‚ 0.36.9             โ”‚
โ”‚ update-package-dependencies โ”‚ update-package-dependencies โ”‚ apm     โ”‚ 0.13.1             โ”‚
โ”‚ rust                        โ”‚ rust                        โ”‚ brew    โ”‚ 1.55.0             โ”‚
โ”‚ x264                        โ”‚ x264                        โ”‚ brew    โ”‚ r3060              โ”‚
โ”‚ atom                        โ”‚ atom                        โ”‚ cask    โ”‚ 1.58.0             โ”‚
โ”‚ visual-studio-code          โ”‚ visual-studio-code          โ”‚ cask    โ”‚ 1.52.0             โ”‚
โ”‚ nokogiri                    โ”‚ nokogiri                    โ”‚ gem     โ”‚ x86_64-darwin      โ”‚
โ”‚ rake                        โ”‚ rake                        โ”‚ gem     โ”‚ 13.0.3             โ”‚
โ”‚ iMovie                      โ”‚ 408981434                   โ”‚ mas     โ”‚ 10.2.5             โ”‚
โ”‚ Telegram                    โ”‚ 747648890                   โ”‚ mas     โ”‚ 8.1                โ”‚
โ”‚ npm                         โ”‚ npm                         โ”‚ npm     โ”‚ 7.24.0             โ”‚
โ”‚ raven                       โ”‚ raven                       โ”‚ npm     โ”‚ 2.6.4              โ”‚
โ”‚ jupyterlab                  โ”‚ jupyterlab                  โ”‚ pip     โ”‚ 3.1.14             โ”‚
โ”‚ Sphinx                      โ”‚ Sphinx                      โ”‚ pip     โ”‚ 4.2.0              โ”‚
โ”‚ ms-python.python            โ”‚ ms-python.python            โ”‚ vscode  โ”‚ 2021.10.1317843341 โ”‚
โ”‚ ms-toolsai.jupyter          โ”‚ ms-toolsai.jupyter          โ”‚ vscode  โ”‚ 2021.9.1001312534  โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
16 packages total (brew: 2, pip: 2, apm: 2, gem: 2, cask: 2, mas: 2, vscode: 2, npm: 2, composer: 0).

List outdated packages

List all packages installed for which an upgrade is available:

$ mpm outdated
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Package name โ”‚ ID          โ”‚ Manager โ”‚ Installed version โ”‚ Latest version โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ curl         โ”‚ curl        โ”‚ brew    โ”‚ 7.79.1            โ”‚ 7.79.1_1       โ”‚
โ”‚ git          โ”‚ git         โ”‚ brew    โ”‚ 2.33.0            โ”‚ 2.33.0_1       โ”‚
โ”‚ openssl@1.1  โ”‚ openssl@1.1 โ”‚ brew    โ”‚ 1.1.1l            โ”‚ 1.1.1l_1       โ”‚
โ”‚ rake         โ”‚ rake        โ”‚ gem     โ”‚ 13.0.3            โ”‚ 13.0.6         โ”‚
โ”‚ Telegram     โ”‚ 747648890   โ”‚ mas     โ”‚ 8.1               โ”‚ 8.1.3          โ”‚
โ”‚ npm          โ”‚ npm@8.0.0   โ”‚ npm     โ”‚ 7.24.0            โ”‚ 8.0.0          โ”‚
โ”‚ pip          โ”‚ pip         โ”‚ pip     โ”‚ 21.2.4            โ”‚ 21.3           โ”‚
โ”‚ regex        โ”‚ regex       โ”‚ pip     โ”‚ 2021.9.30         โ”‚ 2021.10.8      โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
8 packages total (brew: 3, pip: 2, gem: 1, mas: 1, npm: 1, apm: 0, cask: 0, composer: 0).

Usage

Other subcommands and options are documented in:

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meta_package_manager-5.10.1.tar.gz (103.8 kB view hashes)

Uploaded Source

Built Distribution

meta_package_manager-5.10.1-py3-none-any.whl (157.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page