PDA

View Full Version : PolicyKit, DeviceKit, PackageKit...Where is it all going?



ghindo
February 16th, 2009, 11:35 PM
I've noticed that all of these new projects coming out - PackageKit (http://en.wikipedia.org/wiki/PackageKit), DeviceKit (http://en.wikipedia.org/wiki/DeviceKit), PolicyKit (http://en.wikipedia.org/wiki/PolicyKit), ConsoleKit (http://freedesktop.org/wiki/Software/ConsoleKit) - but my question is, where are they all going? Are all of these projects leading to a more unified Linux desktop? Are they helping at all? How are they related?

cardinals_fan
February 16th, 2009, 11:43 PM
I've noticed that all of these new projects coming out - PackageKit (http://en.wikipedia.org/wiki/PackageKit), DeviceKit (http://en.wikipedia.org/wiki/DeviceKit), PolicyKit (http://en.wikipedia.org/wiki/PolicyKit), ConsoleKit (http://freedesktop.org/wiki/Software/ConsoleKit) - but my question is, where are they all going? Are all of these projects leading to a more unified Linux desktop? Are they helping at all? How are they related?
I personally think that PackageKit is an utter abomination that should be sacrificed to the fiery bowels of a volcano. So I don't use it.

OutOfReach
February 16th, 2009, 11:46 PM
All I know is that DeviceKit is an alternative to HAL. I haven't used it, but I heard good things.

ghindo
February 16th, 2009, 11:47 PM
I personally think that PackageKit is an utter abomination that should be sacrificed to the fiery bowels of a volcano. So I don't use it.I've never actually used PackageKit, so why do you say that? I would think that a unified front-end for various package managers would be a good thing.

Slug71
February 16th, 2009, 11:57 PM
All I know is that DeviceKit is an alternative to HAL. I haven't used it, but I heard good things.

Devicekit is going to replace HAL.

I like Packagekit. Its still in development though so i dont know how people can complain about it. Write to the devs/maintainers and let them no what you want or what is wrong and maybe they will do something about it.
I bet in a couple years when most distros or at least the big ones have it by default, no other frontend will be able to touch it.

cardinals_fan
February 16th, 2009, 11:58 PM
I've never actually used PackageKit, so why do you say that? I would think that a unified front-end for various package managers would be a good thing.
The problem isn't so much with PackageKit as it is with all the distros who have jumped on the bandwagon when it is not anywhere near ready yet. PackageKit holds the award for the buggiest piece of software I've ever tried to use. Every system I've used it on (Fedora, Foresight, openSUSE) has had issues. The package manager crashes randomly, but the biggest issue is the update-applet-thingy. It was very unstable, used a ton of resources, and essentially grabs control of the system. Example: I had a clean new Fedora install. I wanted to update it. The PackageKit update icon sat there in the corner for five minutes apparently doing nothing, so I opened up a shell and tried to update with yum. No can do because PackageKit had control over the system. Finally it popped up an upgrade box, then proceded to crash halfway through the update.

To be quite frank, I don't see the point. The biggest "issue" regarding Linux packaging is the existence of different formats (something I don't personally oppose), and PackageKit does nothing there. All it does is provide the same GUI for many different underlying systems.

Skripka
February 17th, 2009, 12:05 AM
The problem isn't so much with PackageKit as it is with all the distros who have jumped on the bandwagon when it is not anywhere near ready yet. PackageKit holds the award for the buggiest piece of software I've ever tried to use. Every system I've used it on (Fedora, Foresight, openSUSE) has had issues. The package manager crashes randomly, but the biggest issue is the update-applet-thingy. It was very unstable, used a ton of resources, and essentially grabs control of the system. Example: I had a clean new Fedora install. I wanted to update it. The PackageKit update icon sat there in the corner for five minutes apparently doing nothing, so I opened up a shell and tried to update with yum. No can do because PackageKit had control over the system. Finally it popped up an upgrade box, then proceded to crash halfway through the update.

To be quite frank, I don't see the point. The biggest "issue" regarding Linux packaging is the existence of different formats (something I don't personally oppose), and PackageKit does nothing there. All it does is provide the same GUI for many different underlying systems.

Must I say "I agree1111!!!!!!" or can I just say "+1"?

PackageKit is worse than the new Adept at finding things you have already installed on your machine.

ghindo
February 17th, 2009, 12:36 AM
All I know is that DeviceKit is an alternative to HAL. I haven't used it, but I heard good things.I found this (http://lists.freedesktop.org/archives/hal/2008-May/011560.html), which details DeviceKit pretty thoroughly, and why it's replacing HAL. Interesting stuff.

bruce89
February 17th, 2009, 12:39 AM
PackageKit is worse than the new Adept at finding things you have already installed on your machine.

The great thing about Free Software is the fact it improves.

You missed out WebKit (only the name is similar in this case).

cardinals_fan
February 17th, 2009, 12:48 AM
The great thing about Free Software is the fact it improves.
Not necessarily. Because the source is available, floundering projects with promising ideas will generally fork and grow, but that doesn't mean that everything gets better all the time.

Skripka
February 17th, 2009, 12:49 AM
The great thing about Free Software is the fact it improves.


Except in the case of Adept...which is going extinct, and unfortunately Kubuntu is moving to kPackageKit instead.....Grrrrrrrrrrrrrrrrrrrrrrrrrrrrr.

Oh well, I needed a kick in the pants to try out Arch and KDEmod.

Polygon
February 17th, 2009, 01:01 AM
i tried adept when i tried kubuntu. its laughably bad compared to synaptic.

lzfy
February 17th, 2009, 01:38 AM
Except in the case of Adept...which is going extinct, and unfortunately Kubuntu is moving to kPackageKit instead.....Grrrrrrrrrrrrrrrrrrrrrrrrrrrrr.

Oh well, I needed a kick in the pants to try out Arch and KDEmod.

Adept on KDE3 was ok, but on KDE4 it's the worst piece of software I've ever used.

ghindo
February 17th, 2009, 05:56 AM
PackageKit seems to have a lot more potential than Adept, as it's become the default yum front-end for Fedora, and seems to have the full blessing of freedesktop.org. Is there any word about Ubuntu incorporating it?

HermanAB
February 17th, 2009, 06:31 AM
The only problem I have with these projects is the use of XML for configuration files, since it is impossible to edit XML by hand.

Cheers,

Herman

ghindo
February 17th, 2009, 06:44 AM
The only problem I have with these projects is the use of XML for configuration files, since it is impossible to edit XML by hand.

Cheers,

HermanI thought that XML was sort of becoming the defacto standard for these types of things. I would have thought that this sort of standardization would be a good thing? After all, it seems better to have a W3C recommendation than a different type of configuration file for almost every program.

RiceMonster
February 17th, 2009, 06:50 AM
The only problem I have with these projects is the use of XML for configuration files, since it is impossible to edit XML by hand.

Cheers,

Herman

Agreed. I hate it when stuff stops working, and I have to add some obscure XML stuff to a file to fix it.

gnomeuser
February 17th, 2009, 11:17 AM
I've noticed that all of these new projects coming out - PackageKit (http://en.wikipedia.org/wiki/PackageKit), DeviceKit (http://en.wikipedia.org/wiki/DeviceKit), PolicyKit (http://en.wikipedia.org/wiki/PolicyKit), ConsoleKit (http://freedesktop.org/wiki/Software/ConsoleKit) - but my question is, where are they all going? Are all of these projects leading to a more unified Linux desktop? Are they helping at all? How are they related?

PackageKit aside giving us one set of tools to manage packages will give application developers an interface to install things on demand. Now you can see this in gstreamer capable multimedia applications which will search for the required plugins and offer to install them. Work is also being done to let the command line install app when the typed command is not found, fonts on demand and so on. Before we had a unifying framework for this applications could not rely on such functionality. In the end this will lead to a slimmer desktop with only what you need installed, when you need it.

ConsoleKit handles seats, it is needed to make things like fast user switching work correctly. Imagine user 1 and 2 switching, user 1 is using the sound card when user 2 is switched to.. what happens to the state of the soundcard and how do we handle switching back.

PolicyKit allows us to directly elevate a single task to a higher level of privilage. You get a fine grained system for setting policy for users. Say user 1 may update the system and alter the system time but he may not remove packages or install new packages. This is instead of elevating the entire application, meaning that the toolkit and everything runs as root - which is bad for security. For a single user machine you still benefit as you get to set the things you never want to be asked to authenticate for.

DeviceKit is the replacement for HAL, HAL is good at it's job but a lot of functionality has snuck in there that is a duplicate of things like udev. It is also quite a cluttered codebase. DeviceKit is a smaller, neater codebase with a cleaner interface. Every bit of functionality is then added as modules, so we have DeviceKit-disks and DeviceKit-power today. As a user you shouldn't notice the switch, functionality is retained at a desktop level as well as expanded. E.g. we have been able to pull out a bunch of code from gnome-power-manager making it cleaner and more reliable, there is also being added such things as SMART notifications for harddrive problems and a new module for nautilus that uses DeviceKit-disks to format inserted media. This list will naturally grow as work progresses.

In short, these are all pieces of the puzzle to allow the desktop to function more uniformly, with greater reliablity and functionality.

lzfy
February 17th, 2009, 11:28 AM
PackageKit seems to have a lot more potential than Adept, as it's become the default yum front-end for Fedora, and seems to have the full blessing of freedesktop.org. Is there any word about Ubuntu incorporating it?

It's available with the latest beta of Kubuntu, don't know about Ubuntu though.

Slug71
February 17th, 2009, 03:54 PM
PackageKit seems to have a lot more potential than Adept, as it's become the default yum front-end for Fedora, and seems to have the full blessing of freedesktop.org. Is there any word about Ubuntu incorporating it?

Adept is being dropped for Kpackagekit for 9.04 if i'm correct. If not then definitely 9.10.

Packagekit will also make its way to Ubuntu by default in 9.10.

Skripka
February 17th, 2009, 04:02 PM
Adept is being dropped for Kpackagekit for 9.04 if i'm correct. If not then definitely 9.10.

Packagekit will also make its way to Ubuntu by default in 9.10.

I think for 9.04 at least on Kubuntu, as all development on Adept has ceased. Too bad-PackageKit is one of the reasons I tried Fedora10 and hated it.

The new Adept was really flakey...I've tried KpackageKit from the repos and it is gawd awful-Adept at least had a pretty GUI and you could make a fair amout of sense, even if it couldn't find any packages installed on your system.

One of the reasons I tried Fedora10, and it didn't live on my machine longer than an hour-was due to how bad PackageKit is.

Niether of these tools in the Ubuntu repos, in their current state of development, is even in the same league of functionality and reliability as Synaptic on *Buntu.

Polygon
February 17th, 2009, 04:30 PM
surely synaptic development is still going on, and you can just apt-get install synaptic and use that instead of packagekit.

ssam
February 17th, 2009, 06:22 PM
it is impossible to edit XML by hand.

< :-) >
i used to have that problem with ascii files. you just miss out one bit and then you characters all get shifted. really fiddly.

then i discovered 'text editors'. they let you enter a letter with a single keystroke. every time i save the file i can be sure that the output will be a valid ascii file.

</ :-) >

if you are editing XML files with a text editor, then that would be hard. you need something that makes it impossible to write something that is not valid XML.

Vadi
February 17th, 2009, 06:28 PM
The *Kit thing is just a naming scheme used by one particular programmer.

PackageKit is probably one the less useful tool out of the family - it's aim is to create a single interface for different package formats. No, this does not mean that a single distro will support multiple package formats. All it means is that all distros, with their different package formats, will have the same interface.

Quite stupid if you ask me. Something like... a single package format would have been way more productive.

RiceMonster
February 17th, 2009, 06:33 PM
< :-) >
i used to have that problem with ascii files. you just miss out one bit and then you characters all get shifted. really fiddly.

then i discovered 'text editors'. they let you enter a letter with a single keystroke. every time i save the file i can be sure that the output will be a valid ascii file.

</ :-) >

if you are editing XML files with a text editor, then that would be hard. you need something that makes it impossible to write something that is not valid XML.

I don't think he meant literally impossible, I think he was saying it's a bit of a pain, which is the case of PolicyKit, it really is.

Slug71
February 17th, 2009, 07:27 PM
surely synaptic development is still going on, and you can just apt-get install synaptic and use that instead of packagekit.

From what i understand, Synaptic will still be there.

Just add/remove and Update Manager will be replaced by Packagekit's.

Slug71
February 17th, 2009, 07:35 PM
The *Kit thing is just a naming scheme used by one particular programmer.

PackageKit is probably one the less useful tool out of the family - it's aim is to create a single interface for different package formats. No, this does not mean that a single distro will support multiple package formats. All it means is that all distros, with their different package formats, will have the same interface.

Quite stupid if you ask me. Something like... a single package format would have been way more productive.

Again, Packagekit is still in development. Once it becomes adopted more across the board i think you will see development for it move along a lot faster and become a lot more stable too. Distros will probably be able to customize the interface to make it unique to them too.

A cross-distro frontend is a big step forward for Linux and its package management IMO.

Next we just need a backend to become cross-distro. I think that may happen with Smart Package Manager.

Once that happens and they are nicely tied in with each other i think we may see a universal package format become available while still being able to use native packages.

Dekkon
February 17th, 2009, 07:46 PM
I've noticed that all of these new projects coming out - PackageKit (http://en.wikipedia.org/wiki/PackageKit), DeviceKit (http://en.wikipedia.org/wiki/DeviceKit), PolicyKit (http://en.wikipedia.org/wiki/PolicyKit), ConsoleKit (http://freedesktop.org/wiki/Software/ConsoleKit) - but my question is, where are they all going? Are all of these projects leading to a more unified Linux desktop? Are they helping at all? How are they related?

There will never be a unified desktop, sadly, people have to work to create there own projects instead of creating one or two good products.

Quality over quantity is just something I believe the open-source community does not understand.

ghindo
February 17th, 2009, 07:47 PM
Quite stupid if you ask me. Something like... a single package format would have been way more productive.I would be really surprised if a single package format ever happened. Every different package format has its advantages, disadvantages, advocates and haters. It would be virtually impossible to unify the Linux community with one package format.

On the other hand, attempting to standardize the front-end for all of these various package management systems seems much more realistic.

Dekkon
February 17th, 2009, 08:01 PM
I would be really surprised if a single package format ever happened. Every different package format has its advantages, disadvantages, advocates and haters. It would be virtually impossible to unify the Linux community with one package format.

On the other hand, attempting to standardize the front-end for all of these various package management systems seems much more realistic.

It's a start but I believe one package management system would benefit users in more advantages, but because people can't get along, we can't agree on one. :(

So were stuck with the problem of looking for packages, if there not made, compiling, if that doesn't work, looking for tutorials, if there isn't tutorials then your screwed. Come on people, do you really expect people to go through this every time to install software.

ghindo
February 17th, 2009, 08:05 PM
It's a start but I believe one package management system would benefit users in more advantages, but because people can't get along, we can't agree on one. :(

So were stuck with the problem of looking for packages, if there not made, compiling, if that doesn't work, looking for tutorials, if there isn't tutorials then your screwed. Come on people, do you really expect people to go through this every time to install software.I would think that most of those problems would be solved by the massive software repositories that most distributions have. When have you run into these problems?

Dekkon
February 17th, 2009, 08:19 PM
I would think that most of those problems would be solved by the massive software repositories that most distributions have. When have you run into these problems?

Proprietary software.
Apps from Websites, packages for this distro but not this distro.
Independent Developers, they usually only package for there distro only. Good example is the many programs on KDE-Apps.org.

It happens more then you think, just because people use Linux doesn't mean people don't use Proprietary software, or software that is not in the repos.

Vadi
February 17th, 2009, 09:49 PM
Distros will probably be able to customize the interface to make it unique to them too.


The whole point of PackageKit is one interface, not many.

ghindo
February 18th, 2009, 12:01 AM
Proprietary software.
Apps from Websites, packages for this distro but not this distro.
Independent Developers, they usually only package for there distro only. Good example is the many programs on KDE-Apps.org.

It happens more then you think, just because people use Linux doesn't mean people don't use Proprietary software, or software that is not in the repos.That's true. Although, it seems to me that most Linux software comes available in .deb, .rpm, and source code. And if I'm not mistaken, there have been moves to make .rpm the standard format, but those have fallen through.

Polygon
February 18th, 2009, 12:08 AM
Once that happens and they are nicely tied in with each other i think we may see a universal package format become available while still being able to use native packages.

again, LINUX IS NOT BINARY COMPATIBLE

even if there was one standard package format, there would still have to be different packages for debian, suse, mandrivia, arch, etc etc.

so we might as well have different package formats, cuase even if everything used one format, we would be even more confused

"is this a debian deb or a suse deb?"

Dekkon
February 18th, 2009, 12:50 AM
KPackageKit integrates right into the KDE System Settings, thats enough to get my vote, also never had a problem with it on Fedora. :)

I am sick of having 148 different applications in my start menu that could easily be inside one Control Panel. Another example is Opensuse has Yast and KDE System Control both installed, that means there is two apps for Video, Sound, Network, etc., which is very redundant In My Opinion.

Integration is a great thing, and something I think some distributions need to work on.

bruce89
February 18th, 2009, 01:16 AM
The whole point of PackageKit is one interface, not many.

Technically PackageKit is just a specification. Each distro could have its own UI on top, but they won't.


again, LINUX IS NOT BINARY COMPATIBLE

even if there was one standard package format, there would still have to be different packages for debian, suse, mandrivia, arch, etc etc.

so we might as well have different package formats, cuase even if everything used one format, we would be even more confused

"is this a debian deb or a suse deb?"

It's a thing people overlook. The libraries in different distros can be incompatable, so a unified package would be impossible without limiting what versions of libraries you're allowed to use like LSB does.

rockin_goliath
February 18th, 2009, 01:20 AM
Does anyone know for certain if Packagekit will be in Jaunty or not? Any links to mailing lists detailing this?

ghindo
February 18th, 2009, 01:40 AM
Does anyone know for certain if Packagekit will be in Jaunty or not? Any links to mailing lists detailing this?Sure looks like PackageKit will be in Jaunty (http://packages.ubuntu.com/jaunty/packagekit); DeviceKit, too (http://packages.ubuntu.com/jaunty/devicekit).

EDIT: Heck, it looks like all the "Kits" mentioned in this thread (DeviceKit, ConsoleKit, PackageKit, PolicyKit) will be included in Jaunty. Not sure if any of them will come installed by default.

bruce89
February 18th, 2009, 01:41 AM
Sure looks like PackageKit will be in Jaunty:

http://packages.ubuntu.com/jaunty/packagekit

That doesn't mean it will be used by default. The fact however it is in main for Jaunty is interesting.

Slug71
February 18th, 2009, 01:50 AM
Does anyone know for certain if Packagekit will be in Jaunty or not? Any links to mailing lists detailing this?

I dont think so. I think it has moved to 9.10 but could be wrong.

Slug71
February 18th, 2009, 01:58 AM
Once that happens and they are nicely tied in with each other i think we may see a universal package format become available while still being able to use native packages.


again, LINUX IS NOT BINARY COMPATIBLE

even if there was one standard package format, there would still have to be different packages for debian, suse, mandrivia, arch, etc etc.


Thats exactly what i said! .rpm Distros and .deb distros will still be able to use their own native packages as well as the universal one if one ever becomes available.

Kinda like what Autopackage does. You have a universal .package format for Autopackage but you can still use the native package of whatever distro you have Autopackage on.

eg, I have Ubuntu with Autopackage. I can therefore install .debs and .package formats. If someone on Fedora also with Autopackage wants the same .package file that i have. They can just copy it from me and install it. But their system still uses .rpm packages too.

Super Ubuntu uses Autopackage by default.

bruce89
February 18th, 2009, 02:04 AM
Kinda like what Autopackage does. You have a universal .package format for Autopackage but you can still use the native package of whatever distro you have Autopackage on.

eg, I have Ubuntu with Autopackage. I can therefore install .debs and .package formats.

So, you advocate having another package format, like Autopackage, but not Autopackage. Surely this is slightly contrary to the original plan of having one format.

Slug71
February 18th, 2009, 02:08 AM
So, you advocate having another package format, like Autopackage, but not Autopackage. Surely this is slightly contrary to the original plan of having one format.

Slight being the key word. You have one format but you still have your native format too. That is the only way it will work.
I dont think die hard Linux vets would like their native formats taken away from them and im sure there will still be a need for native formats. There are lots of apps/software around that are made specifically for .rpm or .deb etc platforms. Therefore there is no need to do it as a .package or whatever format.

Well its not up to me what Ubuntu uses. If Ubuntu would use it then i'd be happy with it. But i think they want to go the Smart Package Manager route as a backend eventually.

kiersie
April 9th, 2009, 02:37 AM
+1 for packagekit: If a xserver session fails the packagekit deamon goo's on, if i update my system i can install software from the repo's the deamon wil add them in the quie... etc

chris4585
April 9th, 2009, 06:09 AM
I don't care so much, as long as synaptic will always be in Ubuntu

hanzomon4
April 9th, 2009, 06:46 AM
I dont think so. I think it has moved to 9.10 but could be wrong.

It's in kubuntu for sure