RPM
List Package Information
Return available RPM packages information
This function retrieves information about the system's available RPM packages.
Note:
You must use either the ns or the package parameters.
get/package_manager_get_package_info
Query parameters
ns'ea' required
An available RPM package namespace.
Note:
- ea and any from ea4_get_additional_pkg_prefixes API call are the only possible values.
- If you use this parameter, you cannot use the package parameter.
- To view more than one namespace, pass the parameter multiple times. For example, ns=ea and ns=altea.
packagestring required
An RPM package name on the system.
Note:
- If you use this parameter, you cannot use the ns parameter.
- To view more than one package, pass the parameter multiple times. For example, package=ea-php55 and package=ea-apr-util.
disable-excludes1 | 0
Example:1
Whether the system will disable yum's exclude behavior.
- 1 — Disable yum's exclude behavior.
- 0 — Do not disable yum's exclude behavior.
Response
HTTP Request was successful.
Example response
{
"data": {
"packages": [
{
"architecture": "x86_64",
"license": "ASL 2.0",
"long_description": "The mission of the Apache Portable Runtime (APR) is to provide a\\nfree library of C data structures and routines.",
"more_info_url": "http://apr.apache.org",
"package": "ea-apr-util",
"pkg_dep": {
"conflicts": [
"ea-php55-php-ioncube5"
],
"requires": [
"glibc",
"libuuid",
"expat",
"libdb",
"ea-apr"
]
},
"pkg_group": "System Environment/Libraries",
"release": "7.7.1.cpanel",
"repo_name": "NYI",
"short_description": "Apache Portable Runtime Utility library",
"size": 214647,
"state": "updatable",
"version": "1.6.1",
"version_installed": "1.6.1-4.4.8.cpanel",
"version_latest": "1.6.1-7.7.1.cpanel"
}
]
},
"metadata": {
"command": "package_manager_get_package_info",
"reason": "OK",
"result": 1,
"version": 1
}
}