drpm
A library for making, reading and applying deltarpm packages
|
Tools for creating a DeltaRPM file from two RPM files, providing the same functionality as makedeltarpm(8). More...
Modules | |
DRPM Make Options | |
Tools for customizing DeltaRPM creation. | |
Functions | |
int | drpm_make (const char *oldrpm, const char *newrpm, const char *deltarpm, const drpm_make_options *opts) |
Creates a DeltaRPM from two RPMs. More... | |
Tools for creating a DeltaRPM file from two RPM files, providing the same functionality as makedeltarpm(8).
int drpm_make | ( | const char * | oldrpm, |
const char * | newrpm, | ||
const char * | deltarpm, | ||
const drpm_make_options * | opts | ||
) |
Creates a DeltaRPM from two RPMs.
The DeltaRPM can later be used to recreate the new RPM from either filesystem data or the old RPM.
Does the same thing as the makedeltarpm(8) command-line utility.
Examples of function calls (without error handling):
[in] | oldrpm | Name of old RPM file. |
[in] | newrpm | Name of new RPM file. |
[in] | deltarpm | Name of DeltaRPM file to be created. |
[in] | opts | Options (if NULL , defaults used). |
old_rpm
or new_rpm
is NULL
, an "identity" deltarpm is created (may be useful to just replace the signature of an RPM or to reconstruct an RPM from the filesystem). NULL
, opts
should have been initialized with drpm_make_options_init(), otherwise behaviour is undefined.