Yeah, the command module and either using yum --downloadonly or using
yumdownloader (from the yum-utils package) followed by rpm is the way
to go here.  Adding a means for the yum module to download an rpm is
probably a reasonable feature enhancement but it  doesn't exist at the
moment so the command module is the way to go.

-Toshio

On Wed, Oct 8, 2014 at 11:38 AM, James Morgan <[email protected]> wrote:
> Hi,
>
> I have a relocatable rpm that I would like to install into a different
> directory.
>
> I have read that Yum doesn't really support this and a solution with yum is
> to use
>
> yum install XXX --downloadonly --downloaddir=/tmp
>
>
> Then use rpm and --prefix
>
> http://research.cs.wisc.edu/htcondor/yum/#relocatable
>
> I was wondering if there was any way of doing this with the core yum module.
>
> I appreciate that changing the install directory is not the best approach
> but I have customers with non-standard release directories.
>
> My solution at the moment would be to use command and do things more
> manually for this pesky rpm.
>
> Thanks
>
> James
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ebccbb60-c62a-4287-a989-6b05cc524d71%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG9juEqGB%2BYdPNE3PRTCM%3DZOR0ZtFh%3Daz1PhHQ%3DsZ7Fkc4Qw9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to