Skip to main content

Meta Package Manager

A CLI and a BitBar plugin to simplify software upgrades from several package managers.

Stable release: Last release Python versions Software license Requirements freshness

Development: Unit-tests status Coverage Status Code Quality

Obligatory XKCD.

Source: XKCD #1654.

Supported

Only macOS platform is supported.

Package manager

Individual upgrade

Full upgrade

Homebrew

✅

✅

Homebrew Cask

✅

✅

Python 2 pip

✅

✅

Python 3 pip

✅

✅

Node’s npm

✅

✅

Atom’s apm

✅

✅

Ruby’s gem

✅

✅

Mac AppStore via mas

✅

✅

If you’re bored, feel free to add support for new package manager. See the list of good candidates.

Usage

Examples of the package’s mpm CLI.

List global options and commands:

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

  CLI for multi-package manager updates and upgrades.

Options:
  -v, --verbosity LEVEL           Either CRITICAL, ERROR, WARNING, INFO or
                                  DEBUG. Defaults to INFO.
  -o, --output-format [simple|plain|json|fancy]
                                  Rendering mode of the output. Defaults to
                                  fancy.
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Commands:
  managers  List supported package managers and their location.
  outdated  List available updates.
  sync      Sync local package info.
  update    Update all packages.

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

$ mpm managers
╒═══════════════════╤══════╤═════════════════════╤═════════╤══════════════╤═══════════╕
│ Package manager   │ ID   │ CLI path            │ Found   │ Executable   │ Version   │
╞═══════════════════╪══════╪═════════════════════╪═════════╪══════════════╪═══════════╡
│ Atom's apm        │ apm  │ /usr/local/bin/apm  │ ✅       │ ✅            │ ✅         │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Homebrew          │ brew │ /usr/local/bin/brew │ ✅       │ ✅            │ ✅  1.1.2  │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Homebrew Cask     │ cask │ /usr/local/bin/brew │ ✅       │ ✅            │ ✅  1.1.2  │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Ruby Gems         │ gem  │ /usr/bin/gem        │ ✅       │ ✅            │ ✅         │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Mac AppStore      │ mas  │ /usr/local/bin/mas  │ ✅       │ ✅            │ ✅  1.3.1  │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Node's npm        │ npm  │ /usr/local/bin/npm  │ ✅       │ ✅            │ ✅         │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Python 2's Pip    │ pip2 │ /usr/local/bin/pip2 │ ✅       │ ✅            │ ✅         │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Python 3's Pip    │ pip3 │ /usr/local/bin/pip3 │ ✅       │ ✅            │ ✅         │
╘═══════════════════╧══════╧═════════════════════╧═════════╧══════════════╧═══════════╛

BitBar plugin

A copy of the latest stable version of the Meta Package Manager BitBar plugin is always available on BitBar website and plugin repository.

Bitbar plugin screenshot.

History

The package_manager.py script started its life in my ‘dotfile’ repository, as a rewrite from Bash to Python of the ‘brew-updates.sh’ script.

I then merged both Homebrew and Cask upgrade in the same single script as both were competing with each other when run concurrently.

I finally proposed the script for inclusion in the official BitBar plugin repository. It lived there for a couple of weeks and saw a huge amount of contributions by the community.

With its complexity increasing, it was decided to move the plugin to its own repository. For details, see the migration script.

Current status

Active development of the script is continuing here, in the exact same conditions as we were before moving the repository, like nothing happened.

Each time we reach a releaseable script, we simply tag it and push a copy to the BitBar plugin repository. Plain and simple.

At the same time we maintain a Python library on the side. The library is going to handle all idiosyncracies of supported package managers under a unified API.

Once the library is good enough, we’ll evaluate rebasing the original plugin on it, and lay out a plan for a painless transition, from the standalone script to a bare BitBar-plugin depending on the library alone.

In the mean time we have to temporarily manage duplicate code. But at least the whole project is kept in one centralized place, trying to tackle the same issues.

Contributors

License

This software is licensed under the GNU General Public License v2 or later (GPLv2+).

Changes for v2.1.1 (2016-12-17)

  • Fix parsing of non-point releases of brew and cask versions. Closes #15.

  • Do not render emoji in BitBar plugin menu entries.

  • Do not trim error messages rendered in BitBar plugin.

  • Do not strip CLI output. Keep original format.

  • Fix full changelog link.

Full changelog.

Release files for meta-package-manager 2.1.1

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 2.1.1
File Size Uploaded
meta-package-manager-2.1.1.tar.gz 30.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for meta-package-manager 2.1.1
File Interpreter ABI Platform
meta_package_manager-2.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details
meta_package_manager-2.1.1-py2.7.egg Legacy Egg format - - Details

Total release size: 101.6 kB

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

Download URL meta-package-manager-2.1.1.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a45a743cd524df0f3be411ae31f7c347483e2f582d19a4dca46e4fc83369b1ba
BLAKE2b-256 checksum
How to use checksums
8e7481d4e5fc4db1bcb645cf9671acdd9882f7163168a4101e85f3965e832390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / meta_package_manager-2.1.1-py2.py3-none-any.whl

Download URL meta_package_manager-2.1.1-py2.py3-none-any.whl
Size 38.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a9772a8b93cb555ed61041112116bc5d60734d21c35d60f0019bf77a040e2b22
BLAKE2b-256 checksum
How to use checksums
9b58a5931775e54f4e1d0acb7f570cdb7a0a493f8359e6a1e9436b29c21bb57e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / meta_package_manager-2.1.1-py2.7.egg

Download URL meta_package_manager-2.1.1-py2.7.egg
Size 33.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
55be4dd7f4f832e45de40bb452e66f2f2096cdbf234a82e7775a4080a49004da
BLAKE2b-256 checksum
How to use checksums
1b49989bae5b1868441bdb7b78afbca5d320564b34d164319cb1403b3adba294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

8.1.2

2 release files

8.1.1

2 release files

8.1.0

2 release files

8.0.2

2 release files

8.0.1

2 release files

8.0.0

2 release files

7.6.1

2 release files

7.6.0

2 release files

7.5.0

2 release files

7.4.1

2 release files

7.4.0

2 release files

7.3.0

2 release files

7.2.0

2 release files

7.1.0

2 release files

7.0.1

2 release files

7.0.0

2 release files

6.6.0

2 release files

6.5.1

2 release files

6.5.0

2 release files

6.4.1

2 release files

6.4.0

2 release files

6.3.0

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.1

2 release files

6.1.0

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.21.0

2 release files

5.20.0

2 release files

5.19.0

2 release files

5.16.0

2 release files

5.15.0

2 release files

5.14.2

2 release files

5.14.1

2 release files

5.14.0

2 release files

5.12.0

2 release files

5.11.7

2 release files

5.11.6

2 release files

5.11.5

2 release files

5.11.4

2 release files

5.11.3

2 release files

5.11.2

2 release files

5.11.1

2 release files

5.11.0

2 release files

5.10.2

2 release files

5.10.1

2 release files

5.10.0

2 release files

5.9.0

2 release files

5.8.0

2 release files

5.7.0

2 release files

5.6.2

2 release files

5.6.1

2 release files

5.6.0

2 release files

5.5.1

2 release files

5.5.0

2 release files

5.4.0

2 release files

5.3.0

2 release files

5.2.0

2 release files

5.1.0

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.13.1

2 release files

4.13.0

2 release files

4.10.0

2 release files

4.9.9

2 release files

4.9.8

2 release files

4.9.4

2 release files

4.9.3

2 release files

4.9.2

2 release files

4.9.1

2 release files

4.9.0

2 release files

4.8.0

2 release files

4.6.0

2 release files

4.5.0

2 release files

4.4.0

2 release files

4.3.0

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.6.0

2 release files

3.5.2

2 release files

3.5.1

2 release files

3.5.0

2 release files

3.4.2

2 release files

3.4.1

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.9.0

2 release files

2.8.0

3 release files

2.7.0

3 release files

2.6.1

3 release files

2.6.0

3 release files

2.5.0

3 release files

2.4.0

3 release files

2.3.0

3 release files

2.2.0

3 release files

This release

2.1.1 This release

3 release files

2.1.0

3 release files

2.0.0

3 release files

1.11.0

3 release files

1.9.0

3 release files

1.8.0

3 release files

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