Results 1 to 3 of 3

Thread: Configure zypper to download packages with metalinks (meta4)

  1. #1
    Join Date
    Jan 2012
    Location
    BC
    Posts
    178

    Question Configure zypper to download packages with metalinks (meta4)

    Evening forum.

    I have zypper 1.6.18 and aria2c 1.14.0 and was wondering if its possible to get zypper, when downloading rpm's, to use the metalinks provided in the opensuse repository (if available).

    I have done...
    Code:
    export ZYPP_ARIA2C=1
    zypper refresh
    zypper in <packages>
    ...but noticed that when I download using just "aria2c -M http://software.opensuse.org/package.rpm.meta4" my download speed is increased. I don't get the same speeds when enabling the previous variable and running zypper to download the packages.

    Not sure what else I need to change.

    I noticed that in the /var/cache/zypp dir there is a file called aria2.stats - Here's a snippet:
    ...
    ...
    host=distro.ibiblio.org, protocol=http, dl_speed=11097, sc_avg_speed=11097, mc_avg_speed=0, last_updated=1327125033, counter=1, status=OK
    host=download.opensuse.org, protocol=http, dl_speed=16323, sc_avg_speed=17521, mc_avg_speed=0, last_updated=1327128603, counter=32, status=OK
    host=ftp.esat.net, protocol=http, dl_speed=8948, sc_avg_speed=8948, mc_avg_speed=0, last_updated=1327128475, counter=1, status=OK
    host=ftp.heanet.ie, protocol=http, dl_speed=797, sc_avg_speed=797, mc_avg_speed=0, last_updated=1327128463, counter=1, status=OK
    host=ftp.nux.ipb.pt, protocol=http, dl_speed=1581, sc_avg_speed=1581, mc_avg_speed=0, last_updated=1327128622, counter=1, status=OK
    ...
    ...
    Downloading via metalinks allows me to get the full potential of my slow speed internet @ 60KB/sec.

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

    Default Re: Configure zypper to download packages with metalinks (meta4)

    On 2012-01-21 09:26, saultdon wrote:
    >
    > Evening forum.
    >
    > I have zypper 1.6.18 and aria2c 1.14.0 and was wondering if its
    > possible to get zypper, when downloading rpm's, to use the metalinks
    > provided in the opensuse repository (if available).


    Hold on. My understanding is that zypper does this by default. At least,
    this is what the devs said some time ago, but the errors do not match this.
    And they dropped aria2c as downloader to something else. You can see in the
    logs what they actually use, I think.

    >
    > I have done...
    >
    > Code:
    > --------------------
    > export ZYPP_ARIA2C=1
    > zypper refresh
    > zypper in <packages>
    > --------------------
    >
    >
    > ..but noticed that when I download using just "aria2c -M
    > http://software.opensuse.org/package.rpm.meta4" my download speed is
    > increased. I don't get the same speeds when enabling the previous
    > variable and running zypper to download the packages.


    Interesting.

    This is a question to ask the zypper devs. You could try the standard
    opensuse mail list, and if no answer, the factory mail list. I don't know
    offhand if there is a zypper list, perhaps.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  3. #3
    Join Date
    Jan 2012
    Location
    BC
    Posts
    178

    Default Re: Configure zypper to download packages with metalinks (meta4)

    Thanks for the info, I'll continue to ask around on the mailing lists.

Tags for this Thread

Posting Permissions

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