Hello,

I am using Fedora, but have a temperamental internet connection at home. Updating can be difficult because large downloads are slow and tend to reach timeouts most of the time.

Is there a way to have my system download one update from the list at a time instead of multiple?

This might at least help prevent me needing to retry upwards of 4-5 times hoping it all eventually succeeds within the timeout and failure limits it seems to have.

I did check online a bit and the manual for dnf, but web searching seems to bring up “updating a single package” not iterating through the available updates to baby my horrible internet. And the manual didn’t seem to mention anything regarding this.

Hoping there is something.

Thank you very much for any suggestions or guidance.

  • thingsiplay@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    4 days ago

    have a temperamental internet connection at home

    Love this description. :D

    I don’t use Fedora or dnf, but looking at the manual on https://man7.org/linux/man-pages/man8/dnf.8.html I could find following:

     dnf [options] upgrade <package-spec>...
                  Updates each specified package to the latest available
                  version. Updates dependencies as necessary. When versions
                  are specified in the <package-spec>, update to these
                  versions.
    
    dnf [options] upgrade-minimal
                  Updates each package to the latest available version that
                  provides a bugfix, enhancement or a fix for a security
                  issue (security).
    

    So I assume you can just specify which package to upgrade only.The minimal variant does not support specific packages, but maybe a good idea to get all important stuff in one batch first. Then the general upgrade command would have less work to do I guess. At least here on the Arch side, upgrading a single package is absolutely not recommended. But I don’t know how dnf handles this.

    Also on Archlinux with pacman each package gets downloaded before the installation process begins. So if your internet goes away while downloading, it does not matter, because next time it will only download the rest of the packages and continue from that point. And it only starts installing locally after everything is downloaded from internet. Now, as said I don’t know how dnf handles this, but would assume it does it similar.

    • vimmiewimmie@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Going off your comment and someone else’s I was able to find the following:

      It’s referencing increasing the max parallel downloads to increase upgrade/update speed. But maybe it’ll work for what I’m looking for by lowering the value instead.

      Thank you very much for taking the time to help me.

      • thingsiplay@beehaw.org
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        Hi, always nice to get a reply back after solution is found. Unfortunately I cannot see what is after the “following:” and “It’s referencing…”. Could be my configuration, not sure whats going on here. It looks like this for me (scaled down, no need for full size anyway, so it does not confuse readers):

        • vimmiewimmie@lemm.eeOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          Oh no, my upload must not have gone through…

          It was just a screenshot of a page I found.

          I think it was this:

          Increase dnf Speed on Fedora

          Seems like there are many pages effectively copying an article more or less exactly like this.

          But, hopefully the options help me, and whoever might come across this.

          Does this show up correctly?

          • thingsiplay@beehaw.org
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            I see. Well for the link, it shows up as a hyperlink to the webpage itself. But I see now what you meant with it.