Home > Fedora, Linux > Welcome updates

Welcome updates


The updates are rolling again welcome, i updated a couple of my systems and it went very smooth. Thanks for the hard work of the infrastructure team, they did a lot of work to make smooth ride for the users.


I have just installed the background packages with Fedora 10 backgrounds, Martin blogged about, i must say they look so damm good, so i can’t choose the one i like most, great works from the Art team, Thanks.


The PackageKit yum backed have been hunting me for a while, not because the code is bad, but because of the way a spawned PackageKit backend work, it works by having one small python script for each api call that PackageKit supports ‘search-name, search-file, update-system, install-packages etc’. what the scripts does is to import a shared yumBackend module and call the method that is doing the action. The problem with this approch is that, every time PackageKit does a single action, yum has to be initialized, it don’t take long because of most stuff is loaded from the yum cache, but some features i PackageKit does a lot of calls and then perfomance really hurts.

The way to fix it, was to find a way to not initialize yum on every call,  Then i got the idea what if we could start some kind of dispatcher that listen to stdin for commands and parameters and then call the right methods to do the actions. then we could do multiple actions without initializing yum every time. I did the basics to the backend code so it supported a dispatcher taking multiple commands until it got an exit command. For this stuff to work, some changes needed to be done in the PackageKit C backend, to not just spawn a new script everytime, but keep it alive and just push commands into stdin.
I pinged Richard Hughes one friday afternoon and he liked the idea, so after a couple of hours of hacking, we had the basic pieces kicked into shape. One of the mayor issues was that we don’t what to lock yum for a longer period of time, because it use memory and locks out other application from using the yum API.
So it was made so that the C backend, keep the dispatcher alive until it has been idle for 5s, and then close it time.

The new way of doing thing has been released in PackageKit 0.3.2 currently in rawhide and it will hopefully give the user a better expericens for PackageKit i Fedora 10.yum –enablerepo=rawhide update PackageKit
It is easy to test in Fedora 9 too, just do a

yum –enablerepo=rawhide update PackageKit

It will only pull the updated PackageKit packages, not any other rawhide stuff.

Categories: Fedora, Linux Tags: , ,
  1. pokeron
    September 11, 2008 at 13:54

    Hello Tim

    Maybe a slip of the ‘pen’

    yum –enablerepo=rawhide update PackageKit

    thanks 🙂

  2. pokeron
    September 11, 2008 at 13:59


    I can see it’s not a slip of the pen but the two dashes apears to me as one dash on the screen. When I entered the command in this box it looks like two ‘- -‘ but after submitting the reply is changed into one dash.
    Sorry for the complain 😦

  1. No trackbacks yet.

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: