FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Location
    Island of Roatan in the Caribbean
    Posts
    274

    How to share rpm's already on a local box

    I support a few dozen Fedora boxes. Because I have a relatively slow Internet connection (128kB/sec) due to my physical location, it takes a long time to do a dnf -y update per machine. I'm in the process of nuking and installing F26 on all the boxes and it's taking forever due to the patches.

    I'm looking for a way of seeding a box with the rpm's already on a local box so a dnf update can just find them already available and not have to download them.

    Is there an approved mechanism (via config file, etc) to do this?
    If not, is there a hack I can employ?

    I can't afford to do a real mirror as my connection can't handle it, so I'm looking for a work around.

  2. #2
    Join Date
    Oct 2011
    Posts
    1,609

    Re: How to share rpm's already on a local box

    You can use setup one of the machine as a proxy cache. That way only the packages you download with get stored and reused.

    http://forums.fedoraforum.org/showthread.php?t=311480

  3. #3
    Join Date
    Feb 2009
    Location
    Island of Roatan in the Caribbean
    Posts
    274

    Re: How to share rpm's already on a local box

    I hadn't thought about Squid in over a dozen years. I forgot it even existed. Thanks for the wake up.

  4. #4
    Join Date
    Feb 2009
    Location
    Island of Roatan in the Caribbean
    Posts
    274

    Re: How to share rpm's already on a local box

    I got two email notifications of replies to this issue from nsnbm and PabloTwo but they don't show up here. How does that work?

    I decided to nuke PackageKit as it was giving me grief. The script I wrote years ago to push rpm's to other boxes only worked on the dnf area, but I found so many rpm's in the PackageKit cache it made things confusing. On my personal machine, I had over 500M of rpm's in the PackageKit area of /var/cache and the same rpm's in the dnf area of the cache. If PackageKit is supposed to just form an abstraction layer above dnf, then why does it have its own cache?

    These were downloaded one extra time using my puny 128KB worth of bandwidth. I can't afford that.

    I'm going back to the bash script to ssh/rsync the various dnf cache areas on my master box to all the other boxes and each has keepcache=true. That way I download once and seed the other boxes from my cache.

    I attached my script.
    Attached Files Attached Files

  5. #5
    Join Date
    Oct 2011
    Posts
    1,609

    Re: How to share rpm's already on a local box

    Well the thing is that PackageKit is currently a whole package manager that happens to be compatible with rpm. Disabling PackageKit makes sense, I have it disabled as well.

    Code:
    $ gsettings set org.gnome.software download-updates false
    This is a per user setting though. Not sure about the right approach to disable it completely on a system.

    I think I had success with following:

    Code:
    $ sudo systemctl mask packagekit

  6. #6
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,616

    Re: How to share rpm's already on a local box

    BillGradwohl wrote:
    I got two email notifications of replies to this issue from nsnbm ...
    What you saw was the result of my deletion of my message, so you got the notification when I submitted it, but because I deleted it, it doesn't appear in the forum. The message was to suggest you create a local repo, which is something I have done successfully in the past, using createrepo, but I hadn't used that repo with other machines on the network, so I hadn't configured dnf on other machines to use that particular repo, so I thought it better to leave it with the suggestions that had already been made rather than something more speculative, hence I deleted the message. But now you have it for what it's worth.

  7. #7
    Join Date
    Aug 2005
    Posts
    695

    Re: How to share rpm's already on a local box

    Thanks for that packagekit suggestion, srakitnican.
    Also:
    Code:
    $ gsettings set org.gnome.software allow-updates false
    To kill notifications see:
    http://forums.fedoraforum.org/showthread.php?t=298948

    And this should stop dnf from downloading metadata in the background, so you only download the metadata when you choose to do an update:
    Code:
    # systemctl disable dnf-makecache.timer

Similar Threads

  1. local dnf cache usable to seed other local machines
    By BillGradwohl in forum Using Fedora
    Replies: 0
    Last Post: 19th August 2015, 09:43 PM
  2. what is /root/.local/share/gvfs-metadata ?
    By mario960 in forum Using Fedora
    Replies: 2
    Last Post: 8th September 2014, 09:13 PM
  3. Replies: 7
    Last Post: 28th November 2012, 11:34 PM
  4. Replies: 5
    Last Post: 29th June 2007, 01:07 PM
  5. Local Network to share files??
    By tbonejo in forum Servers & Networking
    Replies: 3
    Last Post: 13th October 2004, 05:20 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
  •