Try to play with --installroot=/tmp/cache, then the yum cmd/tool will work
with a clean system

Tim

On Fri, May 8, 2015, 20:08 K Richard Pixley <rpix...@graphitesystems.com>
wrote:

>  I'm having trouble figuring out how to download a set of packages without
> installing them.
>
> There would seem to be several possible approaches, none of which are
> working in a way that is useful for me.
>
> I'm working on RHEL7.1 if it matters.
>
> Yumdownloader gets too many packages.  *Way* too many to be of practical
> use for my purpose, (creating bootable kickstart isos).  And the extra
> packages introduce unresolvable dependencies, which is a problem.
>
> Using top-of-tree yumdownloader gets fewer packages, but still too many to
> be of use.
>
> Using "yum install --downloadonly X Y" also fails.  If X is installed on
> the system but Y is not, then no available combination of command line
> options will cause them both to be downloaded unless I first install Y on
> the system.
>
> So my current, horrible solution is to install everything I need on the
> host system, then --downloadonly to get copies of the rpms that I need.
>
> Surely there must be a way to use yum to collect all the rpms that I need
> for my task.  And surely other people have faced and solved exactly this
> issue.  What's the secret to getting either yumdownloader or --downloadonly
> to Do The Right Thing?
>
> --rich
>  _______________________________________________
> Yum-devel mailing list
> Yum-devel@lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to