rpm
4.12.0.1
|
Files | |
file | rpmlib.h |
In Memoriam: Steve Taylor stayl was here, now he's not. or@r edhat .com | |
Variables | |
const char * | macrofiles |
List of macro files to read when configuring rpm. More... | |
RPMRC | |
enum | rpm_machtable_e { RPM_MACHTABLE_INSTARCH = 0, RPM_MACHTABLE_INSTOS = 1, RPM_MACHTABLE_BUILDARCH = 2, RPM_MACHTABLE_BUILDOS = 3 } |
Build and install arch/os table identifiers. More... | |
int | rpmReadConfigFiles (const char *file, const char *target) |
Read macro configuration file(s) for a target. More... | |
void | rpmGetArchInfo (const char **name, int *num) |
Return current arch name and/or number. More... | |
int | rpmGetArchColor (const char *arch) |
Return color for an arch. More... | |
void | rpmGetOsInfo (const char **name, int *num) |
Return current os name and/or number. More... | |
int | rpmMachineScore (int type, const char *name) |
Return arch/os score of a name. More... | |
int | rpmShowRC (FILE *fp) |
Display current rpmrc (and macro) configuration. More... | |
void | rpmFreeRpmrc (void) |
Destroy rpmrc arch/os compatibility tables. More... | |
enum rpm_machtable_e |
Build and install arch/os table identifiers.
void rpmFreeRpmrc | ( | void | ) |
int rpmGetArchColor | ( | const char * | arch | ) |
Return color for an arch.
arch | name of an architecture |
void rpmGetArchInfo | ( | const char ** | name, |
int * | num | ||
) |
Return current arch name and/or number.
name | address of arch name (or NULL) |
num | address of arch number (or NULL) |
void rpmGetOsInfo | ( | const char ** | name, |
int * | num | ||
) |
Return current os name and/or number.
name | address of os name (or NULL) |
num | address of os number (or NULL) |
int rpmMachineScore | ( | int | type, |
const char * | name | ||
) |
Return arch/os score of a name.
An arch/os score measures the "nearness" of a name to the currently running (or defined) platform arch/os. For example, the score of arch "i586" on an i686 platform is (usually) 2. The arch/os score is used to select one of several otherwise identical packages using the arch/os tags from the header as hints of the intended platform for the package.
type | any of the RPM_MACHTABLE_* constants |
name | name |
int rpmReadConfigFiles | ( | const char * | file, |
const char * | target | ||
) |
int rpmShowRC | ( | FILE * | fp | ) |
Display current rpmrc (and macro) configuration.
fp | output file handle |
const char* macrofiles |
List of macro files to read when configuring rpm.
This is a colon separated list of files. URI's are permitted as well, identified by the token '://', so file paths must not begin with '//'.