10 #include <rpm/rpmlib.h> 11 #include <rpm/rpmurl.h> 12 #include <rpm/rpmmacro.h> 13 #include <rpm/rpmcallback.h> 14 #include <rpm/rpmts.h> 15 #include <rpm/rpmfi.h> 16 #include <rpm/rpmvf.h> 70 #define RPMCLI_POPT_NODEPS -1025 71 #define RPMCLI_POPT_FORCE -1026 72 #define RPMCLI_POPT_NOMD5 -1027 73 #define RPMCLI_POPT_NOFILEDIGEST -1027 74 #define RPMCLI_POPT_NOSCRIPTS -1028 75 #define RPMCLI_POPT_NOSIGNATURE -1029 76 #define RPMCLI_POPT_NODIGEST -1030 77 #define RPMCLI_POPT_NOHDRCHK -1031 78 #define RPMCLI_POPT_NOCONTEXTS -1032 137 #define _QUERY_FOR_BITS \ 138 (QUERY_FOR_LIST|QUERY_FOR_STATE|QUERY_FOR_DOCS|QUERY_FOR_CONFIG|\ 369 #define UNINSTALL_NONE INSTALL_NONE 370 #define UNINSTALL_NODEPS INSTALL_NODEPS 371 #define UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES rpmQVSources_e
Query/Verify argument qualifiers.
const char * rpmcliRcfile
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
int rpmInstall(rpmts ts, struct rpmInstallArguments_s *ia, ARGV_t fileArgv)
Install/upgrade/freshen binary rpm package.
rpmQueryFlags rpmcliQueryFlags
Bit(s) from common command line options.
int _noDirTokens
Should version 3 packages be produced?
struct poptOption rpmcliFtsPoptTable[]
enum rpmQueryFlags_e rpmQueryFlags
Bit(s) to control rpmQuery() operation, stored in qva_flags.
struct poptOption rpmDatabasePoptTable[]
int rpmcliArgIter(rpmts ts, QVA_t qva, ARGV_const_t argv)
Iterate over query/verify arg list.
struct rpmDatabaseArguments_s rpmDBArgs
rpmSignFlags_e
Bit(s) to control rpmReSign() operation.
struct _FD_s * FD_t
RPM IO file descriptor type.
rpmprobFilterFlags probFilter
struct rpmBuildArguments_s rpmBTArgs
enum rpmprobFilterFlags_e rpmprobFilterFlags
int rpmcliQuery(rpmts ts, QVA_t qva, ARGV_const_t argv)
Display package information.
static struct poptOption optionsTable[]
rpmInstallFlags_e
Bit(s) to control rpmInstall() operation.
struct poptOption rpmInstallPoptTable[]
poptContext rpmcliInit(int argc, char *const argv[], struct poptOption *optionsTable)
Initialize most everything needed by an rpm CLI executable context.
poptContext rpmcliFini(poptContext optCon)
Destroy most everything needed by an rpm CLI executable context.
rpmRelocation * relocations
struct rpmBuildArguments_s * BTA_t
struct rpmQVKArguments_s rpmQVKArgs
int showQueryPackage(QVA_t qva, rpmts ts, Header h)
Display results of package query.
Describe database command line requests.
struct poptOption rpmVerifyPoptTable[]
int rpmcliVerify(rpmts ts, QVA_t qva, ARGV_const_t argv)
Verify package install.
int rpmcliShowMatches(QVA_t qva, rpmts ts)
Display query/verify information for each header in iterator.
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.
Describe query/verify/signature command line operation.
We pass these around as an array with a sentinel.
struct poptOption rpmQueryPoptTable[]
int rpmErase(rpmts ts, struct rpmInstallArguments_s *ia, ARGV_const_t argv)
Erase binary rpm package.
int rpmcliSign(rpmts ts, QVA_t qva, ARGV_const_t argv)
Create/Modify/Check elements from signature header.
enum rpmQVSources_e rpmQVSources
Query/Verify argument qualifiers.
void rpmcliConfigured(void)
Make sure that rpm configuration has been read.
int(* QVF_t)(QVA_t qva, rpmts ts, Header h)
Function to display iterator matches.
struct rpmdbMatchIterator_s * rpmdbMatchIterator
const char * rpmcliPipeOutput
struct poptOption rpmBuildPoptTable[]
int(* QSpecF_t)(rpmts ts, QVA_t qva, const char *arg)
Function to query spec file.
int rpmInstallSource(rpmts ts, const char *arg, char **specFilePtr, char **cookie)
Install source rpm package.
rpmInstallFlags installInterfaceFlags
const char * rpmcliRootDir
enum rpmfileAttrs_e rpmfileAttrs
File Attributes.
int showVerifyPackage(QVA_t qva, rpmts ts, Header h)
Display results of package verify.
void rpmDisplayQueryTags(FILE *fp)
Display list of tags that can be used in –queryformat.
int rpmcliProgressCurrent
enum rpmInstallFlags_e rpmInstallFlags
Bit(s) to control rpmInstall() operation.
char *const * ARGV_const_t
enum rpmtransFlags_e rpmtransFlags
Bit(s) to control rpmtsRun() operation.
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
struct rpmQVKArguments_s * QVA_t
Describe database command line requests.
rpmdbMatchIterator qva_mi
struct rpmInstallArguments_s rpmIArgs
enum rpmRC_e rpmRC
Package read return codes.
struct poptOption rpmQVSourcePoptTable[]
int rpmQueryVerify(QVA_t qva, rpmts ts, const char *arg)
Common query/verify source interface, called once for each CLI arg.
enum rpmSignFlags_e rpmSignFlags
Bit(s) to control rpmReSign() operation.
Describe build command line request.
struct poptOption rpmSignPoptTable[]
struct poptOption rpmcliAllPoptTable[]
Popt option table for options shared by all modes and executables.
rpmQueryFlags_e
Bit(s) to control rpmQuery() operation, stored in qva_flags.
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.