Start RPM package installation, update, or removal

This function installs, upgrades, or uninstalls RPM packages.

Note:

The system queues this function's actions to run as background tasks. The actions may require additional time to finish.

Authorizations:
query Parameters
install
string

The RPM package that you want to install. If you do not use this parameter, the function does not install a package.

Note:

You can pass this parameter multiple times to install more than one RPM package

Examples:
install=install=package1 install=package2
install=package1
uninstall
string

The RPM package that you want to uninstall. If you do not use this parameter, the function does not uninstall a package.

Note:

You can pass this parameter multiple times to uninstall more than one RPM package.

Examples:
uninstall=uninstall=package3 uninstall=package4 uninstall=package5
uninstall=package3
upgrade
string

The RPM package that you want to upgrade. If you do not use this parameter, the function does not upgrade a package.

Note:

You can pass this parameter multiple times to upgrade more than one RPM package.

Examples:
upgrade=upgrade=package6 upgrade=package7 upgrade=package8
upgrade=package6

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  package_manager_submit_actions

Response samples

Content type
application/json
{
  • "data": {
    • "build": 9717
    },
  • "metadata": {
    • "command": "package_manager_submit_actions",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}