Go to the documentation of this file.
12 #include <rpm/rpmlib.h>
13 #include <rpm/rpmurl.h>
14 #include <rpm/rpmmacro.h>
15 #include <rpm/rpmcallback.h>
16 #include <rpm/rpmts.h>
17 #include <rpm/rpmfi.h>
43 rpmcliInit(
int argc,
char *
const argv[],
struct poptOption * optionsTable);
62 #define RPMCLI_POPT_NODEPS -1025
63 #define RPMCLI_POPT_FORCE -1026
64 #define RPMCLI_POPT_NOMD5 -1027
65 #define RPMCLI_POPT_NOFILEDIGEST -1027
66 #define RPMCLI_POPT_NOSCRIPTS -1028
67 #define RPMCLI_POPT_NOSIGNATURE -1029
68 #define RPMCLI_POPT_NODIGEST -1030
69 #define RPMCLI_POPT_NOHDRCHK -1031
70 #define RPMCLI_POPT_NOCONTEXTS -1032
71 #define RPMCLI_POPT_NOCAPS -1033
72 #define RPMCLI_POPT_TARGETPLATFORM -1034
125 #define _QUERY_FOR_BITS \
126 (QUERY_FOR_LIST|QUERY_FOR_STATE|QUERY_FOR_DUMPFILES)
275 ( VERIFY_FILES | VERIFY_DEPS | VERIFY_SCRIPT )
314 #define UNINSTALL_NONE INSTALL_NONE
315 #define UNINSTALL_NODEPS INSTALL_NODEPS
316 #define UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES
struct poptOption rpmVerifyPoptTable[]
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
int rpmcliQuery(rpmts ts, QVA_t qva, ARGV_const_t argv)
Display package information.
rpmQVSources_e
Query/Verify argument qualifiers.
int(* QSpecF_t)(rpmts ts, QVA_t qva, const char *arg)
Function to query spec file.
rpmInstallFlags_e
Bit(s) to control rpmInstall() operation.
rpmprobFilterFlags probFilter
struct poptOption rpmInstallPoptTable[]
int rpmcliArgIter(rpmts ts, QVA_t qva, ARGV_const_t argv)
Iterate over query/verify arg list.
char *const * ARGV_const_t
int rpmcliImportPubkeys(rpmts ts, ARGV_const_t argv)
Import public key(s) to rpm keyring.
rpmVerifyFlags_e
Bit(s) to control rpmcliVerify() operation.
int rpmErase(rpmts ts, struct rpmInstallArguments_s *ia, ARGV_const_t argv)
Erase binary rpm package.
rpmRelocation * relocations
rpmQueryFlags rpmcliQueryFlags
Bit(s) from common command line options.
rpmVerifyAttrs qva_ofvattr
const char * rpmcliPipeOutput
int rpmInstallSource(rpmts ts, const char *arg, char **specFilePtr, char **cookie)
Install source rpm package.
rpmFlags rpmprobFilterFlags
poptContext rpmcliInit(int argc, char *const argv[], struct poptOption *optionsTable)
Initialize most everything needed by an rpm CLI executable context.
int showVerifyPackage(QVA_t qva, rpmts ts, Header h)
Display results of package verify.
void rpmcliConfigured(void)
Make sure that rpm configuration has been read.
Describe database command line requests.
Describe query/verify/signature command line operation.
void rpmDisplayQueryTags(FILE *fp)
Display list of tags that can be used in –queryformat.
const char * rpmcliRootDir
rpmQueryFlags_e
Bit(s) to control rpmQuery() operation, stored in qva_flags.
struct rpmInstallArguments_s rpmIArgs
int showQueryPackage(QVA_t qva, rpmts ts, Header h)
Display results of package query.
rpmInstallFlags installInterfaceFlags
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
struct poptOption rpmQueryPoptTable[]
struct poptOption rpmQVSourcePoptTable[]
struct rpmQVKArguments_s * QVA_t
struct poptOption rpmcliAllPoptTable[]
Popt option table for options shared by all modes and executables.
int rpmInstall(rpmts ts, struct rpmInstallArguments_s *ia, ARGV_t fileArgv)
Install/upgrade/freshen/reinstall binary rpm package.
int(* QVF_t)(QVA_t qva, rpmts ts, Header h)
Function to display iterator matches.
We pass these around as an array with a sentinel.
struct _FD_s * FD_t
RPM IO file descriptor type.
struct rpmQVKArguments_s rpmQVKArgs
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 rpmcliVerify(rpmts ts, QVA_t qva, ARGV_const_t argv)
Verify package install.
struct headerToken_s * Header
RPM header and data retrieval types.
int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd, const char *fn)
Check package and header signatures.
struct poptOption rpmQVFilePoptTable[]
poptContext rpmcliFini(poptContext optCon)
Destroy most everything needed by an rpm CLI executable context.
const char * rpmcliRcfile
int rpmcliVerifySignatures(rpmts ts, ARGV_const_t argv)
Verify package signatures.