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.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ list_rpms
{- "data": {
- "rpms": [
- "cpanel-pcre"
]
}, - "metadata": {
- "command": "list_rpms",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}