[packagekit] ServicePack: Matching update media to distros

Richard Hughes hughsient at gmail.com
Fri Mar 28 06:34:06 PDT 2008


On Fri, 2008-03-28 at 08:40 -0400, Ken VanDine wrote:
> That sounds reasonable to me, and that is enough data.

Okay, how would we get this data on foresight, fedora and other distros?

Fedora has this:

$ cat /etc/fedora-release 
Fedora release 8.92 (Rawhide)

So we could get the name and version, and the arch we can get from
uname(struct utsname *buf).

Is there a generic way we can get the distro name and version?

Richard.





More information about the PackageKit mailing list