latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

RPM
List Package Information

Return available RPM packages

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

get/package_manager_list_packages

Query parameters

state'any' | 'installed' | 'not_installed' | 'updatable'
Example:installed

Return RPM packages that exist in a specified state.

  • any — All RPMs available on the system.
  • installed — The RPMs installed on the system.
  • not_installed — The available RPMs not yet installed on the system.
  • updatable — The RPMs with updates available.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "packages": [
      {
        "package": "MariaDB-client"
      },
      {
        "package": "MariaDB-common"
      }
    ]
  },
  "metadata": {
    "command": "package_manager_list_packages",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}