rpm
4.17.0
|
Parsing RPM command line arguments. More...
#include <popt.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmurl.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmcallback.h>
#include <rpm/rpmts.h>
#include <rpm/rpmfi.h>
#include <rpm/argv.h>
Go to the source code of this file.
Data Structures | |
struct | rpmQVKArguments_s |
Describe query/verify/signature command line operation. More... | |
struct | rpmInstallArguments_s |
Describe database command line requests. More... | |
Macros | |
#define | RPMCLI_POPT_NODEPS -1025 |
Common/global popt tokens used for command line option tables. More... | |
#define | RPMCLI_POPT_FORCE -1026 |
#define | RPMCLI_POPT_NOMD5 -1027 |
#define | RPMCLI_POPT_NOFILEDIGEST -1027 /* same as obsolete RPMCLI_POPT_NOMD5 */ |
#define | RPMCLI_POPT_NOSCRIPTS -1028 |
#define | RPMCLI_POPT_NOSIGNATURE -1029 |
#define | RPMCLI_POPT_NODIGEST -1030 |
#define | RPMCLI_POPT_NOHDRCHK -1031 |
#define | RPMCLI_POPT_NOCONTEXTS -1032 |
#define | RPMCLI_POPT_NOCAPS -1033 |
#define | RPMCLI_POPT_TARGETPLATFORM -1034 |
Functions | |
poptContext | rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Initialize most everything needed by an rpm CLI executable context. More... | |
void | rpmcliConfigured (void) |
Make sure that rpm configuration has been read. More... | |
poptContext | rpmcliFini (poptContext optCon) |
Destroy most everything needed by an rpm CLI executable context. More... | |
RPMK | |
int | rpmcliImportPubkeys (rpmts ts, ARGV_const_t argv) |
Import public key(s) to rpm keyring. More... | |
int | rpmcliVerifySignatures (rpmts ts, ARGV_const_t argv) |
Verify package signatures. More... | |
Variables | |
struct poptOption | rpmcliAllPoptTable [] |
Popt option table for options shared by all modes and executables. More... | |
const char * | rpmcliPipeOutput |
const char * | rpmcliRcfile |
const char * | rpmcliRootDir |
RPMEIU | |
#define | UNINSTALL_NONE INSTALL_NONE |
Bit(s) to control rpmErase() operation. More... | |
#define | UNINSTALL_NODEPS INSTALL_NODEPS |
#define | UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES |
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) , INSTALL_REINSTALL = (1 << 10) } |
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. More... | |
int | rpmInstallSource (rpmts ts, const char *arg, char **specFilePtr, char **cookie) |
Install source rpm package. More... | |
int | rpmInstall (rpmts ts, struct rpmInstallArguments_s *ia, ARGV_t fileArgv) |
Install/upgrade/freshen/reinstall binary rpm package. More... | |
int | rpmErase (rpmts ts, struct rpmInstallArguments_s *ia, ARGV_const_t argv) |
Erase binary rpm package. More... | |
Parsing RPM command line arguments.
Definition in file rpmcli.h.
#define _QUERY_FOR_BITS (QUERY_FOR_LIST|QUERY_FOR_STATE|QUERY_FOR_DUMPFILES) |
#define RPMCLI_POPT_NODEPS -1025 |
#define RPMCLI_POPT_NOFILEDIGEST -1027 /* same as obsolete RPMCLI_POPT_NOMD5 */ |
#define VERIFY_ALL ( VERIFY_FILES | VERIFY_DEPS | VERIFY_SCRIPT ) |
typedef rpmFlags rpmQueryFlags |
typedef rpmFlags rpmQVSources |
typedef rpmFlags rpmVerifyFlags |
int rpmcliImportPubkeys | ( | rpmts | ts, |
ARGV_const_t | argv | ||
) |
Import public key(s) to rpm keyring.
ts | transaction set |
argv | array of pubkey path arguments (NULL terminated) |
Check package and header signatures.
qva | unused |
ts | transaction set |
fd | package file handle |
fn | package file name |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |