Re: Downloading and installing all rpms needed for a set of packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's sort of related to what I asked about repoquery.  One way to do that is for each package, run:

$ repoquery --resolve --requires --recursive perl-Moose
perl-Moose-0:1.15-1.el6.x86_64
perl-Package-DeprecationManager-0:0.11-1.el6.noarch
perl-Sub-Exporter-0:0.982-4.el6.noarch
perl-Sub-Name-0:0.05-6.el6.x86_64
perl-MRO-Compat-0:0.11-2.el6.noarch
perl-Data-OptList-0:0.104-4.el6.noarch
glibc-0:2.12-1.149.el6.i686
perl-Params-Util-0:1.00-3.el6.x86_64
perl-List-MoreUtils-0:0.22-10.el6.x86_64
glibc-0:2.12-1.149.el6_6.9.x86_64
perl-Task-Weaken-0:1.02-7.el6.noarch
perl-4:5.10.1-136.el6.x86_64
perl-Class-MOP-0:1.12-1.el6.x86_64
perl-Devel-GlobalDestruction-0:0.02-7.el6.x86_64
perl-Try-Tiny-0:0.11-4.el6.noarch

Then I suppose you can combine all the output then sort | uniq to get a full list.

Note that this approach requires your dependencies to resolve, as repoquery does not report on dependency failures, and that was my gripe about repoquery in a different post.

Satoshi

> Date: Tue, 21 Jul 2015 17:51:04 +0300
> From: wkevils@xxxxxxxxx
> To: yum@xxxxxxxxxxxxxxxxx
> Subject: Downloading and installing all rpms needed for a set of packages
>
> Hello,
> There is a device on which I am running Fedora 21 x86_64.
> This is a device for development.
> Now, it comes with a set or rpms that come with the image.
> I need to reinstall the image once in 3-4 days (because of new image releases)
>
> After installing the image, I am using yum -y install to install a set
> of 10 packages (rpms)
> and all their dependencies.
>
> Is there a way to find out all the dependencies of these 10 rpms and
> also the packages that depend on these which are not installed on the
> device (and so on and so forth)
> so I will be able to have a local copies of all the rpms needed for
> these 10 rpms, so in the next time I will perform the installations, I
> will be able to do it localy by some rpm -ivh * command ?
>
> Regards,
> Kevin
> _______________________________________________
> Yum mailing list
> Yum@xxxxxxxxxxxxxxxxx
> http://lists.baseurl.org/mailman/listinfo/yum
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux