CLI unifying Homebrew, apt, Chocolatey, Pip, NPM, Composer and the like.
Project description
CLI providing unifying interface to all package managers.
Features
Inventory and list all package managers available on the system.
Supports macOS, Linux and Windows.
List installed packages.
Search for packages.
List outdated packages.
Sync local package infos.
Upgrade all outdated packages.
Backup list of installed packages to 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 BitBar plugin for friendly macOS integration.
Supported package managers
Package manager |
Min. version |
macOS |
Linux |
Windows |
sync |
installed |
search |
install |
outdated |
upgrade |
cleanup |
---|---|---|---|---|---|---|---|---|---|---|---|
2.5.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
||||
2.5.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
||||
10.0.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
||||
4.0.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
||||
1.21.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|||
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|||||
2.5.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|||
1.3.1 |
✓ |
✓ |
✓ |
✓ |
✓ |
||||||
1.0.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
||||
1.4.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
||
1.2.* |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|||||
0.2.0 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|||||
2.0.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 │
╘═══════════════════╧══════════╧═══════════════╧════════════════════════════╧══════════════╧═══════════╛
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
Built Distribution
File details
Details for the file meta-package-manager-3.5.0.tar.gz
.
File metadata
- Download URL: meta-package-manager-3.5.0.tar.gz
- Upload date:
- Size: 62.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f604f8444b9963681eed4a6e7f4864512df76552c0fc803f7facb0bed03d95 |
|
MD5 | aa6207e6a43ce0310b679eace503ef5b |
|
BLAKE2b-256 | 621a7fd443d069df7920479d1666c20be3e0c43e36ca13c9285841f939f01352 |
File details
Details for the file meta_package_manager-3.5.0-py3-none-any.whl
.
File metadata
- Download URL: meta_package_manager-3.5.0-py3-none-any.whl
- Upload date:
- Size: 97.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0efbaa3483357be6f1acc906002f8d63e6dfa9b257f76cbcf0018738199fce20 |
|
MD5 | 207f7d53165b7295389e6135bba3470a |
|
BLAKE2b-256 | 809450c5080f4a7f6af49209c3f614c4d06c3e0d617fa1f0bee75cd9e4f50f5d |