wiki:Tools/Pkgmgr

Version 2 (modified by http://fab.id.fedoraproject.org/, 13 years ago) (diff)

Links updated

Pkgmgr

pkgmgr_gen.py

Program to generate a bcfg2 Pkgmgr configuration file from a list of directories that contain RPMS. All versions or only the latest may be included in the output. rpm.labelCompare is used to compare the package versions, so that a proper rpm version comparison is done (epoch:version-release). The output file may be formated for use with the RPM or Yum Bcfg2 client drivers. The output can also contain the PackageList and nested group headers.

Source : http://trac.mcs.anl.gov/projects/bcfg2/browser/tools/pkgmgr_gen.py

pkgmgr_update.py

Program to update an existing Bcfg2 Pkgmgr configuration file from a list of directories that contain RPMS. Only the epoch, version, release and simplefiles attributes are updated in existing entries. All other entries and attributes are preserved.

This is a total hack until a proper more generalized system for managing Pkgmgr configuration files is developed.

Source : http://trac.mcs.anl.gov/projects/bcfg2/browser/tools/pkgmgr_update.py