[Rpm-ecosystem] How to download only a rpm and the dependency rpms not installed

Jun Aruga jaruga at redhat.com
Wed Oct 4 08:38:49 UTC 2017


Dusty,

Wow, I could do it!
Thanks!

$ dnf download rpm-devel.x86_64 --resolve
Fedora 25 - x86_64 - Updates                                   14 MB/s |
25 MB     00:01
(1/2): popt-devel-1.16-7.fc24.x86_64.rpm                      747 kB/s |
29 kB     00:00
(2/2): rpm-devel-4.13.0.1-2.fc25.x86_64.rpm                   2.0 MB/s |
124 kB     00:00

$ ls
popt-devel-1.16-7.fc24.x86_64.rpm  rpm-devel-4.13.0.1-2.fc25.x86_64.rpm


As a information, when now I tried on CentOS6 docker image, I could do same
thing for yumdownloader.

[root at ca346edc0c0e /]# yum install yum-utils

[root at ca346edc0c0e work]# yumdownloader --resolve rpm-devel.x86_64

[root at ca346edc0c0e work]# ls | sort
file-devel-5.04-30.el6.x86_64.rpm
popt-devel-1.13-7.el6.x86_64.rpm
rpm-devel-4.8.0-55.el6.x86_64.rpm

Jun


On Tue, Oct 3, 2017 at 4:03 PM, Dusty Mabe <dusty at dustymabe.com> wrote:

>
>
> On 10/03/2017 09:37 AM, Jun Aruga wrote:
> >
> >
> > $ dnf download rpm-devel --resolve
> >
>
> You are downloading both 64bit and 32bit rpms.
>
> Try this instead:
>
> dnf download rpm-devel.x86_64 --resolve
>
> Dusty
>



-- 
Jun Aruga jaruga at redhat.com
IRC: jaruga, Office: TPB(Technology Park Brno) Building C 1F, Brno, Czech
Republic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-ecosystem/attachments/20171004/7fc2e289/attachment.html>


More information about the Rpm-ecosystem mailing list