CLI providing unifying interface to all package managers.
Project description
CLI providing unifying interface to all package managers.
Features
Search and list all package managers on the system.
Supports macOS and Linux.
List installed 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 |
list |
search |
install |
outdated |
upgrade |
---|---|---|---|---|---|---|---|---|---|---|
>= 1.0.* |
✅ |
✅ |
✅ |
✅ |
✅ |
|||||
>= 1.0.* |
✅ |
✅ |
✅ |
✅ |
✅ |
|||||
✅ |
✅ |
✅ |
✅ |
✅ |
||||||
✅ |
✅ |
✅ |
✅ |
✅ |
||||||
✅ |
✅ |
✅ |
✅ |
|||||||
✅ |
✅ |
✅ |
✅ |
|||||||
✅ |
✅ |
✅ |
✅ |
|||||||
>= 1.3.1 |
✅ |
✅ |
✅ |
✅ |
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 upgrades.
Options:
-v, --verbosity LEVEL Either CRITICAL, ERROR, WARNING, INFO or
DEBUG. Defaults to INFO.
-m, --manager [npm|mas|pip3|pip2|cask|apm|brew|gem]
Restrict sub-command to one package manager.
Defaults to all.
-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 outdated packages.
sync Sync local package info.
upgrade Upgrade all packages.
List all supported package managers and their status on current system:
$ mpm managers
╒═══════════════════╤══════╤═════════════╤════════════════════════╤══════════════╤═════════════╕
│ Package manager │ ID │ Supported │ CLI │ Executable │ Version │
╞═══════════════════╪══════╪═════════════╪════════════════════════╪══════════════╪═════════════╡
│ Atom's apm │ apm │ ✓ │ ✓ /usr/local/bin/apm │ ✓ │ ✓ 1.12.9 │
├───────────────────┼──────┼─────────────┼────────────────────────┼──────────────┼─────────────┤
│ Homebrew │ brew │ ✓ │ ✓ /usr/local/bin/brew │ ✓ │ ✓ 1.1.7 │
├───────────────────┼──────┼─────────────┼────────────────────────┼──────────────┼─────────────┤
│ Homebrew Cask │ cask │ ✓ │ ✓ /usr/local/bin/brew │ ✓ │ ✓ 1.1.7 │
├───────────────────┼──────┼─────────────┼────────────────────────┼──────────────┼─────────────┤
│ 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 │ ✓ │ ✓ 4.0.5 │
├───────────────────┼──────┼─────────────┼────────────────────────┼──────────────┼─────────────┤
│ 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.4.0 (2017-01-28)
Add new list operation. Closes #20.
Fix upgrade of mas packages. Closes #32.
Document BitBar plugin release process.
Colorize check-marks in CLI output.
Decouple sync and outdated actions in all managers.
Cache output of outdated command.
Add global todo list in documentation.
Bump requirement to boltons >= 17.0.0 for Python 3.3 compatibility.
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 Distributions
File details
Details for the file meta-package-manager-2.4.0.tar.gz
.
File metadata
- Download URL: meta-package-manager-2.4.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb8e4d66620dc339c03fab137ca92db81494827f9fde79959a52249054e33a2b |
|
MD5 | 8e2cb1316818c4dc9f2d4deb39ed713d |
|
BLAKE2b-256 | 7f75dd62a1a8e9f2749214f4d70c4fd2ce887afe18c4c560d39a28e1c3fff076 |
File details
Details for the file meta_package_manager-2.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: meta_package_manager-2.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 44.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 983667a2f1fe25cd2056525c7d77b5afb5f00fb6ad8d7f2404c43f6793513ff2 |
|
MD5 | 946d9ec1772cb1a26b977ba4081b6093 |
|
BLAKE2b-256 | 6a0318023a46ab1d4ab5692bc79de8b8d1491b903b427b7d1a9dd1183e2625b8 |
File details
Details for the file meta_package_manager-2.4.0-py2.7.egg
.
File metadata
- Download URL: meta_package_manager-2.4.0-py2.7.egg
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8155a6bc9976857308cc356c27eefbb885ea3f21d7aa33952b77426711d6e498 |
|
MD5 | 726747c69bf0e5a7c05815bb2afa2f39 |
|
BLAKE2b-256 | 806f81ba20d7d853a75b5bae27f82d66c3adcba8c9616e2ebacf6d31376ef914 |