---
title: "Return available RPM packages information"
method: GET
path: "/package_manager_get_package_info"
tags: ["RPM", "List Package Information"]
---

# Return available RPM packages information

`GET /package_manager_get_package_info`

This function retrieves information about the system's available
RPM packages.

**Note:**

You must use **either** the `ns` or the `package` parameters.

## Query parameters

- `ns` 'ea', required
- `package` string, required
- `disable-excludes` 1 | 0

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `packages` object[] — An array of objects containing information about the RPM packages on the system.
      - `architecture` string — The required system architecture.
      - `license` string — The RPM package's distribution license.
      - `long_description` string — A detailed description of the RPM package.
      - `more_info_url` string, url, nullable — The RPM package developer's URL, if available.
      - `package` string — The RPM package name.
      - `pkg_dep` object — The RPM package's dependencies and conflicts.
        - `conflicts` string[] — A list of the RPM package's conflicts, if any exist.
        - `requires` string[] — A list of the RPM package's requirements, if any exist.
      - `pkg_group` string — The RPM package's group.
      - `release` string — The RPM package's cPanel release number.
      - `repo_name` string — The repository where the RPM package resides.
      - `short_description` string — A short description of the RPM package.
      - `size` integer — The RPM package's size.
      - `state` 'installed' | 'not_installed' | 'updatable' — The install state of the RPM package. * `installed` * `not_installed` * `updatable`
      - `version` string — The version of the RPM package's software.
      - `version_installed` string — The currently installed version of an RPM package.
      - `version_latest` string — The latest available version of an RPM package.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
