Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Easy API for ZYpp
C++ C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
src
.gitignore
CMakeLists.txt
README.md

README.md

zpm

zpm is an experimental simple client API for accessing ZYpp package management.

Goals

The goal is to keep simplicity while supporting the following requirements:

  • Plain C API
  • Easy to bind to other languages, either by hand or using SWIG
  • Allow sysadmins to write custom scripts
  • Powerful enough for client programs like zypper, PackageKit backend and YaST2 to use it as API instead of the ZYpp toolkit

Example

#include "zpm.h"
#include "stdio.h"

int main()
{
    zpm *z = zpm_create("/");
    zpm_solvable_iter *it = zpm_query_what_provides("http_daemon");
    zpm_solvable *s;
    while (s = zpm_solvable_iter_next(it)) {
      printf("%s %s\n", zpm_solvable_name(s), zpm_solvable_version(s));
      zpm_solvable_destroy(s);
    }
    zpm_destroy(z);
    return 0;
}

License

zpm is licensed under the GNU General Public License version 2 or later. The text of the GNU General Public License can be viewed at http://www.gnu.org/licenses/gpl.html

Authors

Something went wrong with that request. Please try again.