Ok thanks for the reply. I'll try and avoid doing it in the first place but if I can't do that I'll use one of the two options you mention.
I've already used yumdownloader elsewhere to build a custom repo. Thanks On Friday, 10 October 2014 05:48:00 UTC+1, tkuratomi wrote: > > 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] > <javascript:>> 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > 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/70bfd323-a2a0-4519-8855-d788775ae449%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
