1996-01-06 02:12:55 +08:00
|
|
|
#ifndef _H_INSTALL
|
|
|
|
#define _H_INSTALL
|
|
|
|
|
1998-01-29 00:49:43 +08:00
|
|
|
#include "lib/rpmlib.h"
|
|
|
|
|
1996-11-19 02:02:36 +08:00
|
|
|
#define INSTALL_PERCENT (1 << 0)
|
|
|
|
#define INSTALL_HASH (1 << 1)
|
|
|
|
#define INSTALL_NODEPS (1 << 2)
|
1997-07-02 00:24:08 +08:00
|
|
|
#define INSTALL_NOORDER (1 << 3)
|
1998-12-17 05:58:53 +08:00
|
|
|
#define INSTALL_LABEL (1 << 4) /* set if we're being verbose */
|
|
|
|
#define INSTALL_UPGRADE (1 << 5)
|
1996-01-23 05:12:55 +08:00
|
|
|
|
1996-11-19 02:02:36 +08:00
|
|
|
#define UNINSTALL_NODEPS (1 << 0)
|
1997-04-01 04:15:41 +08:00
|
|
|
#define UNINSTALL_ALLMATCHES (1 << 1)
|
1996-06-11 01:41:24 +08:00
|
|
|
|
1999-01-07 01:33:50 +08:00
|
|
|
int doInstall(const char * rootdir, const char ** argv, int installFlags,
|
1998-12-17 05:58:53 +08:00
|
|
|
int interfaceFlags, int probFilter, rpmRelocation * relocations);
|
1999-01-07 01:33:50 +08:00
|
|
|
int doSourceInstall(const char * prefix, const char * arg, const char ** specFile,
|
1997-10-30 00:02:07 +08:00
|
|
|
char ** cookie);
|
1999-01-07 01:33:50 +08:00
|
|
|
int doUninstall(const char * rootdir, const char ** argv, int uninstallFlags,
|
1996-06-11 01:41:24 +08:00
|
|
|
int interfaceFlags);
|
1999-01-07 01:33:50 +08:00
|
|
|
void printDepFlags(FILE * f, const char * version, int flags);
|
1999-04-17 22:23:42 +08:00
|
|
|
void printDepProblems(FILE * f, struct rpmDependencyConflict * conflicts,
|
|
|
|
int numConflicts);
|
1996-01-06 02:12:55 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|