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
const char * rpmcliRcfile
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
struct rpmQVKArguments_s * QVA_t
rpmprobFilterFlags probFilter
struct poptOption rpmQVFilePoptTable[]
void rpmDisplayQueryTags(FILE *fp)
Display list of tags that can be used in –queryformat.
int rpmErase(rpmts ts, struct rpmInstallArguments_s *ia, ARGV_const_t argv)
Erase binary rpm package.
rpmQVSources_e
Query/Verify argument qualifiers.
poptContext rpmcliInit(int argc, char *const argv[], struct poptOption *optionsTable)
Initialize most everything needed by an rpm CLI executable context.
int rpmcliQuery(rpmts ts, QVA_t qva, ARGV_const_t argv)
Display package information.
rpmRelocation * relocations
int rpmcliVerifySignatures(rpmts ts, ARGV_const_t argv)
Verify package signatures.
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
rpmFlags rpmprobFilterFlags
Describe query/verify/signature command line operation.
We pass these around as an array with a sentinel.
struct rpmQVKArguments_s rpmQVKArgs
int showVerifyPackage(QVA_t qva, rpmts ts, Header h)
Display results of package verify.
rpmQueryFlags rpmcliQueryFlags
Bit(s) from common command line options.
struct poptOption rpmInstallPoptTable[]
int rpmInstallSource(rpmts ts, const char *arg, char **specFilePtr, char **cookie)
Install source rpm package.
poptContext rpmcliFini(poptContext optCon)
Destroy most everything needed by an rpm CLI executable context.
const char * rpmcliPipeOutput
int showQueryPackage(QVA_t qva, rpmts ts, Header h)
Display results of package query.
struct poptOption rpmQueryPoptTable[]
struct _FD_s * FD_t
RPM IO file descriptor type.
int(* QVF_t)(QVA_t qva, rpmts ts, Header h)
Function to display iterator matches.
struct poptOption rpmQVSourcePoptTable[]
struct headerToken_s * Header
RPM header and data retrieval types.
rpmVerifyFlags_e
Bit(s) to control rpmcliVerify() operation.
int rpmcliVerify(rpmts ts, QVA_t qva, ARGV_const_t argv)
Verify package install.
rpmInstallFlags installInterfaceFlags
rpmVerifyAttrs qva_ofvattr
struct rpmInstallArguments_s rpmIArgs
const char * rpmcliRootDir
struct poptOption rpmcliAllPoptTable[]
Popt option table for options shared by all modes and executables.
char *const * ARGV_const_t
rpmInstallFlags_e
Bit(s) to control rpmInstall() operation.
rpmQueryFlags_e
Bit(s) to control rpmQuery() operation, stored in qva_flags.
Describe database command line requests.
void rpmcliConfigured(void)
Make sure that rpm configuration has been read.
struct poptOption rpmVerifyPoptTable[]
int(* QSpecF_t)(rpmts ts, QVA_t qva, const char *arg)
Function to query spec file.
int rpmInstall(rpmts ts, struct rpmInstallArguments_s *ia, ARGV_t fileArgv)
Install/upgrade/freshen/reinstall binary rpm package.
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 rpmcliArgIter(rpmts ts, QVA_t qva, ARGV_const_t argv)
Iterate over query/verify arg list.
int rpmcliImportPubkeys(rpmts ts, ARGV_const_t argv)
Import public key(s) to rpm keyring.
int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd, const char *fn)
Check package and header signatures.