Skip to main content

Meta Package Manager

CLI providing unifying interface to all package managers.

Stable release: Last release Python versions

Development: Unittests status Documentation Status Coverage Status

https://raw.githubusercontent.com/kdeldycke/meta-package-manager/develop/docs/mpm-managers-cli.png
https://raw.githubusercontent.com/kdeldycke/meta-package-manager/develop/docs/mpm-outdated-cli.png

Features

  • Inventory and list all package managers available on the system.

  • Supports macOS, Linux and Windows.

  • List installed packages.

  • Search for packages.

  • Install 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).

  • Export results in JSON or user-friendly tables.

  • Shell auto-completion for Bash, Zsh and Fish.

  • Provides a xbar plugin for friendly macOS integration.

Supported package managers

Package manager

Min. version

macOS

Linux

Windows

sync

installed

search

install

outdated

upgrade

cleanup

Atom’s apm

1.0.0

✓

✓

✓

✓

✓

✓

✓

✓

apt

1.0.0

✓

✓

✓

✓

✓

✓

✓

✓

Homebrew

2.7.0

✓

✓

✓

✓

✓

✓

✓

✓

✓

Homebrew Cask

2.7.0

✓

✓

✓

✓

✓

✓

✓

✓

composer

1.4.0

✓

✓

✓

✓

✓

✓

✓

✓

✓

✓

Flatpak

1.2.0

✓

✓

✓

✓

✓

✓

✓

Ruby’s gem

2.5.0

✓

✓

✓

✓

✓

✓

✓

✓

✓

Mac AppStore via mas

1.6.1

✓

✓

✓

✓

✓

✓

Node’s npm

4.0.0

✓

✓

✓

✓

✓

✓

✓

✓

opkg

0.2.0

✓

✓

✓

✓

✓

✓

✓

Python pip

10.0.0

✓

✓

✓

✓

✘*

✓

✓

✓

snap

2.0.0

✓

✓

✓

✓

✓

Visual Studio Code

1.60.0

✓

✓

✓

✓

✓

✓

✓

Node’s yarn

1.21.0

✓

✓

✓

✓

✓

✓

✓

✓

✓

If you’re bored, feel free to add support for new package manager. See good candidates at:

Installation

This package is available on PyPi, so you can install the latest stable release and its dependencies with a simple pip call:

$ pip install meta-package-manager

Documentation

Docs are hosted on Read the Docs.

Usage

Examples of the package’s mpm CLI.

List global options and commands:

$ mpm
Usage: mpm [OPTIONS] COMMAND [ARGS]...

  CLI for multi-package manager upgrades.

Options:
  -v, --verbosity LEVEL           Either CRITICAL, ERROR, WARNING, INFO or
                                  DEBUG. Defaults to INFO.
  -m, --manager [apm|apt|brew|cask|composer|flatpak|gem|mas|npm|opkg|pip2|pip3]
                                  Restrict sub-command to a subset of package
                                  managers. Repeat to select multiple
                                  managers. Defaults to all.
  --ignore-auto-updates / --include-auto-updates
                                  Report all outdated packages, including
                                  those tagged as auto-updating. Defaults to
                                  include all packages. Only applies for
                                  'outdated' and 'upgrade' commands.
  -o, --output-format [ascii|csv|csv-tab|double|fancy_grid|github|grid|html|jira|json|latex|latex_booktabs|mediawiki|moinmoin|orgtbl|pipe|plain|psql|rst|simple|textile|tsv|vertical]
                                  Rendering mode of the output. Defaults to
                                  fancy-grid.
  --stats / --no-stats            Print statistics or not at the end of
                                  output. Active by default.
  --stop-on-error / --continue-on-error
                                  Stop right away or continue operations on
                                  manager CLI error. Defaults to stop.
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Commands:
  installed  List installed packages.
  managers   List supported package managers and their location.
  outdated   List outdated packages.
  search     Search packages.
  sync       Sync local package info.
  upgrade    Upgrade all packages.

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

$ mpm managers
╒═══════════════════╤══════════╤═══════════════╤════════════════════════════╤══════════════╤═══════════╕
│ Package manager   │ ID       │ Supported     │ CLI                        │ Executable   │ Version   │
╞═══════════════════╪══════════╪═══════════════╪════════════════════════════╪══════════════╪═══════════╡
│ Atom's apm        │ apm      │ ✓             │ ✘  apm CLI not found.      │              │           │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ APT               │ apt      │ ✘  Linux only │ ✓  /usr/bin/apt            │ ✓            │ ✘         │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Homebrew          │ brew     │ ✓             │ ✓  /usr/local/bin/brew     │ ✓            │ ✓  2.2.10 │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Homebrew Cask     │ cask     │ ✓             │ ✓  /usr/local/bin/brew     │ ✓            │ ✓  2.2.10 │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ PHP's Composer    │ composer │ ✓             │ ✘  composer CLI not found. │              │           │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Flatpak           │ flatpak  │ ✘  Linux only │ ✘  flatpak CLI not found.  │              │           │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Ruby Gems         │ gem      │ ✓             │ ✓  /usr/bin/gem            │ ✓            │ ✓  3.0.3  │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Mac AppStore      │ mas      │ ✓             │ ✓  /usr/local/bin/mas      │ ✓            │ ✓  1.6.3  │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Node's npm        │ npm      │ ✓             │ ✓  /usr/local/bin/npm      │ ✓            │ ✓  6.13.7 │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Node's yarn       │ yarn     │ ✓             │ ✓  /usr/local/bin/yarn     │ ✓            │ ✓  1.21.0 │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ OPKG              │ opkg     │ ✘  Linux only │ ✘  opkg CLI not found.     │              │           │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Python 2's Pip    │ pip2     │ ✓             │ ✘  pip2 CLI not found.     │              │           │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼───────────┤
│ Python 3's Pip    │ pip3     │ ✓             │ ✓  /usr/local/bin/pip3     │ ✓            │ ✓  20.0.2 │
╘═══════════════════╧══════════╧═══════════════╧════════════════════════════╧══════════════╧═══════════╛

Metadata

Release files for meta-package-manager 4.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meta-package-manager 4.3.0
File Size Uploaded Provenance Actions
meta-package-manager-4.3.0.tar.gz 67.0 kB Without provenance Details for meta-package-manager-4.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meta-package-manager 4.3.0
File Interpreter ABI Platform Actions
meta_package_manager-4.3.0-py3-none-any.whl Python 3 none any Details for meta_package_manager-4.3.0-py3-none-any.whl

Total release size: 170.6 kB

Release files / meta-package-manager-4.3.0.tar.gz

Download URL meta-package-manager-4.3.0.tar.gz
Size 67.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e18e0a3aa538b50aa014aa7dce823aa7775316f490fa3b12fb2d9b9300ff30db
BLAKE2b-256 checksum
How to use checksums
4d48cf309daf05c4fde4ed435c8d6bf6b908c712200c432e7eaba83fc4873947
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / meta_package_manager-4.3.0-py3-none-any.whl

Download URL meta_package_manager-4.3.0-py3-none-any.whl
Size 103.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c01296b80308153be6a68aaf1c0b4a7388019ef75ff21e3329e9ea7dd3dd063e
BLAKE2b-256 checksum
How to use checksums
c96ddb77d4326af06251b9a59c9029e1f92b94ba6632ddfc4074ef48386cd8df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for meta-package-manager 4.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page