<---- template headericclude ----->
How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    "if the mountain won't come to Muhammad then Muhammad must go to the mountain"
    _______

    Here is the question numero UNO: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    In other words, let me give a simplistic example (CLI transcript follows):

    [root@localhost ~]# dnf upgrade --nogpgcheck --refresh
    Fedora 25 - x86_64 1.3 MB/s | 50 MB 00:38
    Jenkins 138 kB/s | 60 kB 00:00
    RPM Fusion for Fedora 25 - Free - Updates 796 kB/s | 355 kB 00:00
    RPM Fusion for Fedora 25 - Free 490 kB/s | 515 kB 00:01
    Fedora 25 - x86_64 - Updates 1.3 MB/s | 25 MB 00:18
    RPM Fusion for Fedora 25 - Nonfree 604 kB/s | 144 kB 00:00
    RPM Fusion for Fedora 25 - Nonfree - Updates 467 kB/s | 40 kB 00:00
    Dependencies resolved.
    Nothing to do.
    Complete!
    [root@localhost ~]#
    In this example I would like to have RPM Fusion for Fedora 25 - Free, but to download it, and set it locally on my PC?

    Thank you,
    _nobody_

  2. #2
    Join Date
    Jul 2005
    Age
    63
    Posts
    1,218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    yum-pull is a good starting point, but the last time I had looked at it it was somewhat out of date (the Fedora repo tree has changed its layout - and so has the RPM fusion tree probably - looks like 2007 is still the most recent script). We use a locally modified variant of it here with some custom scripts we've written. It is a decent starting point though if you enjoy bash scripting.

  3. #3
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    Quote Originally Posted by William Haller
    yum-pull is a good starting point, but the last time I had looked at it it was somewhat out of date (the Fedora repo tree has changed its layout - and so has the RPM fusion tree probably - looks like 2007 is still the most recent script). We use a locally modified variant of it here with some custom scripts we've written. It is a decent starting point though if you enjoy bash scripting.
    If you provide me these bash scripts, pleasure will be all mine!

    Thank you,
    _nobody_

  4. #4
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?


  5. #5
    Join Date
    Jul 2005
    Age
    63
    Posts
    1,218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    Google search yum-pull

  6. #6
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    Quote Originally Posted by William Haller
    Google search yum-pull
    Will do, but I resolved my current problem. So, this is not on the top of my PRIO list, where the first 9 places are taken by YOCTO configuration and usage.

    _nobody_

  7. #7
    Join Date
    Aug 2010
    Location
    Al Ain, UAE
    Posts
    2,028
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?


  8. #8
    Join Date
    Dec 2008
    Location
    always where I have to be
    Posts
    1,289
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How to download 'ANY' Fedora repo from the Fedora mirrors and make it local?

    I can speak only for CentOS, not Fedora, where DNF is the default. It requires yumdownloader, which may or may not be in the Fedora repos, no idea. But I guess DNF's download option will do the same.
    Code:
    # yum repolist
    Zavedené moduly: fastestmirror, langpacks, nvidia, priorities
    Loading mirror speeds from cached hostfile
     * base: ftp.sh.cvut.cz
     * elrepo: fr.mirror.babylon.network
     * epel: mirror.karneval.cz
     * extras: mirror.karneval.cz
     * nux-dextop: mirror.li.nux.ro
     * updates: ftp.sh.cvut.cz
    586 packages excluded due to repository priority protections
    ID repozitáře:            Název repozitáře:                                             Stav:
    base/7/x86_64             CentOS-7 - Base                                                    9*363
    So, now just simple:
    Code:
    # yumdownloader --disablerepo=* --enablerepo=base *
    Zavedené moduly: fastestmirror, langpacks, nvidia, priorities
    Loading mirror speeds from cached hostfile
     * base: ftp.sh.cvut.cz
    No Presto metadata available for base
    (1/9363): 389-ds-base-devel-1.3.5.10-11.el7.x86_64.rpm                     | 195 kB  00:00:00     
    (2/9363): ElectricFence-2.2.2-39.el7.i686.rpm                              |  35 kB  00:00:00     
    (3/9363): ElectricFence-2.2.2-39.el7.x86_64.rpm                            |  35 kB  00:00:00     
    (4/9363): 389-ds-base-snmp-1.3.5.10-11.el7.x86_64.rpm                      | 150 kB  00:00:00     
    (5/9363): 389-ds-base-libs-1.3.5.10-11.el7.x86_64.rpm                      | 664 kB  00:00:01     
    (6/9363): GConf2-3.2.6-8.el7.i686.rpm                                      | 1.0 MB  00:00:01     
    (7/9363): GConf2-3.2.6-8.el7.x86_64.rpm                                    | 1.0 MB  00:00:01     
    (8/9363): 389-ds-base-1.3.5.10-11.el7.x86_64.rpm                           | 1.7 MB  00:00:02     
    (9/9363): GConf2-devel-3.2.6-8.el7.x86_64.rpm                              | 110 kB  00:00:00     
    (10/9363): GConf2-devel-3.2.6-8.el7.i686.rpm                               | 110 kB  00:00:00     
    (11/9363): GeoIP-devel-1.5.0-11.el7.i686.rpm                               |  14 kB  00:00:00     
    (12/9363): GeoIP-devel-1.5.0-11.el7.x86_64.rpm                             |  14 kB  00:00:00     
    (13/9363): GeoIP-update-1.5.0-11.el7.noarch.rpm                            | 8.7 kB  00:00:00     
    (14/9363): GeoIP-1.5.0-11.el7.x86_64.rpm                                   | 1.1 MB  00:00:01     
    (15/9363): GeoIP-1.5.0-11.el7.i686.rpm                                     | 1.1 MB  00:00:01     
    (16/9363): ImageMagick-c++-6.7.8.9-15.el7_2.i686.rpm                       | 152 kB  00:00:00     
    (17/9363): ImageMagick-c++-6.7.8.9-15.el7_2.x86_64.rpm                     | 145 kB  00:00:00     
    (18/9363): ImageMagick-c++-devel-6.7.8.9-15.el7_2.i686.rpm                 |  96 kB  00:00:00     
    (19/9363): ImageMagick-6.7.8.9-15.el7_2.i686.rpm                           | 2.1 MB  00:00:02     
    (20/9363): ImageMagick-c++-devel-6.7.8.9-15.el7_2.x86_64.rpm               |  96 kB  00:00:00     
    (21/9363): ImageMagick-devel-6.7.8.9-15.el7_2.x86_64.rpm                   | 100 kB  00:00:00     
    (22/9363): ImageMagick-devel-6.7.8.9-15.el7_2.i686.rpm......................
    I will of course not wait for it all to finish.
    It will by default download all packages to PWD. Also, if it's a repo where older and newer verions of the same package are present, only the latest version will download.

    To create local repo metadata, again the simple thing:
    Code:
    # createrepo /path/to/base
    You'll of course have to create the repo file manually, but it's simple and one can use the existing repo files as template.
    P.S. I think that Fedora uses somewhat different tool, createrepo_c I think? but it works the same way.
    Last edited by Maryyy; 25th August 2017 at 11:31 AM.

Similar Threads

  1. Help me add local mirrors for Fedora repos
    By asifnaz in forum Using Fedora
    Replies: 2
    Last Post: 10th November 2011, 11:07 AM
  2. How-To: Download Fedora ISOs from multiple mirrors at once
    By twanj in forum Guides & Solutions (Not For Questions)
    Replies: 27
    Last Post: 2nd March 2010, 06:21 AM
  3. fedora 10 local repo
    By romeopetruca in forum Using Fedora
    Replies: 0
    Last Post: 30th December 2009, 10:50 AM
  4. local repo fedora 10
    By moromete in forum Using Fedora
    Replies: 2
    Last Post: 23rd May 2009, 02:00 AM
  5. Make a Local Mirror - what I need to download
    By ghostdog78 in forum Servers & Networking
    Replies: 1
    Last Post: 25th July 2005, 02:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]