Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: wget command help to download packages from mirror

  1. #21
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Default Re: wget command help to download packages from mirror

    Quote Originally Posted by DenverD View Post
    Jim Henderson wrote:
    > I don't see anything that makes me think this is someone asking the
    > community to do their homework for them.


    just that s/he *is* a student, and since there are only 16 files in
    that directory it is MUCH easier, rather than asking how, to just wget
    the 16 one at a time by name (or easy copy paste file names into an
    input file) and let'er rip..

    > But let's not default to that assumption without some sort of evidence -
    > we don't want to be seen as being unsupportive of people who are just
    > trying to learn how to use openSUSE. :-)


    you might note that i *did* provide a direction to go (over two hours
    before the note you responded to) as had others before i asked a
    second time if it was homework..

    or are you saying that asking after helping is somehow unsupportive?

    odd.

    what other questions would you say we should not ask?

    --
    DenverD
    CAVEAT: C A V E A T [posted via NNTP w/openSUSE 10.3]
    To copy and paste file names are not a good solution.
    Making a script may be better to do that automatically.

    Code:
    curl --list-only http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/suse/i586/
    Taking filenames from this may be an option.

  2. #22
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Default Re: wget command help to download packages from mirror

    Quote Originally Posted by please_try_again View Post
    Code:
    for pkg in $(wget -O - http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/suse/i586/ | sed -n '/alsa/s|.*href="\(.*\)\(.i586.rpm\).*|\1\2|p') ; do
        wget http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/suse/i586/$pkg 
    done
    It works ... but that might be possible to do it just with wget command line.
    man wget
    Looks nice.

  3. #23
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Default Re: wget command help to download packages from mirror

    Quote Originally Posted by DenverD View Post
    colao wrote:
    > How can i download packages with wget from that mirror with a string
    > "alsa"?


    does man wget not help?

    does the following not work? did you try it?

    Code:
    wget [option] [URL]/*alsa*
    is this homework?

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    This should not work for http://
    It is not homework.

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

    Default Re: wget command help to download packages from mirror

    On 2010-12-01 05:06, colao wrote:

    > This should not work for http://
    > It is not homework.



    I have not managed to convince wget to download a pattern via http.
    Recently I used:

    wget --continue --recursive --no-parent -A es.po \
    http://translationproject.org/PO-files/es/

    which ends in me getting the intended *.es.po files - but it actually
    downloads a lot more, like the html indexes and other auxiliary files of
    the page, which are later automatically deleted, just after downloading them.

    So yes, the most efficient method would be parsing the index page, then
    asking for download of the target files explicitly.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  5. #25
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: wget command help to download packages from mirror

    colao wrote:
    > This should not work for http://


    oh.

    > It is not homework.


    sure would have been a good assignment, huh? that is, lots of ways to
    skin that cat..

    i agree the copy paste was clumsy...i almost mentioned the possibility
    of a script to 1) collect file names 2) then pipe through grep to
    select only alsa and 3) auto build an input file to drive a fetcher..

    but since i can only dream that (and not actually construct it) i fell
    back to the clunky way i _can_ do it...fact is i'd probably use simple
    old ftp..

    tell me please--me asking if it were homework: where you offended or
    felt like your need was not being filled?

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

Page 3 of 3 FirstFirst 123

Posting Permissions

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