This function edits RPM data. When you call this function, it performs the same actions as the following command:
/usr/local/cpanel/scripts/update_local_rpm_versions --edit section.key value
For more information, read our rpm.versions system documentation.
Note:
After you call this function, we strongly recommend that you run the
/usr/local/cpanel/scripts/check_cpanel_pkgs
script.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ edit_rpm_version \ section='rpm_groups' \ key='3rdparty' \ value='cpanel-pcre'
{- "data": {
- "status": 1
}, - "metadata": {
- "command": "edit_rpm_version",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}