rpm
4.10.0
|
Data Structures | |
struct | rpmQVKArguments_s |
Describe query/verify/signature command line operation. More... | |
struct | rpmInstallArguments_s |
Describe database command line requests. More... | |
Files | |
file | rpmcli.h |
file | rpmlib.h |
In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not. | |
Functions | |
poptContext | rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Initialize most everything needed by an rpm CLI executable context. | |
void | rpmcliConfigured (void) |
Make sure that rpm configuration has been read. | |
poptContext | rpmcliFini (poptContext optCon) |
Destroy most everything needed by an rpm CLI executable context. | |
Variables | |
struct poptOption | rpmcliAllPoptTable [] |
Popt option table for options shared by all modes and executables. | |
RPMQV | |
enum | rpmQVSources_e { RPMQV_PACKAGE = 0, RPMQV_PATH, RPMQV_ALL, RPMQV_RPM, RPMQV_GROUP, RPMQV_WHATPROVIDES, RPMQV_WHATREQUIRES, RPMQV_TRIGGEREDBY, RPMQV_DBOFFSET, RPMQV_SPECRPMS, RPMQV_SPECFILE = RPMQV_SPECRPMS, RPMQV_PKGID, RPMQV_HDRID, RPMQV_TID, RPMQV_SPECSRPM } |
Query/Verify argument qualifiers. More... | |
enum | rpmQueryFlags_e { QUERY_FOR_DEFAULT = 0, QUERY_MD5 = (1 << 0), QUERY_FILEDIGEST = (1 << 0), QUERY_SIZE = (1 << 1), QUERY_LINKTO = (1 << 2), QUERY_USER = (1 << 3), QUERY_GROUP = (1 << 4), QUERY_MTIME = (1 << 5), QUERY_MODE = (1 << 6), QUERY_RDEV = (1 << 7), QUERY_CONTEXTS = (1 << 15), QUERY_FILES = (1 << 16), QUERY_DEPS = (1 << 17), QUERY_SCRIPT = (1 << 18), QUERY_DIGEST = (1 << 19), QUERY_SIGNATURE = (1 << 20), QUERY_PATCHES = (1 << 21), QUERY_HDRCHK = (1 << 22), QUERY_FOR_LIST = (1 << 23), QUERY_FOR_STATE = (1 << 24), QUERY_FOR_DOCS = (1 << 25), QUERY_FOR_CONFIG = (1 << 26), QUERY_FOR_DUMPFILES = (1 << 27) } |
Bit(s) to control rpmQuery() operation, stored in qva_flags. More... | |
typedef struct rpmQVKArguments_s * | QVA_t |
typedef int(* | QVF_t )(QVA_t qva, rpmts ts, Header h) |
Function to display iterator matches. | |
typedef int(* | QSpecF_t )(rpmts ts, QVA_t qva, const char *arg) |
Function to query spec file. | |
rpmQueryFlags | rpmcliQueryFlags |
Bit(s) from common command line options. | |
struct rpmQVKArguments_s | rpmQVKArgs |
struct poptOption | rpmQVSourcePoptTable [] |
struct poptOption | rpmQueryPoptTable [] |
struct poptOption | rpmVerifyPoptTable [] |
void | rpmDisplayQueryTags (FILE *fp) |
Display list of tags that can be used in --queryformat. | |
int | showQueryPackage (QVA_t qva, rpmts ts, Header h) |
Display results of package query. | |
int | rpmcliArgIter (rpmts ts, QVA_t qva, ARGV_const_t argv) |
Iterate over query/verify arg list. | |
int | rpmcliQuery (rpmts ts, QVA_t qva, ARGV_const_t argv) |
Display package information. | |
int | showVerifyPackage (QVA_t qva, rpmts ts, Header h) |
Display results of package verify. | |
int | rpmcliVerify (rpmts ts, QVA_t qva, ARGV_const_t argv) |
Verify package install. | |
RPMEIU | |
enum | rpmInstallFlags_e { INSTALL_NONE = 0, INSTALL_PERCENT = (1 << 0), INSTALL_HASH = (1 << 1), INSTALL_NODEPS = (1 << 2), INSTALL_NOORDER = (1 << 3), INSTALL_LABEL = (1 << 4), INSTALL_UPGRADE = (1 << 5), INSTALL_FRESHEN = (1 << 6), INSTALL_INSTALL = (1 << 7), INSTALL_ERASE = (1 << 8), INSTALL_ALLMATCHES = (1 << 9) } |
Bit(s) to control rpmInstall() operation. More... | |
typedef rpmFlags | rpmInstallFlags |
struct rpmInstallArguments_s | rpmIArgs |
struct poptOption | rpmInstallPoptTable [] |
void * | rpmShowProgress (const void *arg, const rpmCallbackType what, const rpm_loff_t amount, const rpm_loff_t total, fnpyKey key, void *data) |
The rpm CLI generic transaction callback handler. | |
int | rpmInstallSource (rpmts ts, const char *arg, char **specFilePtr, char **cookie) |
Install source rpm package. | |
int | rpmInstall (rpmts ts, struct rpmInstallArguments_s *ia, ARGV_t fileArgv) |
Install/upgrade/freshen binary rpm package. | |
int | rpmErase (rpmts ts, struct rpmInstallArguments_s *ia, ARGV_const_t argv) |
Erase binary rpm package. | |
#define | UNINSTALL_NONE INSTALL_NONE |
Bit(s) to control rpmErase() operation. | |
#define | UNINSTALL_NODEPS INSTALL_NODEPS |
#define | UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES |
RPMK | |
int | rpmcliVerifySignatures (rpmts ts, ARGV_const_t argv) |
Verify package signatures. |
#define UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES |
#define UNINSTALL_NODEPS INSTALL_NODEPS |
#define UNINSTALL_NONE INSTALL_NONE |
Bit(s) to control rpmErase() operation.
typedef struct rpmQVKArguments_s* QVA_t |
typedef rpmFlags rpmInstallFlags |
enum rpmInstallFlags_e |
Bit(s) to control rpmInstall() operation.
enum rpmQueryFlags_e |
Bit(s) to control rpmQuery() operation, stored in qva_flags.
enum rpmQVSources_e |
Query/Verify argument qualifiers.
int rpmcliArgIter | ( | rpmts | ts, |
QVA_t | qva, | ||
ARGV_const_t | argv | ||
) |
Iterate over query/verify arg list.
ts | transaction set |
qva | parsed query/verify options |
argv | query argument(s) (or NULL) |
void rpmcliConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
poptContext rpmcliFini | ( | poptContext | optCon | ) |
Destroy most everything needed by an rpm CLI executable context.
optCon | popt context |
Referenced by main().
poptContext rpmcliInit | ( | int | argc, |
char *const | argv[], | ||
struct poptOption * | optionsTable | ||
) |
Initialize most everything needed by an rpm CLI executable context.
argc | no. of args |
argv | arg array |
optionsTable | popt option table |
Referenced by main().
int rpmcliQuery | ( | rpmts | ts, |
QVA_t | qva, | ||
ARGV_const_t | argv | ||
) |
int rpmcliVerify | ( | rpmts | ts, |
QVA_t | qva, | ||
ARGV_const_t | argv | ||
) |
int rpmcliVerifySignatures | ( | rpmts | ts, |
ARGV_const_t | argv | ||
) |
Verify package signatures.
ts | transaction set |
argv | array of package path arguments (NULL terminated) |
Referenced by main().
void rpmDisplayQueryTags | ( | FILE * | fp | ) |
Display list of tags that can be used in --queryformat.
fp | file handle to use for display |
int rpmErase | ( | rpmts | ts, |
struct rpmInstallArguments_s * | ia, | ||
ARGV_const_t | argv | ||
) |
Erase binary rpm package.
ts | transaction set |
ia | control args/bits |
argv | array of package file names (NULL terminated) |
Referenced by main().
int rpmInstall | ( | rpmts | ts, |
struct rpmInstallArguments_s * | ia, | ||
ARGV_t | fileArgv | ||
) |
int rpmInstallSource | ( | rpmts | ts, |
const char * | arg, | ||
char ** | specFilePtr, | ||
char ** | cookie | ||
) |
Install source rpm package.
ts | transaction set |
arg | source rpm file name |
*specFilePtr | (installed) spec file name |
*cookie |
Referenced by main().
void* rpmShowProgress | ( | const void * | arg, |
const rpmCallbackType | what, | ||
const rpm_loff_t | amount, | ||
const rpm_loff_t | total, | ||
fnpyKey | key, | ||
void * | data | ||
) |
The rpm CLI generic transaction callback handler.
arg | per-callback private data (e.g. an rpm header) |
what | callback identifier |
amount | per-callback progress info |
total | per-callback progress info |
key | opaque header key (e.g. file name or PyObject) |
data | private data (e.g. rpmInstallInterfaceFlags) |
Display results of package query.
qva | parsed query/verify options |
ts | transaction set |
h | header to use for query |
Display results of package verify.
qva | parsed query/verify options |
ts | transaction set |
h | header to use for verify |
struct poptOption rpmcliAllPoptTable[] |
Popt option table for options shared by all modes and executables.
Bit(s) from common command line options.
Referenced by build().
struct rpmInstallArguments_s rpmIArgs |
Referenced by main().
struct poptOption rpmInstallPoptTable[] |
struct poptOption rpmQueryPoptTable[] |
struct rpmQVKArguments_s rpmQVKArgs |
Referenced by main().
struct poptOption rpmQVSourcePoptTable[] |
struct poptOption rpmVerifyPoptTable[] |