11 #include <rpm/rpmio.h>
12 #include <rpm/header.h>
13 #include <rpm/rpmtag.h>
14 #include <rpm/rpmds.h>
15 #include <rpm/rpmpgp.h>
16 #include <rpm/rpmver.h>
18 #ifdef _RPM_4_4_COMPAT
19 #error RPM 4.4.x compatibility layer has been removed in RPM >= 4.14
32 extern const char *
const rpmNAME;
34 extern const char *
const rpmEVR;
51 #define RPM_MACHTABLE_COUNT 4
157 const char * fn,
Header * hdrp);
int rpmMachineScore(int type, const char *name)
Return arch/os score of a name.
int rpmShowRC(FILE *fp)
Display current rpmrc (and macro) configuration.
void rpmGetOsInfo(const char **name, int *num)
Return current os name and/or number.
int rpmGetArchColor(const char *arch)
Return color for an arch.
rpm_machtable_e
Build and install arch/os table identifiers.
int rpmReadConfigFiles(const char *file, const char *target)
Read macro configuration file(s) for a target.
void rpmGetArchInfo(const char **name, int *num)
Return current arch name and/or number.
void rpmFreeRpmrc(void)
Destroy rpmrc arch/os compatibility tables.
@ RPM_MACHTABLE_BUILDARCH
struct _FD_s * FD_t
RPM IO file descriptor type.
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
enum rpmRC_e rpmRC
Package read return codes.
struct headerToken_s * Header
RPM header and data retrieval types.
struct rpmMacroContext_s * rpmGlobalMacroContext
struct rpmMacroContext_s * rpmCLIMacroContext
rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, char **specFilePtr, char **cookie)
Install source package.
int rpmVersionCompare(Header first, Header second)
Compare headers to determine which header is "newer".
const char *const RPMVERSION
const char *const rpmNAME