๐ฆ one CLI for all package managers
Project description
What is Meta Package Manager?
- provides the
mpmCLI mpmis likeyt-dlp, but for package managers instead of videosmpmsolves XKCD #1654: Universal Install Script
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.
- Because
mpmtry to wrap all other package managers, it became another pathological case of XKCD #927: Standards
Supported package managers
| Package manager | Min. version | macOS | Linux | Windows | sync |
installed |
search |
install |
outdated |
upgrade |
cleanup |
|---|---|---|---|---|---|---|---|---|---|---|---|
apm |
1.0.0 | โ | โ | โ | โ | โ | โ | โ | โ | ||
apt |
1.0.0 | โ | โ | โ | โ | โ | โ | โ | โ | ||
apt-mint |
1.0.0 | โ | โ | โ | โ | โ | โ | โ | โ | ||
brew |
2.7.0 | โ | โ | โ | โ | โ | โ | โ | โ | โ | |
cask |
2.7.0 | โ | โ | โ | โ | โ | โ | โ | โ | ||
choco |
0.10.4 | โ | โ | โ | โ | โ | โ | โ | โ | ||
composer |
1.4.0 | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ |
flatpak |
1.2.0 | โ | โ | โ | โ | โ | โ | โ | |||
gem |
2.5.0 | โ | โ | โ | โ | โ | โ | โ | โ | โ | |
mas |
1.6.1 | โ | โ | โ | โ | โ | โ | ||||
npm |
4.0.0 | โ | โ | โ | โ | โ | โ | โ | โ | ||
opkg |
0.2.0 | โ | โ | โ | โ | โ | โ | โ | |||
pip |
10.0.0 | โ | โ | โ | โ | โ* | โ | โ | โ | ||
snap |
2.0.0 | โ | โ | โ | โ | โ | |||||
vscode |
1.60.0 | โ | โ | โ | โ | โ | โ | โ | |||
yarn |
1.21.0 | โ | โ | โ | โ | โ | โ | โ | โ | โ |
Quickstart
-
Install
mpmwithpip:$ pip install meta-package-manager
Other alternatives installation methods are available in the documentation.
List managers
List all supported package managers and their status on current system (macOS in this case):
$ mpm --all-managers managers
โญโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโฎ
โ Package manager โ ID โ Supported โ CLI โ Executable โ Version โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโค
โ Atom's apm โ apm โ โ โ โ /usr/local/bin/apm โ โ โ โ 2.6.2 โ
โ APT โ apt โ โ Linux only โ โ /usr/bin/apt โ โ โ โ โ
โ Linux Mint's apt โ apt-mint โ โ Linux only โ โ /usr/bin/apt โ โ โ โ โ
โ Homebrew Formulae โ brew โ โ โ โ /usr/local/bin/brew โ โ โ โ 3.2.16 โ
โ Homebrew Cask โ cask โ โ โ โ /usr/local/bin/brew โ โ โ โ 3.2.16 โ
โ Chocolatey โ choco โ โ Windows only โ โ choco not found โ โ โ
โ PHP's Composer โ composer โ โ โ โ /usr/local/bin/composer โ โ โ โ 2.1.8 โ
โ Flatpak โ flatpak โ โ Linux only โ โ flatpak not found โ โ โ
โ Ruby Gems โ gem โ โ โ โ /usr/bin/gem โ โ โ โ 3.0.3 โ
โ Mac AppStore โ mas โ โ โ โ /usr/local/bin/mas โ โ โ โ 1.8.3 โ
โ Node's npm โ npm โ โ โ โ /usr/local/bin/npm โ โ โ โ 7.24.0 โ
โ OPKG โ opkg โ โ Linux only โ โ opkg not found โ โ โ
โ Pip โ pip โ โ โ โ /usr/local/bin/python3 โ โ โ โ 21.2.4 โ
โ Snap โ snap โ โ Linux only โ โ snap not found โ โ โ
โ Visual Studio Code โ vscode โ โ โ โ /usr/local/bin/code โ โ โ โ 1.61.0 โ
โ Node's yarn โ yarn โ โ โ โ yarn not found โ โ โ
โฐโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโฏ
List installed packages
List all packages installed on current system:
$ mpm installed
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโฎ
โ Package name โ ID โ Manager โ Installed version โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโค
โ github โ github โ apm โ 0.36.9 โ
โ update-package-dependencies โ update-package-dependencies โ apm โ 0.13.1 โ
โ rust โ rust โ brew โ 1.55.0 โ
โ x264 โ x264 โ brew โ r3060 โ
โ atom โ atom โ cask โ 1.58.0 โ
โ visual-studio-code โ visual-studio-code โ cask โ 1.52.0 โ
โ nokogiri โ nokogiri โ gem โ x86_64-darwin โ
โ rake โ rake โ gem โ 13.0.3 โ
โ iMovie โ 408981434 โ mas โ 10.2.5 โ
โ Telegram โ 747648890 โ mas โ 8.1 โ
โ npm โ npm โ npm โ 7.24.0 โ
โ raven โ raven โ npm โ 2.6.4 โ
โ jupyterlab โ jupyterlab โ pip โ 3.1.14 โ
โ Sphinx โ Sphinx โ pip โ 4.2.0 โ
โ ms-python.python โ ms-python.python โ vscode โ 2021.10.1317843341 โ
โ ms-toolsai.jupyter โ ms-toolsai.jupyter โ vscode โ 2021.9.1001312534 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโฏ
16 packages total (brew: 2, pip: 2, apm: 2, gem: 2, cask: 2, mas: 2, vscode: 2, npm: 2, composer: 0).
List outdated packages
List all packages installed for which an upgrade is available:
$ mpm outdated
โญโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฎ
โ Package name โ ID โ Manager โ Installed version โ Latest version โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโค
โ curl โ curl โ brew โ 7.79.1 โ 7.79.1_1 โ
โ git โ git โ brew โ 2.33.0 โ 2.33.0_1 โ
โ openssl@1.1 โ openssl@1.1 โ brew โ 1.1.1l โ 1.1.1l_1 โ
โ rake โ rake โ gem โ 13.0.3 โ 13.0.6 โ
โ Telegram โ 747648890 โ mas โ 8.1 โ 8.1.3 โ
โ npm โ npm@8.0.0 โ npm โ 7.24.0 โ 8.0.0 โ
โ pip โ pip โ pip โ 21.2.4 โ 21.3 โ
โ regex โ regex โ pip โ 2021.9.30 โ 2021.10.8 โ
โฐโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโฏ
8 packages total (brew: 3, pip: 2, gem: 1, mas: 1, npm: 1, apm: 0, cask: 0, composer: 0).
Usage
More documentation is available in:
- the detailed help screens
- the list of
use-cases
where youโll find inspiration on how to leverage
mpmpower
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meta-package-manager-4.9.1.tar.gz.
File metadata
- Download URL: meta-package-manager-4.9.1.tar.gz
- Upload date:
- Size: 63.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c86eb83433e200add282ec9076db030d19a1e45843a0da927120f932b84838
|
|
| MD5 |
b1c51008a3fad089d663d3bf7c2aa550
|
|
| BLAKE2b-256 |
bfa22da8185e14a4743a30d70e114c2c6ca3ba52526eea5380ebe41af309f6a5
|
File details
Details for the file meta_package_manager-4.9.1-py3-none-any.whl.
File metadata
- Download URL: meta_package_manager-4.9.1-py3-none-any.whl
- Upload date:
- Size: 101.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b52efac384835c01bc278b4867e951a095101c1015a946e2aba8a7ab5f37926c
|
|
| MD5 |
d1f64e751bb712a74485c9c9e8ac7ab7
|
|
| BLAKE2b-256 |
670fc6deb610507100bf26d90cd34a4d91faaca0fc04c3aab525e12f5b02f017
|