Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DBus daemon for doing package action with the dnf package manager

License

NotificationsYou must be signed in to change notification settings

manatools/dnfdaemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnf-daemon is a 2 DBus services there make part for dnf's API available for application via DBus calls.

There is a DBus session bus service running as current user for performing readonly actions.

There is a DBus system bus service running as root for performing actions there is making changes to the system

This makes it easy to do packaging action from your application no matter what language it is written in, as long as thereis DBus binding for it.

dnf-daemon uses PolicyKit for authentication for the system service, so when you call one of the commands (as normal users) you will get a
PolicyKit dialog to ask for password of a privileged user like root.

dnf-daemon is still under heavy development and the API is not stable or complete yet

Source overview

dnfdaemon/      Contains the daemon python sourceclient/         Contains the client API bindings for python 2.x & 3.xtest/           Unit test for the daemon and python bindingsdbus/           DBus system service setup filespolicykit1/     PolicyKit authentication setup files

How to install services and python bindings:

Run the following

git clone ...cd dnf-daemonmake test-inst

How to test:

just run:

make test-verbose

to run the unit test with output to console

or this to just run the unit tests.

make test

To make the daemons shutdown

Session:

make exit-session

System

make exit-system

Both

make exit-both

to run the daemons in debug mode from checkout:

session (readonly as current user)

make run-session

system (as root)

make run-system

API Definitions:

The dnfdaemon api is documentedhere

The API is under development, so it might change, when we hit version 1.0, API methods will be frozen andAPI method names, parameters and return types will not change in future releases, new API can be added,but the old ones stays as is

API Addition Checklist:

  • Add the new API methods to dnfdaemon-system.py and optional dnfdaemon-session.py
  • Add client api method in DnfDaemonBase if it is available in both daemonor in DnfDaemonClient is it is a system only api.
  • Add unit tests for the api in test/test-system-api.py and optional to test/test-system-api.py if it exists in the session api
  • Update docs/server.rst and docs/client-python.api ( add new api method to members )
  • All unit tests must pass (make test) before pushing to github

About

DBus daemon for doing package action with the dnf package manager

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors11


[8]ページ先頭

©2009-2025 Movatter.jp