Re: Downloading and installing all rpms needed for a set of packages
Satoshi Yagi <[email protected]> Tue, 21 Jul 2015 11:25:25 -0700
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
--===============8289749505327153742== Content-Type: multipart/alternative; boundary="_0c854e7f-8dea-4392-9194-7623281fb2c9_" --_0c854e7f-8dea-4392-9194-7623281fb2c9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It's sort of related to what I asked about repoquery. One way to do that i= s for each package=2C 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 ful= l list. Note that this approach requires your dependencies to resolve=2C as repoque= ry does not report on dependency failures=2C and that was my gripe about re= poquery in a different post. Satoshi > Date: Tue=2C 21 Jul 2015 17:51:04 +0300 > From: [email protected] > To: [email protected] > Subject: [Yum] Downloading and installing all rpms needed for a set of pa= ckages >=20 > Hello=2C > There is a device on which I am running Fedora 21 x86_64. > This is a device for development. > Now=2C 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 rele= ases) >=20 > After installing the image=2C I am using yum -y install to install a set > of 10 packages (rpms) > and all their dependencies. >=20 > 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=2C so in the next time I will perform the installations=2C = I > will be able to do it localy by some rpm -ivh * command ? >=20 > Regards=2C > Kevin > _______________________________________________ > Yum mailing list > [email protected] > http://lists.baseurl.org/mailman/listinfo/yum = --_0c854e7f-8dea-4392-9194-7623281fb2c9_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 12pt=3B font-family:Calibri } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'>It's sort of related to what I a= sked about repoquery. =3B One way to do that is for each package=2C run= :<br><br>$ repoquery --resolve --requires --recursive perl-Moose<br>perl-Mo= ose-0:1.15-1.el6.x86_64<br>perl-Package-DeprecationManager-0:0.11-1.el6.noa= rch<br>perl-Sub-Exporter-0:0.982-4.el6.noarch<br>perl-Sub-Name-0:0.05-6.el6= .x86_64<br>perl-MRO-Compat-0:0.11-2.el6.noarch<br>perl-Data-OptList-0:0.104= -4.el6.noarch<br>glibc-0:2.12-1.149.el6.i686<br>perl-Params-Util-0:1.00-3.e= l6.x86_64<br>perl-List-MoreUtils-0:0.22-10.el6.x86_64<br>glibc-0:2.12-1.149= .el6_6.9.x86_64<br>perl-Task-Weaken-0:1.02-7.el6.noarch<br>perl-4:5.10.1-13= 6.el6.x86_64<br>perl-Class-MOP-0:1.12-1.el6.x86_64<br>perl-Devel-GlobalDest= ruction-0:0.02-7.el6.x86_64<br>perl-Try-Tiny-0:0.11-4.el6.noarch<br><br>The= n I suppose you can combine all the output then sort | uniq to get a full l= ist.<br><br>Note that this approach requires your dependencies to resolve= =2C as repoquery does not report on dependency failures=2C and that was my = gripe about repoquery in a different post.<br><br>Satoshi<br><br><div>>= =3B Date: Tue=2C 21 Jul 2015 17:51:04 +0300<br>>=3B From: [email protected]= om<br>>=3B To: [email protected]<br>>=3B Subject: [Yum] Downloading= and installing all rpms needed for a set of packages<br>>=3B <br>>=3B = Hello=2C<br>>=3B There is a device on which I am running Fedora 21 x86_64= .<br>>=3B This is a device for development.<br>>=3B Now=2C it comes wit= h a set or rpms that come with the image.<br>>=3B I need to reinstall the= image once in 3-4 days (because of new image releases)<br>>=3B <br>>= =3B After installing the image=2C I am using yum -y install to install a se= t<br>>=3B of 10 packages (rpms)<br>>=3B and all their dependencies.<br>= >=3B <br>>=3B Is there a way to find out all the dependencies of these = 10 rpms and<br>>=3B also the packages that depend on these which are not = installed on the<br>>=3B device (and so on and so forth)<br>>=3B so I w= ill be able to have a local copies of all the rpms needed for<br>>=3B the= se 10 rpms=2C so in the next time I will perform the installations=2C I<br>= >=3B will be able to do it localy by some rpm -ivh * command ?<br>>=3B = <br>>=3B Regards=2C<br>>=3B Kevin<br>>=3B ___________________________= ____________________<br>>=3B Yum mailing list<br>>=3B [email protected]= .org<br>>=3B http://lists.baseurl.org/mailman/listinfo/yum<br></div> = </div></body> </html>= --_0c854e7f-8dea-4392-9194-7623281fb2c9_-- --===============8289749505327153742== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Yum mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum --===============8289749505327153742==--