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

Thread: Dialup / Offline softare updates

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

    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
    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)

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

    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.

  5. #5
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    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

  6. #6
    Join Date
    Mar 2009
    Location
    United States
    Posts
    612

    Default Re: Dialup / Offline softare updates

    There used to be a project for openSUSE where all the packages needed to install codecs offline were put into a compressed archive. Then you can download the archive and unpack it to a directory. Finally add the directory as a repository.

    Perhaps something similar to that can be done for offline users. I wish I had the bandwidth to host it, I would try to spin a dvd image of the upgrade repository.

  7. #7
    Join Date
    Mar 2009
    Location
    United States
    Posts
    612

    Default Re: Dialup / Offline softare updates

    I should note unofficial project.

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

    Default Re: Dialup / Offline softare updates

    On 2013-08-30 19:36, dt30 wrote:
    >
    > 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.


    That was clear, I knew you do not take the computer to the library.

    >
    > 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?


    No.

    You were using zypper or yast. With zypper, you can tell it not to
    refresh repodata. You do not need an application that is routinely
    trying to automatically update the repodata on its own.

    --
    Cheers / Saludos,

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

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

    Default Re: Dialup / Offline softare updates

    On 2013-08-31 03:11, Jim Henderson wrote:

    > 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).


    For that, I use a shared folder over NFS, for /var/cache/zypp/packages/.
    All repos I have configured to save rpms; the first computer downloads
    them, the second reuses them. I just need not to updated two computers
    at the same time.

    --
    Cheers / Saludos,

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

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

    Default Re: Dialup / Offline softare updates

    On 2013-08-31 04:26, nightwishfan wrote:

    > Perhaps something similar to that can be done for offline users. I wish
    > I had the bandwidth to host it, I would try to spin a dvd image of the
    > upgrade repository.


    I don't know if it would fit a single DVD.

    What this people need is a method to calculate a list of files to
    download so that another computer can download it.

    Perhaps generate the list of currently installed packages, and with that
    go to the other computer, connect to find the updates, generate the
    list, and download the updates - which is much less than the entire repo.

    If this code could be javascript it would run in the browser on any
    computer or library.


    --
    Cheers / Saludos,

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

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
  •