linux_package_manager_commands
Cross-translate package manager commands across 9 Linux ecosystems. Select an operation to get the equivalent install, remove, update, or search command for each distro.
Instructions
Package Manager Commands. Look up and cross-translate a package-manager command across 9 Linux/Unix ecosystems (apt, dnf, pacman, apk, zypper, pkg, brew, snap, flatpak, nix). It BUILDS command strings from a static table — it never runs a package manager, installs, removes, or touches the host. The "operation" field selects the mode: "translate" renders one action (install, remove, update, search) for each target manager from the optional package list and from/to managers; "crossReferenceTable" returns the full action-by-manager command matrix; "packageNameMap" returns canonical-to-per-distro package-name aliases (e.g. apache2 vs httpd); "presets" returns ready-made example requests. Use this for distro-specific package commands; use linux_command_builder for general find/grep/rsync/tar one-liners and linux_bash_script_generator for full scripts. Returns the equivalent command (plus alternatives, per-cell notes, and cross-distro warnings) per manager. Runs locally: read-only, non-destructive, offline, contact
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Query mode. "translate" needs action (and usually packages); "crossReferenceTable", "packageNameMap" and "presets" ignore the other fields and return their full static dataset. | translate |
| action | No | translate only. The package operation to render for each target manager. Required when operation is "translate". | |
| packages | No | translate only. Package name(s) substituted into the {pkgs} placeholder. A single whitespace-separated string is also accepted. Optional; install/remove/search-style actions warn and emit a <package> placeholder if omitted. | |
| from | No | translate only, optional. The source package manager you are translating from; recorded in the output notes for context only. | |
| to | No | translate only, optional. Target package managers to render commands for, each one of apt/dnf/pacman/apk/zypper/pkg/brew/snap/flatpak/nix. Empty or omitted renders all 9. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the request succeeded. | |
| operation | No | The operation that was executed, echoed back. | |
| result | No | Operation-specific payload. "translate" returns action, packages (array), from (string or null), to (array of manager ids), commands (object keyed by manager with command, optional alternatives array, optional notes), plus warnings (array) and notes (array). "crossReferenceTable" returns actions (array), managers (array) and cells (action to manager to command + optional notes). "packageNameMap" returns an array of canonical/description/names where names maps each manager to its package name (empty if none). "presets" returns an array of id/label/description/action/packages. |