Hi, all i'm using libzypp-bindings to create an MeeGo sysroot, i know zypper command can do this. zypper --root /meego-sysroot ar http://repo.meego.com/MeeGo/builds/trunk/1.1.80.0.20101005.1/core/repos/ia32... core zypper --root /meego-sysroot install -t pattern meego-core zypper can do it, i believe libzypp-bindings also can do it, but unfortunately , i can't find a tutorial for this, so i only can read zypper and libzypp code to understand how to do it. I tried to do such a script: -----------Cut here---------------------- #! /usr/bin/python import sys import zypp zypp.KeyRing.setDefaultAccept( zypp.KeyRing.ACCEPT_UNSIGNED_FILE | zypp.KeyRing.ACCEPT_VERIFICATION_FAILED ) repoManagerOptions = zypp.RepoManagerOptions(zypp.Pathname("/meego-sysroot")) repoManager = zypp.RepoManager(repoManagerOptions) repoManager.addRepositories(zypp.Url("file:///home/yangyi/test.repo")) repos = repoManager.knownRepositories() for repo in repos: if not repo.enabled(): continue print "Build cache for repo %s" % repo.url() if not repoManager.isCached( repo ): repoManager.buildCache( repo, zypp.RepoManager.BuildIfNeeded ) repoManager.loadFromCache( repo ); Z = zypp.ZYppFactory_instance().getZYpp() Z.initializeTarget( zypp.Pathname("/zypper-root") ) Z.target().load(); sys.exit(0) --------------Cut here---------------------- $ cat test.repo [core] name=core enabled=1 autorefresh=0 baseurl=http://repo.meego.com/MeeGo/builds/trunk/1.1.80.0.20101005.1/core/repos/ia32... type=NONE keeppackages=0 $ When i run this script, the error is below: Traceback (most recent call last): File "list_resolvables.py", line 6, in <module> zypp.KeyRing.setDefaultAccept( zypp.KeyRing.ACCEPT_UNSIGNED_FILE | zypp.KeyRing.ACCEPT_VERIFICATION_FAILED ) TypeError: in method 'KeyRing_setDefaultAccept', argument 1 of type 'zypp::KeyRing::DefaultAccept' This is just a beginning, i want to install many packages and groups/patterns from a kickstart file into /meego-sysroot once, is it possible? anybody can give an sample to do this. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org