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
}
}