From Fedora Project Wiki
yum -y install git glib2-devel dbus-devel dbus-glib-devel pam-devel libX11-devel libsexy-devel xmlto sqlite-devel NetworkManager-glib-devel PolicyKit-devel libtool docbook-utils gnome-doc-utils python-devel perl(XML::Parser) intltool gettext xulrunner-devel libarchive-devel gstreamer-devel gstreamer-plugins-base-devel qt4-devel cppunit-devel pango-devel fontconfig-devel
git clone git://anongit.freedesktop.org/git/packagekit/PackageKit
cd PackageKit
git pull
mkdir ~/.root
./autogen.sh --enable-maintainer-mode --enable-gtk-doc --prefix=~/.root --enable-yum --enable-yum2 --enable-dummy --enable-docbook-docs --enable-tests --enable-developer --enable-local --with-default-backend=yum
make && make install
cd src
sudo ./run-pk.sh yum
(in another tab)
cd PackageKit
cd client
./pkcon search name git
For gnome-packagekit
git clone git://people.freedesktop.org/~hughsient/gnome-packagekit
cd gnome-packagekit
mkdir ~/.root
yum -y install libgnomeui-devel libglade2-devel libwnck-devel dbus-devel libnotify-devel gnome-panel-devel scrollkeeper gnome-doc-utils desktop-file-utils gettext libtool cairo-devel startup-notification-devel perl(XML::Parser) gnome-doc-utils gnome-menus-devel libsexy-devel PackageKit-devel PolicyKit-gnome-devel unique-devel intltool xorg-x11-proto-devel fontconfig-devel
./autogen.sh --prefix=/home/hughsie/.root --enable-tests --enable-gtk-doc
make && make install
cd src
killall gpk-update-icon
./gpk-update-icon -v
In another tab:
cd src
./gpk-application -v
For KPackageKit:
yum -y install svn cmake desktop-file-utils kde-filesystem kdelibs4-devel PackageKit-qt-devel
svn co svn://anonsvn.kde.org/home/kde/trunk/playground/sysadmin/kpackagekit
mkdir ~/.root
cd kpackagekit
cmake -DCMAKE_INSTALL_PREFIX=~/.root .
make
make install
cd KPackageKit
kpackagekit
Any problems, please send a message to the mailing list: http://lists.freedesktop.org/mailman/listinfo/packagekit