Page 1 of 10 123 ... LastLast
Results 1 to 10 of 100

Thread: Dialup / Offline softare updates

Hybrid View

  1. #1
    Join Date
    May 2010
    Location
    Central USA
    Posts
    247

    Default Dialup / Offline softare updates

    Pardon me if this is not the right forum. I thought there used to be one about software updates. So it was either this one or the Install one.

    It's happened again. I made a 30 mile round trip to the library (had other things to do, too) to get the repodata for the updates. I noticed the update date on the files was the 23rd and today was 29th. I checked right before I left and the files were still the 23rd. So I tried to be optimistic. By the time I got home and tried to use the files, they had updated them.

    After finding merely copying the files to the repodata directory did not work, what I normally do in Yast is to run the Online Update and as soon as it starts and creates the temporary update directory in /var/cache/zypp/raw/, I click abort. This gives me 30 seconds to copy my files into the directory, the update, seeing that the server and the directory files are the same, then moves them over and all is fine. When the files have been updated in the meantime, I'm out of luck with the knowledge I have.

    The reason I have to go to the library is that repodata file filelists and primary are over 14MB! That is basically out of reach for me on dialup. Once, I thought I would try early in the morning hoping they wouldn't update them during the time. I verified they had just been updated the previous day and started my download manager. After several hours, I noticed that it was having problems at 90% on the last one. I found out they had updated them during that time.

    So the question is, am I out of luck? I realize I can't get the current updates, but could I at least use the ones I just downloaded? It would work for awhile. If one of the software files are updated and they remove the one in my older filelist, then I'm out of luck, but at least I might have a few days to get things updated. Is there some way to tell the update software to use the current files I put in the repodata directory?

    I had turned off all the automatic updates I could find to prevent my internet use from basically being disabled, so don't know if that has an effect. I couldn't manage to do that in 12.1 so if I remember, I load Software Management in the background to prevent the packagekit from running.

  2. #2

    Default Re: Dialup / Offline softare updates

    Well, in your case I would suggest to just uninstall PackageKit and all its dependencies then:
    Code:
    sudo zypper rm PackageKit
    Edit:
    And you may want to change this in /etc/zypp/zypp.conf:
    Code:
    ##
    ## Amount of time in minutes that must pass before another refresh.
    ##
    ## Valid values: Integer
    ## Default value: 10
    ##
    ## If you have autorefresh enabled for a repository, it is checked for
    ## up-to-date metadata not more often than every <repo.refresh.delay>
    ## minutes. If an automatic request for refresh comes before <repo.refresh.delay>
    ## minutes passed since the last check, the request is ignored.
    ##
    ## A value of 0 means the repository will always be checked. To get the oposite
    ## effect, disable autorefresh for your repositories.
    ##
    ## This option has no effect for repositories with autorefresh disabled, nor for
    ## user-requested refresh.
    ##
    # repo.refresh.delay = 10
    Last edited by wolfi323; 29-Aug-2013 at 14:38. Reason: added a hint about /etc/zypp/zypp.conf

  3. #3

    Default Re: Dialup / Offline softare updates

    Perhaps that behaviour is also caused by this setting I already mentioned:
    Quote Originally Posted by wolfi323 View Post
    And you may want to change this in /etc/zypp/zypp.conf:
    Code:
    ##
    ## Amount of time in minutes that must pass before another refresh.
    ##
    ## Valid values: Integer
    ## Default value: 10
    ##
    ## If you have autorefresh enabled for a repository, it is checked for
    ## up-to-date metadata not more often than every <repo.refresh.delay>
    ## minutes. If an automatic request for refresh comes before <repo.refresh.delay>
    ## minutes passed since the last check, the request is ignored.
    ##
    ## A value of 0 means the repository will always be checked. To get the oposite
    ## effect, disable autorefresh for your repositories.
    ##
    ## This option has no effect for repositories with autorefresh disabled, nor for
    ## user-requested refresh.
    ##
    # repo.refresh.delay = 10

  4. #4
    Join Date
    May 2010
    Location
    Central USA
    Posts
    247

    Default Re: Dialup / Offline softare updates

    Quote Originally Posted by wolfi323 View Post
    Perhaps that behaviour is also caused by this setting I already mentioned:
    Not sure what I'm supposed to do with that information. My zypp.conf has that value, but I don't see it as relevant as my autorefresh is turned off in the repositories.

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

    Default Re: Dialup / Offline softare updates

    On 2013-09-03 02:06, dt30 wrote:
    >
    > wolfi323;2582452 Wrote:
    >> Perhaps that behaviour is also caused by this setting I already
    >> mentioned:

    >
    > Not sure what I'm supposed to do with that information. My zypp.conf
    > has that value, but I don't see it as relevant as my autorefresh is
    > turned off in the repositories.


    After that time, information in your repository info is old and invalid
    after that time. With your method, it might be wise to set it to 12*60
    minutes.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  6. #6
    Join Date
    May 2010
    Location
    Central USA
    Posts
    247

    Default Re: Dialup / Offline softare updates

    Quote Originally Posted by robin_listas View Post
    On 2013-09-03 02:06, dt30 wrote:
    >
    > wolfi323;2582452 Wrote:
    >> Perhaps that behaviour is also caused by this setting I already
    >> mentioned:

    >
    > Not sure what I'm supposed to do with that information. My zypp.conf
    > has that value, but I don't see it as relevant as my autorefresh is
    > turned off in the repositories.


    After that time, information in your repository info is old and invalid
    after that time. With your method, it might be wise to set it to 12*60
    minutes.
    I still don't understand. It's been days. I think it's not relevant here as I don't want it to refresh from the server but from the files I copied on. And that not the .... ...... . Maybe I'm confused. This might be regarding my issue about the Downloads not being refreshed. Even though I manually do a refresh it would ignore it if the 10 minutes hadn't passed? I'm not sure, but I think I've tried for more than 10 minutes.

  7. #7

    Default Re: Re: Dialup / Offline softare updates

    Quote Originally Posted by dt30 View Post
    I still don't understand. It's been days. I think it's not relevant here as I don't want it to refresh from the server but from the files I copied on. And that not the .... ...... . Maybe I'm confused. This might be regarding my issue about the Downloads not being refreshed. Even though I manually do a refresh it would ignore it if the 10 minutes hadn't passed? I'm not sure, but I think I've tried for more than 10 minutes.
    Well, if I understood you right, you have autorefresh off for all repos except for the one rpm downloads directory.
    And you had the problem, that YaST don't see the new rpms if you copy it in there after starting YaST.
    So that's what I mean that could be caused by that setting. YaST will not really refresh the repo for at least 10 minutes after a refresh and thus not see the new rpms (yes, that setting also applies to a plain rpm directory).

    So if that rpm download dir is the only repo with autorefresh on, you could set "repo.refresh.delay = 0" (don't forget to remove the '#', otherwise it has no effect), and new rpms should be recognized immediately.

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

    Default Re: Dialup / Offline softare updates

    On 2013-08-29 23:26, dt30 wrote:

    > It's happened again. I made a 30 mile round trip to the library (had
    > other things to do, too) to get the repodata for the updates. I noticed
    > the update date on the files was the 23rd and today was 29th. I checked
    > right before I left and the files were still the 23rd. So I tried to be
    > optimistic. By the time I got home and tried to use the files, they had
    > updated them.


    I understand the basic problem: you have a very slow connection, so you
    go to the library to do the downloads. But I don't understand the exact
    solution you try to do.

    Let me see...

    You have to remove packagekit, that's for sure.

    If I had the resources, I would "simply" download and mirror the entire
    update repo, and oss/nonoss repos, into a removable hard disk. A library
    will probably complain if you download several gigabytes on their network.

    Those 30 km are a problem...

    I can think of a solution needing two trips, unhurried.

    First, you have to replicate the structure of the update repos on your
    computer. For now, empty, only the directories. Populate only with the
    repository metadata.

    Then, reconfigure your system so that it tries to update from those
    local repositories, no internet at all.

    I think that zypper patch will work till the moment that it asks if the
    list is ok, and ask you for permission to proceed. What I'm not sure is
    if it will list the package list in sufficient detail, but the idea is
    to get that list, and make a second trip to the library and obtain those
    packages - it does not matter if they are a week old, because your
    machine has the old metadata referring to them.

    Then you put those rpms you downloaded in the library in the appropriate
    places on your computer local repository... and tell zypper to continue
    or start again.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  9. #9
    Join Date
    May 2010
    Location
    Central USA
    Posts
    247

    Default Re: Dialup / Offline softare updates

    I see I may have not been very clear. I don't take my computer to the library. It's a desktop and would be a real pain. I take a flash drive and download the repodata files by clicking on each on and saying "save". Too bad there aren't delta repodata files. I can't imagine the whole list being changed very often.

    I'm not sure packagekit is the problem. It's only a problem when I boot in 12.1 with it trying to update when I dial in. Don't I need it to update the actual files? Especially since if I can get the new list installed, I dial in and let the system download the delta rpms. It's not so bad, but some deltas are several megabytes and I can't find a way to copy the deltas on and have the system use them. When the list gets old, the deltas (and maybe the rpms) are no longer there but the new updated ones. Therefore, my system is looking for the old one in the list and can't find it.

    By the way, when I say "copy them on", I mean copy them to a download directory that is set up in my repositories.



    Now maybe I'm going about this all wrong. Makes sense to me, but maybe there's a better way. What would be nice is something I saw on the website about custom distros for installation. It lets you configure a certain setup and then you can create an ISO. When I went to install 12.3, if my 12.1 system could have instead looked at itself, caused the server to create an ISO of everything for 12.3 that I had of 12.1, it would have been very convenient. The full DVD ISO is quite big when I don't need it all. For updates, a similar thing would be nice to create an ISO of all updates. Then, a couple of times a year, or more, I could download the ISO to my flash drive, bring it home, and have my system update from it. Or, for updates, somehow to copy all the files that my specific system needs and copy them all at once in one file.

    I don't think anything like that exists now, so manually copying the repodata files, hoping I can get home fast enough, and then letting the package system download and install the needed deltas is the only way I know. And when a delta or rpm if no delta is taking way too long, I abort the process and write down the file and manually copy the rpm file the next time I go.

  10. #10
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,103

    Default Re: Dialup / Offline softare updates

    On Fri, 30 Aug 2013 17:36:02 +0000, dt30 wrote:

    > I take a flash drive
    > and download the repodata files by clicking on each on and saying
    > "save".


    I would be inclined to make a bootable flash drive to use and use rsync
    to sync the repository/repositories you want updates from.

    I actually use rsync myself so I have a local repo of the updates
    (because I have 3 machines that I update with openSUSE 12.2 updates - no
    sense in downloading the updates three times over the 'net).

    You just need to make sure you have a good sized flash drive. If your
    library won't let you boot from a flash drive, you can also install cygwin
    on the flash drive and use rsync from there.

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Page 1 of 10 123 ... LastLast

Posting Permissions

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