get /check-updatesΒΆ

You can check if updates are available for a set of Packages

curl --fail --user <username> -H "Content-Type: application/json" -H 'Accept: application/json' -X POST -d '{"pkgs": [{"name": "kernel", "full_version": "3.10.0-514.16.1.el7.x86_64"}]}' http://localhost/rest/packagemanager/check-updates

Note

You need to send JSON body with Content-Type Header

[
  {
    "name": "kernel",
    "version": "3.10.0",
    "release": "514.26.2.el7",
    "epoch": 0,
    "arch": "x86_64",
    "full_version": "3.10.0-514.26.2.el7.x86_64",
    "repo_id": "ct7"
  }
]