Libzypp/Explore

From openSUSE


Version:
10.3
This is still experimental for the 10.3 codebase


Contents

Exploring Libzypp

The main objective for the refactoring of libzypp is the separation of

  • media access
  • download
  • parsing
  • dependency solving
  • transaction commit

into manageable, independant pieces - all synchronized by a (sqlite based) database cache.

So the first step is to set up the database (You probably need root rights for this):

 mkdir -p /usr/share/zypp/cache
 cp libzypp/zypp2/cache/schema/schema.sql /usr/share/zypp/cache

Currently (mid April of 2007), most test code is written by Duncan and available in his development area. You have to cd to the build directory and execute

 cd devel/devel.dmacvicar
 make

There is a README file in the devel.dmacvicar subdirectory with further information.

Running the examples

Downloading metadata

  • From a rpm-md repository
 ./yum-downloader http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse factory
  • From a YaST repository
 ./susetags-downloader http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source factory

Parsing metadata

  • From a YaST repository cache directory
 ./tagsparser factory