latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

RPM
List Package Information

Return required but uninstalled server RPM package

This function lists RPMs that the server needs, but the server owner has not yet installed. When you call this function, it performs the same actions as the following command:

/usr/local/cpanel/scripts/check_cpanel_pkgs --list-only --targets[target]

For more information, read our rpm.versions system documentation.

get/list_rpms

Query parameters

targetstring
Example:3rdparty

The target that depends on the uninstalled RPMs. If you do not specify a value, the function lists all of the required but uninstalled RPMs for all RPM targets.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "rpms": [
      "cpanel-pcre"
    ]
  },
  "metadata": {
    "command": "list_rpms",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}