Results 1 to 9 of 9

Thread: Questions regarding online updates

  1. #1
    Join Date
    Apr 2011
    Location
    Secunda, South Africa
    Posts
    80

    Default Questions regarding online updates

    Hi all, I have a few questions regarding online update. If I abort the update will the packages already downloaded be kept in a cache directory like what ubuntu does? Or will it start downloading everything from scratch again?

  2. #2
    dd NNTP User

    Default Re: Questions regarding online updates

    On 11/06/2012 02:36 PM, georgelappies wrote:
    >
    > Hi all, I have a few questions regarding online update. If I abort the
    > update


    first: what do you mean by "abort the update"? that is, were you using
    YaST Online Update or Software Management and you clicked on the "Abort"
    button and waited as long as it too for the abort to take place?

    or: did you close YaST while the update was going on?

    or: did you close the terminal/konsole while zypper was still running?

    or: did you press the power button on your computer while either YaST or
    zypper was running?

    or: what?

    second: it is best to not abort an update in any way other than clicking
    the abort button and WAIT (it will NOT be quick) until all activity
    stops, and YaST closes..

    because the exact state the system will vary according to how and when
    you performed the "abort"..

    that is, it _will_ be in an unknown state.



    > will the packages already downloaded be kept in a cache directory


    not possible to answer with the info you have given...


    > like what ubuntu does?


    if you were running an update in ubuntu and aborted _while_ a package is
    being downloaded, would ubuntu cache that broken package?


    > Or will it start downloading everything from scratch again?


    it depends on when and how the abort was processed and how you have set
    up YaST.....worse than that, it is possible to abort at so critical a
    time that your system won't boot or run!

    bottom line: pretend it is impossible to abort an update once it has
    begun....just sit on your hands and watch, or go for a walk, etc....

    --
    dd

  3. #3
    Join Date
    Apr 2011
    Location
    Secunda, South Africa
    Posts
    80

    Default Re: Questions regarding online updates

    dd, thanks I see understand now. In ubuntu when you update the system (especially just after a clean install) and it has to download huge amount of updates 300MB+ it will first download all the files to /var/cache/apt/ and only once all the files have been downloaded will it start to unpack the deb files and replace / update existing files. This allowed me to update the system over a few days by visiting a wifi hot spot.

    I was referring to if I cancel the update while it is still downloading the updates, this would not cause an issue as nothing in the system has changed as yet.

    In openSUSE does it download each update and then directly after downloading the update does it apply it and then only download the next rpm file? If that is the case then indeed one will have to do the update in one fell swoop...

    Hopefully there is a way to set it to first download all files (create a local repo of updates) and then only start the updating of the system files?

  4. #4
    dd NNTP User

    Default Re: Questions regarding online updates

    On 11/06/2012 04:16 PM, georgelappies wrote:
    > Hopefully there is a way to set it to first download all files (create
    > a local repo of updates) and then only start the updating of the system
    > files?


    several things you can do..

    1. to cause YaST/zypper to not begin installing until all packages are
    downloaded set
    Code:
    commit.downloadMode = DownloadInAdvance
    in /etc/zypp/zypp.conf

    2. there is a way to tell YaST/Zypper to retain all rpms downloaded
    (even after they are installed), but i don't remember it this second,
    and don't have enough patience to look it up for you (hopefully someone
    else will jump in)

    3. there is also a way to set up a mirror on your machine...but, that
    could include LOTS of stuff you would never use, ever..

    sorry, i'm out of patience on this one....if no one comes along, bump it
    and many someone shows up...

    --
    dd


  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Questions regarding online updates

    On 2012-11-06 16:16, georgelappies wrote:
    >
    > dd, thanks I see understand now. In ubuntu when you update the system
    > (especially just after a clean install) and it has to download huge
    > amount of updates 300MB+ it will first download all the files to
    > /var/cache/apt/ and only once all the files have been downloaded will it
    > start to unpack the deb files and replace / update existing files. This
    > allowed me to update the system over a few days by visiting a wifi hot
    > spot.


    The behaviour is configurable: download all before install, download
    related bunches and install them, download one and install it... looz
    somewhere in /etc/zypper or /etc/zypp.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  6. #6
    Join Date
    Apr 2011
    Location
    Secunda, South Africa
    Posts
    80

    Default Re: Questions regarding online updates

    dd, thanks for your assistance it is much appreciated.

  7. #7

    Default Re: Questions regarding online updates

    On 11/06/2012 08:36 AM, georgelappies pecked at the keyboard and wrote:
    > Hi all, I have a few questions regarding online update. If I abort the
    > update will the packages already downloaded be kept in a cache directory
    > like what ubuntu does? Or will it start downloading everything from
    > scratch again?
    >
    >

    YaST or zypper will pick up where it left off as long as you don't
    deleted any of the downloaded files. Either will also adjust for any
    changes in the repos since the previous download was interrupted.

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,643
    Blog Entries
    3

    Default Re: Questions regarding online updates

    Quote Originally Posted by georgelappies View Post
    In openSUSE does it download each update and then directly after downloading the update does it apply it and then only download the next rpm file? If that is the case then indeed one will have to do the update in one fell swoop...
    In my recent experience, I see it download everything first, and not install until all is downloaded.

    Back when I was running 11.3, it did that differently and caused me headaches. There was a config setting to force it to download first. But, at least since 12.1, this seems be the default way of doing things.

    This does make it seem a bit slow if the network is slow. But it is more reliable.

    On the other question - as far as I know, it won't download a second time if it finds that the update has already been downloaded. However, I have not tested that recently, so this is based on experience that is more than a year old.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Questions regarding online updates

    On 2012-11-06 18:31, dd wrote:
    > 2. there is a way to tell YaST/Zypper to retain all rpms downloaded
    > (even after they are installed), but i don't remember it this second,
    > and don't have enough patience to look it up for you (hopefully someone
    > else will jump in)


    Repository configuration in yast. Or zypper, man zypper :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •