This looks critical to us, we have multiple release or rpms in a particular
repository and want to install specific release only, when i try with
hammer CLI i get
hammer --debug host package install --host test.example.com --packages
ems-1.0-3
*:ems-1.0-3-*-*.*: No package(s) available to install
Error: *:ems-1.0-3-*-*.*: No package(s) available to install
it does not understand how to pass Version/Release , i think for PULP it
works, so it should work here as well ?
Manually it works.
[root@test~]# yum install ems-1.0-3
Loaded plugins: package_upload, product-id, search-disabled-repos,
subscription-manager
my-repo
| 2.1 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package ems.x86_64 0:1.0-3 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch
Version
Repository
Size
=============================================================================================================================================================
Installing:
ems x86_64 1.0-3
my_repo 1.8 k
Transaction Summary
=============================================================================================================================================================
Install 1 Package
On Monday, 12 December 2016 14:12:36 UTC+5:30, Unix SA wrote:
>
> Hello,
>
> i was looking at API for installing package on particular host, i have 2
> packages, test-1.0.1.rpm and test.1.0.2, now i wan to install specific
> release 1.0.1, i dont find API has option to pass NEVRA, is there anyway to
> do that using API call ?
>
> PUT /api/hosts/:host_id/packages/install
> Install packages remotely
> Params
> Param name Description
> *host_id *
> required
>
> ID of the host
>
> *Validations:*
>
> -
>
> string from 2 to 128 characters containing only alphanumeric
> characters, space, '_', '-' with no leading or trailing space..
>
> *packages *
> optional
>
> List of package names
>
> *Validations:*
>
> -
>
> Must be an array of any type
>
> *groups *
> optional
>
> List of package group names
>
> *Validations:*
>
> -
>
> Must be an array of any type
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.