Skip to main content

CLI providing unifying interface to all package managers.

Project description

CLI providing unifying interface to all package managers.

Stable release: Last release Python versions Software license Requirements freshness

Development: Unit-tests status Documentation Status Coverage Status Code Quality

Obligatory XKCD.

Source: XKCD #1654.

Features

  • Search and list all package managers on the system.

  • Supports macOS and Linux.

  • List installed packages.

  • Search for packages.

  • List outdated packages.

  • Sync local package infos.

  • Upgrade all outdated packages.

  • Apply commands per-package manager or to all of them.

  • Export results in JSON or user-friendly tables.

  • Provides a BitBar plugin for friendly macOS integration.

Supported package managers

Package manager

Version

macOS

Linux

Windows

sync

installed

search

install

outdated

upgrade

Homebrew

>= 1.7.4

Homebrew Cask

>= 1.7.4

Python 2 pip

>= 9.0.0

Python 3 pip

>= 9.0.0

Node’s npm

>= 4.0.*

Atom’s apm

Ruby’s gem

Mac AppStore via mas

>= 1.3.1

apt

>= 1.0.0

composer

>= 1.4.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|gem|mas|npm|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|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      │ ✓             │ ✓  /usr/local/bin/apm      │ ✓            │ ✓  1.18.1   │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ APT               │ apt      │ ✘  Linux only │ ✓  /usr/bin/apt            │ ✓            │ ✘           │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ PHP's Composer    │ composer │ ✓             │ ✓  /usr/local/bin/composer │ ✓            │ ✓  1.8.0    │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Homebrew          │ brew     │ ✓             │ ✓  /usr/local/bin/brew     │ ✓            │ ✓  1.2.5    │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Homebrew Cask     │ cask     │ ✓             │ ✓  /usr/local/bin/brew     │ ✓            │ ✓  1.2.5    │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Ruby Gems         │ gem      │ ✓             │ ✓  /usr/bin/gem            │ ✓            │ ✓  2.0.14.1 │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Mac AppStore      │ mas      │ ✓             │ ✓  /usr/local/bin/mas      │ ✓            │ ✓  1.3.1    │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Node's npm        │ npm      │ ✓             │ ✓  /usr/local/bin/npm      │ ✓            │ ✓  5.3.0    │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Python 2's Pip    │ pip2     │ ✓             │ ✓  /usr/local/bin/pip2     │ ✓            │ ✓  9.0.1    │
├───────────────────┼──────────┼───────────────┼────────────────────────────┼──────────────┼─────────────┤
│ Python 3's Pip    │ pip3     │ ✓             │ ✓  /usr/local/bin/pip3     │ ✓            │ ✓  9.0.1    │
╘═══════════════════╧══════════╧═══════════════╧════════════════════════════╧══════════════╧═════════════╛

Changes for v2.8.0 (2019-01-03)

  • Add support for PHP composer.

  • Remove cask-specific version, sync and search command. Closes #47.

  • Vanilla brew and cask CLIs now shares the same version requirements.

  • Bump minimal requirement of brew and cask to 1.7.4.

  • Activate unittests in Python 3.7.

  • Drop Travis unittests on deprecated Ubuntu Precise targets and vintage Mac OS X 10.10 and 10.11.

  • Use latest macOS 10.12 and 10.13 Travis images.

Full changelog.

Release history Release notifications | RSS feed

This version

2.8.0

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-2.8.0.tar.gz (53.8 kB view details)

Uploaded Source

Built Distributions

meta_package_manager-2.8.0-py3.7.egg (48.5 kB view details)

Uploaded Source

meta_package_manager-2.8.0-py2.py3-none-any.whl (56.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file meta-package-manager-2.8.0.tar.gz.

File metadata

File hashes

Hashes for meta-package-manager-2.8.0.tar.gz
Algorithm Hash digest
SHA256 9e9593afece4a64f00111d600f86ec146c3de4ef44b04563598c5b8bcf19f79b
MD5 cbe4b0a09efee56753a863f3771c44d3
BLAKE2b-256 69f90300daab12acf24c00df076867931ff7c521c3edc55b0313dd1a9a63fcc9

See more details on using hashes here.

File details

Details for the file meta_package_manager-2.8.0-py3.7.egg.

File metadata

File hashes

Hashes for meta_package_manager-2.8.0-py3.7.egg
Algorithm Hash digest
SHA256 3e299ee3e28e8f8c8ff9ae4a6a2c3de0f5d785e7bc0469abe8cfffefa6a8a9c1
MD5 984a90858336718c4d556ced71966b63
BLAKE2b-256 80609c0c2919032e3a600d520587f815b27c29e84aa236110d8923e38896e3a0

See more details on using hashes here.

File details

Details for the file meta_package_manager-2.8.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for meta_package_manager-2.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1cff038e6151243377975ecdf2227980e7d41430f1c8672650e71eab24e992c
MD5 7d0ba49ca49474303d39799d942d8dd1
BLAKE2b-256 2195cd270756d616060819c3aa31c3e182681363e53860da8e55b3befdd4f829

See more details on using hashes here.

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