Page 3 of 10 FirstFirst 12345 ... LastLast
Results 21 to 30 of 100

Thread: Dialup / Offline softare updates

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

    Default Re: Dialup / Offline softare updates

    On 2013-09-02 01:46, dt30 wrote:
    >
    > robin_listas;2582093 Wrote:
    >> 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.


    > I know I've been shown how to get a list of installed packages, and I
    > assume it could be a list of needed to update packages? But either way,
    > having a current system list, and if the server could take that list,
    > know what the updates need to be, then generate a one or few file custom
    > file package for download within a limited time would be great! Think
    > there's any chance of that becoming a possibility?


    Well, if there is a developer with the proper set of abilities, yes, I
    believe so.

    Another posibility is sending the list of current packages and versions
    to a friend, by email or whatever, and this one responding with a list
    of updates. Then it does not need to be javascript.

    I think it is doable. But you need to interest somebody with those
    skills, and free time. If you can show that there are a fair number of
    people with that same problem, it is easier to interest someone.


    Hold on... I have a faint idea... Under "/var/lib/rpm/" there is a
    database of packages. If it were possible to trick zypper on another
    computer to work with a different path of rpms than his own...

    It is just a vague idea, of the kind that occur at 3 AM. I don't know if
    I make any sense.

    If this were possible, any of us could calculate a list of updates for
    you. Maybe zypper devs could think it further. Try the zypper mail list?

    > Could javascript download a bunch of files automatically to a local
    > flashdrive without being a security issue?


    Maybe. :-?

    Or simply display or generate an html page of links to click on, each of
    them a file. One by one, at your leisure :-)

    --
    Cheers / Saludos,

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

  2. #22
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,832
    Blog Entries
    15

    Default Re: Dialup / Offline softare updates

    On Mon 02 Sep 2013 12:06:03 AM CDT, dt30 wrote:


    Regarding symbolic links, I had put one in my user/Downloads/12.1
    directory to user/Downloads/phpMyAdmin since that goes across mulitiple
    OS versions. However, the Software Management could not see the
    symbolic links. Should that work? Or is it better I put their symbolic
    links in the var/cache/zypp/packages?


    Hi
    You do realize that you can create a local repository with your updates
    as a plain rpm directory? You do realize that zypper can be configured
    for delta rpms specifically for dial up access?

    A simple solution is to run for example winscp as a portable app on
    your usb device;
    http://portableapps.com/apps/internet/winscp_portable
    There are no huge files so the USB device could be vfat.

    Then copy down the files via ftp for <your_arch>, noarch and nosrc and
    dump all in the same directory. There are probably options on winscp to
    exclude existing files.

    Find a mirror that's close to your location from here to use as the
    download location;
    http://mirrors.opensuse.org/list/12.3.html

    You can even use yast2-add-on-creator to create a proper repository of
    those rpms all packed up into an iso image for use on multiple
    machines...

    I'm not sure if there is an rsync portable app, but something like
    works;
    Code:
    rsync -rltpuzi --stats --progress --delete --ignore-existing \
    --delete-excluded --exclude "*.drpm" --exclude "i586/" --exclude \
    "i686/" --exclude "src/" \
    rsync://mirrors.nl.eu.kernel.org/opensuse/update/12.3/ \
    ~/scratch/rsync_test
    You could swap that and only grab the delta rpms for a shorter
    download either via rsync or ftp.

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 12.3 (x86_64) GNOME 3.8.4 Kernel 3.7.10-1.16-desktop
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...


  3. #23
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,832
    Blog Entries
    15

    Default Re: Dialup / Offline softare updates

    On Sat 31 Aug 2013 02:26:02 AM CDT, nightwishfan wrote:


    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.


    Hi
    yast2-add-on-creator and yast2-product-creator are the tools for
    this.... create an iso image and host that, the iso image can be added
    as a local repository....

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 12.3 (x86_64) GNOME 3.8.4 Kernel 3.7.10-1.16-desktop
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...


  4. #24
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,059

    Default Re: Dialup / Offline softare updates

    On Sun, 01 Sep 2013 22:46:02 +0000, dt30 wrote:

    > This sounds interesting. After doing a man rsync, it kind of reminds me
    > of looking at the rpm documentation. Pages after pages of options on a
    > command I have no idea what it does!


    rsync -avz --progress --exclude='*.src.rpm' rsync://mirrors1.kernel.org/
    opensuse/update/12.2 [dest directory]

    (replace "[dest directory]" with the path you want to write the data to)

    Excluding the src.rpm files will reduce the amount of stuff you download
    - the src.rpm files generally aren't needed unless you're doing
    development work on a particular package or want to build it from source
    for some reason.

    https://en.wikipedia.org/wiki/Rsync is a good resource, too, and explains
    features of the rsync protocol.

    > I could not tell from the
    > description if it only does deltas on the whole directory or pieces of
    > files. If it can do pieces of files, for example ....filelists.xml.gz,
    > and only copy over and merge the changes, I would like to know more
    > information about how to do it. I imagine this could work with my
    > dialup.


    It does do block-based deltas if you use the rsync: protocol (as in the
    example above), but compressed files generally won't work because
    changing the contents and re-compressing ends up often with a different
    file entirely.

    > As far as booting to a flash drive at the library, that would be frowned
    > upon. I don't know much about cygwin. Seems like I recall some sort of
    > emulator, but I never knew you could use it without installing it or
    > booting it.


    Cygwin is *nix utilities for Windows. Have a search for "cygwin
    portable" for a version that doesn't require installation.

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

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

    Default Re: Dialup / Offline softare updates

    On 2013-09-02 06:15, Jim Henderson wrote:
    > On Sun, 01 Sep 2013 22:46:02 +0000, dt30 wrote:


    > rsync -avz --progress --exclude='*.src.rpm' rsync://mirrors1.kernel.org/
    > opensuse/update/12.2 [dest directory]
    >
    > (replace "[dest directory]" with the path you want to write the data to)
    >
    > Excluding the src.rpm files will reduce the amount of stuff you download
    > - the src.rpm files generally aren't needed unless you're doing
    > development work on a particular package or want to build it from source
    > for some reason.


    You can also exclude the 1586 and i686 directories if you have a 64 bit
    system, and viceversa.

    --
    Cheers / Saludos,

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

  6. #26
    Join Date
    May 2010
    Location
    Central USA
    Posts
    236

    Default Re: Dialup / Offline softare updates

    Quote Originally Posted by hendersj View Post
    rsync -avz --progress --exclude='*.src.rpm' rsync://mirrors1.kernel.org/
    opensuse/update/12.2 [dest directory]
    ...
    It does do block-based deltas if you use the rsync: protocol (as in the
    example above), but compressed files generally won't work because
    changing the contents and re-compressing ends up often with a different
    file entirely.
    Well, I see a problem. I tried it here on my desktop and realized I made some mistaken assumptions. The repodata files have a unique number in front of them. So of course, when I ran the rsync command, it was a new file. Just wanting to try it, I got the full unique name of the 14MB primary.xml.gz file it was downloading, stopped the download, renamed the old primary.xml.gz file to the new name, and started rsync back up. It still said the estimated time was over an hour for that one file. I let it run for several minutes hoping it would skip ahead, but like you said, the re-compression probably resulted in too many differences inside. I did try it explicitly with the filelists.xml file thinking it may be "cleaner", but still estimated over an hour for the 16MB file.

    So, besides the unique filename issue and the fact it downloads the whole file, rsync doesn't seem to be useful for this portion of the problem. I do know a new command now, and it may be useful for some other things I might want to do.

  7. #27
    Join Date
    May 2010
    Location
    Central USA
    Posts
    236

    Default Re: Dialup / Offline softare updates

    Quote Originally Posted by robin_listas View Post
    So far I had no need to develop a method going to a library with a disk
    only. I know how to do it from one computer to another using a disk, but
    one near to the other, not across 30 KM. My method needs two trips minimum.
    Looking back at your method:
    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.
    Have I not accomplished this portion, the first part? I went to the library, downloaded onto my flash drive the repodata (*.xml.gz, repomd.xml, etc.), and brought it back home. And I copied them into the raw directory. (/var/cache/zypp/raw/repo-update/repodata/)

    Getting the system to update or acknowledge them is the point where I have failed and am not sure what to do. For how can I get the filelists for the second trip if it won't even see the new metadata? I didn't know about the databases in "/var/lib/rpm/". Sounds like they probably need to be told to update themselves.

    Since Yast, Zypper, and rpm are all separate things, is there one of them that says to update these rpm databases from the repodata I just got from the library?

  8. #28
    Join Date
    May 2010
    Location
    Central USA
    Posts
    236

    Default Re: Dialup / Offline softare updates

    Quote Originally Posted by malcolmlewis View Post
    Hi
    You do realize that you can create a local repository with your updates
    as a plain rpm directory? You do realize that zypper can be configured
    for delta rpms specifically for dial up access?
    I do have plain rpm directories for when I manually download and copy the rpm files from the library. But the repodata files change before I get home and I put them in the raw directory.

    I did not know about zypper being configured for delta rpms and for dialup access. I had downloaded some deltas at the library and placed them in my plain download directory, but the Yast software management ignored them. Could you tell me more?

    A simple solution is to run for example winscp as a portable app on
    your usb device;
    WinSCP Portable | PortableApps.com - Portable software for USB, portable and cloud drives
    There are no huge files so the USB device could be vfat.
    It's just a simple memory stick flash drive. But I might still be able to run it.

    You can even use yast2-add-on-creator to create a proper repository of
    those rpms all packed up into an iso image for use on multiple
    machines...
    Tell me more about these. Wouldn't they create an ISO on my local computer? And then what would I do? Or are they useful if I had multiple machines to copy them around on? What I need when an upgrade comes along is for my system to create a lists of files and then have the server (OpenSUSE's) create the ISO of the files needed for my specific system. This is much easier than trying to download 4GB of stuff I don't use. I saw one place on the website where you could create a custom ISO system, but cannot find it again for giving the example. I need it different in that instead of for a fixed setup, it is specific for my current system setup which may change tomorrow if I install something else.

  9. #29
    Join Date
    May 2010
    Location
    Central USA
    Posts
    236

    Default Re: Dialup / Offline softare updates

    By the way, don't know if this is connected, but in my plain rpm downloads directory, when I copy on new packages and go into Software Management, I can see the new packages. But if I go into it first, and then realize I need to copy on the packages, I have a hard time getting the system to refresh it's list.

    I exit, go back in, and it's still the old. I run Software Repositories, refresh my local repository which is the only one set for autorefresh, go back to the Management, and it's still the old. This has been an issue from 11.2 on. In 12.1, I thought sometimes, if I move the cursor onto another repository first, click back to my Downloads, click on refresh, then click on Refresh all autorefreshed, move the cursor a few more times and do refresh again, sometimes, it lists the new files. A lot of times I give up and say I'll install it tomorrow. On booting up, everything is fine. I've always meant to log out and log back in to see if that helps, but never remember to try it. I remember more often to make sure I copy all my files on before loading the software management.

  10. #30

    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

Page 3 of 10 FirstFirst 12345 ... 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
  •