YFD plugin updated

A while back I introduced Yum Fast Downloader plugin, a plugin to use a download accelerator application (Aria2) to download yum metadata and packages (except delta rpms). The next step is trying to integrate such a functionality in Yum itself. However, I have not found the time to implement my ideas in yum, and the a few bugs in the plugin were found. Therefore, today I spend some time to identify and solve the known problems and a new update is already pushed into the plugin’s repository. Therefore, all of YFD users are encouraged to update their plugin ASAP. Hopefully, it should now work much better now. 🙂

Thanks for your interest,

Hedayat 🙂


16 responses to this post.

  1. Hey Hedayat, thanks for this nice Plugin. I loaded it and will give it a try. Will post my first experiences later 🙂

    greez Michael


  2. سلام آقای وطن خواه

    آقا دست شما درد نکنه
    این چیزی که نوشتی عالیییییییهه
    با سرعت مزخرف اینترنت ما یک همچین پلاگینی واقعا لازم بود


  3. I get this ‘length’ error about 25% of the time I do a download of 10+ files…

    [#1 SIZE:11.5MiB/12.1MiB(95%) CN:2 SPD:519.4KiBs ETA:1s](9more…) [TOTAL SPD:4.9MiBs]aria2c: PiecedSegment.cc:82: virtual void aria2::PiecedSegment::updateWrittenLength(int32_t): Assertion `newWrittenLength getLength()’ failed.

    I can just re-start yum upgrade afterwards and it picks up where it left off…


    • … oh.. my my os and yfd versions…. – this is fedora 17.

      uname -a
      Linux jbox 3.4.2-4.fc17.x86_64 #1 SMP Thu Jun 14 22:22:05 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux



    • This seems to be a bug/problem in aria2. There doesn’t seem to be anything I can do about. (And, I have never seen this error).


  4. might be a stupid question. but does yfd work with Centos? If so… how do I install it…. if not… why not?

    thanks – jack


    • It should. However, you might need to use Fedora 14’s yfd plugin for Centos. It depends on aria2’s version. for older aria2 versions you should use Fedora 14’s plugin. But if it has a newer aria2 version, you should be able to use the latest packages on it.


  5. latest ( as of now ) python-urlgrabber causes YFD to crash yum…

    I tested this on two different fedora 17 boxes.

    on the 2nd box… I just updated:

    python-urlgrabber.noarch 0:3.9.1-13.fc17

    and now

    yum list
    Loaded plugins: downloadonly, presto, refresh-packagekit, yum-fast-downloader
    adobe-linux-i386 | 951 B 00:00
    adobe-linux-x86_64 | 951 B 00:00
    fedora | 4.2 kB 00:00
    fedora-yum-fast-downloader | 2.9 kB 00:00
    google-chrome | 951 B 00:00
    google-earth | 951 B 00:00
    rpmfusion-free | 3.3 kB 00:00
    rpmfusion-free-updates | 3.3 kB 00:00
    rpmfusion-nonfree | 3.3 kB 00:00
    rpmfusion-nonfree-updates | 3.3 kB 00:00
    updates | 4.5 kB 00:00
    Traceback (most recent call last):


    File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 125, in doSetup
    File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 93, in retrieveAllMD
    repo._retrieveMD(nmdtype, async=True, failfunc=failfunc)
    TypeError: myRetrieveMD() got an unexpected keyword argument ‘async’

    you have to disable the yfd to use yum again.



  6. is there an easy way ( or can it be added ) to get less debug messages? Things about caches getting updated might be nice to know… but I’d like to be able to not see those
    debug / status messages if I want a more quiet / streamlined yum update.



  7. These are the messages I see on my screen for just 3 yum repo cache files getting updated…

    Downloading (updates) repodata/c5cc8d2ffdcb246144bbdef2350d10ff0aad4d2c8fe69a3666d68345da40626c-primary.sqlite.bz2

    2012-07-07 07:34:19.742972 NOTICE – ServerStat file /var/cache/yum/x86_64/17/aria2c_server_stats loaded successfully.
    [#1 SIZE:3.2MiB/4.2MiB(77%) CN:3 SPD:2.1MiBs]
    2012-07-07 07:34:20.896894 NOTICE – Download complete: /var/cache/yum/x86_64/17/updates/c5cc8d2ffdcb246144bbdef2350d10ff0aad4d2c8fe69a3666d68345da40626c-primary.sqlite.bz2.yfd

    2012-07-07 07:34:20.897412 NOTICE – ServerStat file /var/cache/yum/x86_64/17/aria2c_server_stats saved successfully.

    Download Results:
    gid|stat|avg speed |path/URI
    1| OK| 3.9MiB/s|/var/cache/yum/x86_64/17/updates/c5cc8d2ffdcb246144bbdef2350d10ff0aad4d2c8fe69a3666d68345da40626c-primary.sqlite.bz2.yfd

    Status Legend:
    (OK):download completed.

    Downloading (rpmfusion-free-updates) repodata/85d82bd39bcd7d78b00641e34a2834a887ebbb08231a92eb95486f46601012e0-primary.sqlite.bz2

    2012-07-07 07:34:21.030478 NOTICE – ServerStat file /var/cache/yum/x86_64/17/aria2c_server_stats loaded successfully.

    2012-07-07 07:34:21.272228 NOTICE – Download complete: /var/cache/yum/x86_64/17/rpmfusion-free-updates/85d82bd39bcd7d78b00641e34a2834a887ebbb08231a92eb95486f46601012e0-primary.sqlite.bz2.yfd

    2012-07-07 07:34:21.272705 NOTICE – ServerStat file /var/cache/yum/x86_64/17/aria2c_server_stats saved successfully.

    Download Results:
    gid|stat|avg speed |path/URI
    1| OK| 538.0KiB/s|/var/cache/yum/x86_64/17/rpmfusion-free-updates/85d82bd39bcd7d78b00641e34a2834a887ebbb08231a92eb95486f46601012e0-primary.sqlite.bz2.yfd

    Status Legend:
    (OK):download completed.

    Downloading (rpmfusion-nonfree-updates) repodata/74a8bd98ef32c3a10ce0d055cb633a3877270fc3331a200e979501ed31388704-primary.sqlite.bz2

    2012-07-07 07:34:21.380640 NOTICE – ServerStat file /var/cache/yum/x86_64/17/aria2c_server_stats loaded successfully.

    2012-07-07 07:34:21.579505 NOTICE – Download complete: /var/cache/yum/x86_64/17/rpmfusion-nonfree-updates/74a8bd98ef32c3a10ce0d055cb633a3877270fc3331a200e979501ed31388704-primary.sqlite.bz2.yfd

    2012-07-07 07:34:21.579929 NOTICE – ServerStat file /var/cache/yum/x86_64/17/aria2c_server_stats saved successfully.

    Download Results:
    gid|stat|avg speed |path/URI
    1| OK| 336.3KiB/s|/var/cache/yum/x86_64/17/rpmfusion-nonfree-updates/74a8bd98ef32c3a10ce0d055cb633a3877270fc3331a200e979501ed31388704-primary.sqlite.bz2.yfd
    how about just seeing:

    1| OK| 3.9MiB/s|/var/cache/yum/x86_64/17/updates/c5cc8d2ffdcb246144bbdef2350d10ff0aad4d2c8fe69a3666d68345da40626c-primary.sqlite.bz2.yfd
    1| OK| 538.0KiB/s|/var/cache/yum/x86_64/17/rpmfusion-free-updates/85d82bd39bcd7d78b00641e34a2834a887ebbb08231a92eb95486f46601012e0-primary.sqlite$
    1| OK| 336.3KiB/s|/var/cache/yum/x86_64/17/rpmfusion-nonfree-updates/74a8bd98ef32c3a10ce0d055cb633a3877270fc3331a200e979501ed31388704-primary.sql$


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: