wiki:Packages/rpm/rpm-python/rpm

Version 6 (modified by yasumichi, 11 years ago) (diff)

--

rpm

モジュール

rpm rpm /usr/lib*/python2.6/site-packages/rpm/init.pyc
_rpmb rpm._rpmb /usr/lib*/python2.6/site-packages/rpm/_rpmbmodule.so
transactionrpm.transaction/usr/lib*/python2.6/site-packages/rpm/transaction.pyc

関数

_doHeaderListFromFD (rpm_fd, retrofit)
addMacro (name, value) built-in
archscore built-in
checkSignals built-in
delMacro built-in
dsSingle
expandMacro built-in
headerLoad
labelCompare built-in
log (code, msg) built-in
mergeHeaderListFromFD built-in
readHeaderFromFD
readHeaderListFromFD
readHeaderListFromFile
setEpochPromote built-in
setLogFile built-in
setStats built-in
setVerbosity (self, arg) built-in
signalCaught built-in
signalsCaught
versionCompare built-in

クラス

error _rpm.error
TransactionSetrpm.transaction.TransactionSet
ts rpm.transaction.TransactionSet

ds rpm.ds
fd rpm.fd
fi rpm.fi
hdr rpm.hdr
keyringrpm.keyring
mi rpm.mi
prob rpm.prob
pubkey rpm.pubkey
spec rpm.spec
specPkgrpm.specpkg
te rpm.te

定数

HEADERCONV_*

HEADERCONV_EXPANDFILELIST 0
HEADERCONV_COMPRESSFILELIST 1
HEADERCONV_RETROFIT_V3 2

RPMBUILD_*

RPMBUILD_ISSOURCE 1
RPMBUILD_ISPATCH 2
RPMBUILD_ISICON 4
RPMBUILD_ISNO 8

RPMCALLBACK_*

RPMCALLBACK_UNKNOWN 0
RPMCALLBACK_INST_PROGRESS 1
RPMCALLBACK_INST_START 2
RPMCALLBACK_INST_OPEN_FILE 4
RPMCALLBACK_INST_CLOSE_FILE 8
RPMCALLBACK_TRANS_PROGRESS 16
RPMCALLBACK_TRANS_START 32
RPMCALLBACK_TRANS_STOP 64
RPMCALLBACK_UNINST_PROGRESS 128
RPMCALLBACK_UNINST_START 256
RPMCALLBACK_UNINST_STOP 512
RPMCALLBACK_REPACKAGE_PROGRESS 1024
RPMCALLBACK_REPACKAGE_START 2048
RPMCALLBACK_REPACKAGE_STOP 4096
RPMCALLBACK_UNPACK_ERROR 8192
RPMCALLBACK_CPIO_ERROR 16384
RPMCALLBACK_SCRIPT_ERROR 32768

RPMDBI_*

RPMDBI_PACKAGES 0
RPMDBI_LABEL 2

RPMDEP_*

RPMDEP_SENSE_REQUIRES 0
RPMDEP_SENSE_CONFLICTS 1

RPMFILE_*

RPMFILE_CONFIG 1
RPMFILE_DOC 2
RPMFILE_MISSINGOK 8
RPMFILE_NOREPLACE 16
RPMFILE_GHOST 64
RPMFILE_LICENSE 128
RPMFILE_README 256
RPMFILE_EXCLUDE 512
RPMFILE_UNPATCHED 1024
RPMFILE_PUBKEY 2048

RPMFILE_STATE_*

RPMFILE_STATE_NORMAL 0
RPMFILE_STATE_REPLACED 1
RPMFILE_STATE_NOTINSTALLED 2
RPMFILE_STATE_NETSHARED 3
RPMFILE_STATE_WRONGCOLOR 4

RPMMIRE_*

RPMMIRE_DEFAULT 0
RPMMIRE_STRCMP 1
RPMMIRE_REGEX 2
RPMMIRE_GLOB 3

RPMLOG_*

RPMLOG_EMERG 0
RPMLOG_ALERT 1
RPMLOG_CRIT 2
RPMLOG_ERR 3
RPMLOG_WARNING 4
RPMLOG_NOTICE 5
RPMLOG_INFO 6
RPMLOG_DEBUG 7

RPMPROB_*

RPMPROB_BADARCH 0
RPMPROB_BADOS 1
RPMPROB_PKG_INSTALLED 2
RPMPROB_BADRELOCATE 3
RPMPROB_REQUIRES 4
RPMPROB_CONFLICT 5
RPMPROB_NEW_FILE_CONFLICT 6
RPMPROB_FILE_CONFLICT 7
RPMPROB_OLDPACKAGE 8
RPMPROB_DISKSPACE 9
RPMPROB_DISKNODES 10

RPMPROB_FILTER_*

RPMPROB_FILTER_IGNOREOS 1
RPMPROB_FILTER_IGNOREARCH 2
RPMPROB_FILTER_REPLACEPKG 4
RPMPROB_FILTER_FORCERELOCATE 8
RPMPROB_FILTER_REPLACENEWFILES 16
RPMPROB_FILTER_REPLACEOLDFILES 32
RPMPROB_FILTER_OLDPACKAGE 64
RPMPROB_FILTER_DISKSPACE 128
RPMPROB_FILTER_DISKNODES 256

RPMRC_*

RPMRC_OK 0
RPMRC_NOTFOUND 1
RPMRC_FAIL 2
RPMRC_NOTTRUSTED 3
RPMRC_NOKEY 4

RPMSENSE_*

RPMSENSE_ANY 0
RPMSENSE_LESS 2
RPMSENSE_GREATER 4
RPMSENSE_EQUAL 8
RPMSENSE_PREREQ 64
RPMSENSE_INTERP 256
RPMSENSE_SCRIPT_PRE 512
RPMSENSE_SCRIPT_POST 1024
RPMSENSE_SCRIPT_PREUN 2048
RPMSENSE_SCRIPT_POSTUN 4096
RPMSENSE_SCRIPT_VERIFY 8192
RPMSENSE_FIND_REQUIRES 16384
RPMSENSE_FIND_PROVIDES 32768
RPMSENSE_TRIGGERIN 65536
RPMSENSE_TRIGGERUN 131072
RPMSENSE_TRIGGERPOSTUN 262144
RPMSENSE_SCRIPT_INSTALL 4194304
RPMSENSE_SCRIPT_PREP 1048576
RPMSENSE_SCRIPT_BUILD 2097152
RPMSENSE_SCRIPT_CLEAN 8388608
RPMSENSE_RPMLIB 16777216
RPMSENSE_TRIGGERPREIN 33554432
RPMSENSE_KEYRING 67108864
RPMSENSE_PATCHES 134217728
RPMSENSE_CONFIG 268435456

RPMTAG_*

定数名 rpm.tagnames[値]
RPMTAG_NOT_FOUND -1
RPMTAG_HEADERIMAGE 61HEADERIMAGE
RPMTAG_HEADERSIGNATURES 62HEADERSIGNATURES
RPMTAG_HEADERIMMUTABLE 63HEADERIMMUTABLE
RPMTAG_HEADERREGIONS 64HEADERREGIONS
RPMTAG_HEADERI18NTABLE 100HEADERI18NTABLE
RPMTAG_SIGSIZE 257SIGSIZE
RPMTAG_SIGPGP 259SIGPGP
RPMTAG_PKGID 261SIGMD5
RPMTAG_SIGMD5 261
RPMTAG_SIGGPG 262SIGGPG
RPMTAG_PUBKEYS 266PUBKEYS
RPMTAG_DSAHEADER 267DSAHEADER
RPMTAG_RSAHEADER 268RSAHEADER
RPMTAG_HDRID 269SHA1HEADER
RPMTAG_SHA1HEADER 269
RPMTAG_LONGSIGSIZE 270LONGSIGSIZE
RPMTAG_LONGARCHIVESIZE 271LONGARCHIVESIZE
RPMTAG_N 1000NAME
RPMTAG_NAME 1000
RPMTAG_V 1001VERSION
RPMTAG_VERSION 1001
RPMTAG_R 1002RELEASE
RPMTAG_RELEASE 1002
RPMTAG_E 1003
RPMTAG_EPOCH 1003EPOCH
RPMTAG_SUMMARY 1004SUMMARY
RPMTAG_DESCRIPTION 1005DESCRIPTION
RPMTAG_BUILDTIME 1006BUILDTIME
RPMTAG_BUILDHOST 1007BUILDHOST
RPMTAG_INSTALLTIME 1008INSTALLTIME
RPMTAG_SIZE 1009SIZE
RPMTAG_DISTRIBUTION 1010DISTRIBUTION
RPMTAG_VENDOR 1011VENDOR
RPMTAG_GIF 1012GIF
RPMTAG_XPM 1013XPM
RPMTAG_LICENSE 1014LICENSE
RPMTAG_PACKAGER 1015PACKAGER
RPMTAG_GROUP 1016GROUP
RPMTAG_SOURCE 1018SOURCE
RPMTAG_PATCH 1019PATCH
RPMTAG_URL 1020URL
RPMTAG_OS 1021OS
RPMTAG_ARCH 1022ARCH
RPMTAG_PREIN 1023PREIN
RPMTAG_POSTIN 1024POSTIN
RPMTAG_PREUN 1025PREUN
RPMTAG_POSTUN 1026POSTUN
RPMTAG_OLDFILENAMES 1027OLDFILENAMES
RPMTAG_FILESIZES 1028FILESIZES
RPMTAG_FILESTATES 1029FILESTATES
RPMTAG_FILEMODES 1030FILEMODES
RPMTAG_FILERDEVS 1033FILERDEVS
RPMTAG_FILEMTIMES 1034FILEMTIMES
RPMTAG_FILEDIGESTS 1035FILEMD5S
RPMTAG_FILEMD5S 1035
RPMTAG_FILELINKTOS 1036FILELINKTOS
RPMTAG_FILEFLAGS 1037FILEFLAGS
RPMTAG_FILEUSERNAME 1039FILEUSERNAME
RPMTAG_FILEGROUPNAME 1040FILEGROUPNAME
RPMTAG_ICON 1043ICON
RPMTAG_SOURCERPM 1044SOURCERPM
RPMTAG_FILEVERIFYFLAGS 1045FILEVERIFYFLAGS
RPMTAG_ARCHIVESIZE 1046ARCHIVESIZE
RPMTAG_P 1047PROVIDES
RPMTAG_PROVIDENAME 1047
RPMTAG_PROVIDES 1047
RPMTAG_REQUIREFLAGS 1048REQUIREFLAGS
RPMTAG_REQUIRENAME 1049REQUIRES
RPMTAG_REQUIRES 1049
RPMTAG_REQUIREVERSION 1050REQUIREVERSION
RPMTAG_NOSOURCE 1051NOSOURCE
RPMTAG_NOPATCH 1052NOPATCH

1053: 'CONFLICTFLAGS',

RPMTAG_C 1054CONFLICTS
RPMTAG_CONFLICTS 1054CONFLICTVERSION
RPMTAG_CONFLICTFLAGS 1053
RPMTAG_CONFLICTNAME 1054
RPMTAG_CONFLICTVERSION 1055
RPMTAG_EXCLUDEARCH 1059EXCLUDEARCH
RPMTAG_EXCLUDEOS 1060EXCLUDEOS
RPMTAG_EXCLUSIVEARCH 1061EXCLUSIVEARCH
RPMTAG_EXCLUSIVEOS 1062EXCLUSIVEOS
RPMTAG_RPMVERSION 1064RPMVERSION
RPMTAG_TRIGGERSCRIPTS 1065TRIGGERSCRIPTS
RPMTAG_TRIGGERNAME 1066TRIGGERNAME
RPMTAG_TRIGGERVERSION 1067TRIGGERVERSION
RPMTAG_TRIGGERFLAGS 1068TRIGGERFLAGS
RPMTAG_TRIGGERINDEX 1069TRIGGERINDEX
RPMTAG_VERIFYSCRIPT 1079VERIFYSCRIPT
RPMTAG_CHANGELOGTIME 1080CHANGELOGTIME
RPMTAG_CHANGELOGNAME 1081CHANGELOGNAME
RPMTAG_CHANGELOGTEXT 1082CHANGELOGTEXT
RPMTAG_PREINPROG 1085PREINPROG
RPMTAG_POSTINPROG 1086POSTINPROG
RPMTAG_PREUNPROG 1087PREUNPROG
RPMTAG_POSTUNPROG 1088POSTUNPROG
RPMTAG_BUILDARCHS 1089BUILDARCHS
RPMTAG_O 1090OBSOLETES
RPMTAG_OBSOLETES 1090
RPMTAG_OBSOLETENAME 1090
RPMTAG_VERIFYSCRIPTPROG 1091VERIFYSCRIPTPROG
RPMTAG_TRIGGERSCRIPTPROG 1092TRIGGERSCRIPTPROG
RPMTAG_COOKIE 1094COOKIE
RPMTAG_FILEDEVICES 1095FILEDEVICES
RPMTAG_FILEINODES 1096FILEINODES
RPMTAG_FILELANGS 1097FILELANGS
RPMTAG_PREFIXES 1098PREFIXES
RPMTAG_INSTPREFIXES 1099INSTPREFIXES
RPMTAG_CAPABILITY 1105CAPABILITY
RPMTAG_SOURCEPACKAGE 1106SOURCEPACKAGE
RPMTAG_PROVIDEFLAGS 1112PROVIDEFLAGS
RPMTAG_PROVIDEVERSION 1113PROVIDEVERSION
RPMTAG_OBSOLETEFLAGS 1114OBSOLETEFLAGS
RPMTAG_OBSOLETEVERSION 1115OBSOLETEVERSION
RPMTAG_DIRINDEXES 1116DIRINDEXES
RPMTAG_BASENAMES 1117BASENAMES
RPMTAG_DIRNAMES 1118DIRNAMES
RPMTAG_ORIGDIRINDEXES 1119ORIGDIRINDEXES
RPMTAG_ORIGBASENAMES 1120ORIGBASENAMES
RPMTAG_ORIGDIRNAMES 1121ORIGDIRNAMES
RPMTAG_OPTFLAGS 1122OPTFLAGS
RPMTAG_DISTURL 1123DISTURL
RPMTAG_PAYLOADFORMAT 1124PAYLOADFORMAT
RPMTAG_PAYLOADCOMPRESSOR 1125PAYLOADCOMPRESSOR
RPMTAG_PAYLOADFLAGS 1126PAYLOADFLAGS
RPMTAG_INSTALLCOLOR 1127INSTALLCOLOR
RPMTAG_INSTALLTID 1128INSTALLTID
RPMTAG_REMOVETID 1129REMOVETID
RPMTAG_RHNPLATFORM 1131RHNPLATFORM
RPMTAG_PLATFORM 1132PLATFORM
RPMTAG_PATCHESNAME 1133PATCHESNAME
RPMTAG_PATCHESFLAGS 1134PATCHESFLAGS
RPMTAG_PATCHESVERSION 1135PATCHESVERSION
RPMTAG_FILECOLORS 1140FILECOLORS
RPMTAG_FILECLASS 1141FILECLASS
RPMTAG_CLASSDICT 1142CLASSDICT
RPMTAG_FILEDEPENDSX 1143FILEDEPENDSX
RPMTAG_FILEDEPENDSN 1144FILEDEPENDSN
RPMTAG_DEPENDSDICT 1145DEPENDSDICT
RPMTAG_SOURCEPKGID 1146SOURCEPKGID
RPMTAG_FILECONTEXTS 1147FILECONTEXTS
RPMTAG_FSCONTEXTS 1148FSCONTEXTS
RPMTAG_RECONTEXTS 1149RECONTEXTS
RPMTAG_POLICIES 1150POLICIES
RPMTAG_PRETRANS 1151PRETRANS
RPMTAG_POSTTRANS 1152POSTTRANS
RPMTAG_PRETRANSPROG 1153PRETRANSPROG
RPMTAG_POSTTRANSPROG 1154POSTTRANSPROG
RPMTAG_DISTTAG 1155DISTTAG
RPMTAG_DBINSTANCE 1195DBINSTANCE
RPMTAG_NVRA 1196NVRA
RPMTAG_FILENAMES 5000FILENAMES
RPMTAG_FILEPROVIDE 5001FILEPROVIDE
RPMTAG_FILEREQUIRE 5002FILEREQUIRE
RPMTAG_FSNAMES 5003FSNAMES
RPMTAG_FSSIZES 5004FSSIZES
RPMTAG_TRIGGERCONDS 5005TRIGGERCONDS
RPMTAG_TRIGGERTYPE 5006TRIGGERTYPE
RPMTAG_ORIGFILENAMES 5007ORIGFILENAMES
RPMTAG_LONGFILESIZES 5008LONGFILESIZES
RPMTAG_LONGSIZE 5009LONGSIZE
RPMTAG_FILECAPS 5010FILECAPS
RPMTAG_FILEDIGESTALGO 5011FILEDIGESTALGO
RPMTAG_BUGURL 5012BUGURL
RPMTAG_EVR 5013EVR
RPMTAG_NVR 5014NVR
RPMTAG_NEVR 5015NEVR
RPMTAG_NEVRA 5016NEVRA
RPMTAG_HEADERCOLOR 5017HEADERCOLOR
RPMTAG_VERBOSE 5018VERBOSE
RPMTAG_EPOCHNUM 5019EPOCHNUM

RPMTRANS_FLAG_*

RPMTRANS_FLAG_TEST 1
RPMTRANS_FLAG_BUILD_PROBS 2
RPMTRANS_FLAG_NOSCRIPTS 4
RPMTRANS_FLAG_JUSTDB 8
RPMTRANS_FLAG_NOTRIGGERS 16
RPMTRANS_FLAG_NODOCS 32
RPMTRANS_FLAG_ALLFILES 64
RPMTRANS_FLAG_KEEPOBSOLETE 128
RPMTRANS_FLAG_NOCONTEXTS 256
RPMTRANS_FLAG_REPACKAGE 1024
RPMTRANS_FLAG_REVERSE 32768
RPMTRANS_FLAG_NOTRIGGERPREIN 65536
RPMTRANS_FLAG_NOPRE 131072
RPMTRANS_FLAG_NOPOST 262144
RPMTRANS_FLAG_NOTRIGGERIN 524288
RPMTRANS_FLAG_NOTRIGGERUN 1048576
RPMTRANS_FLAG_NOPREUN 2097152
RPMTRANS_FLAG_NOPOSTUN 4194304
RPMTRANS_FLAG_NOTRIGGERPOSTUN 8388608
RPMTRANS_FLAG_NOFILEDIGEST 134217728
RPMTRANS_FLAG_NOMD5 134217728
RPMTRANS_FLAG_NOSUGGEST 268435456
RPMTRANS_FLAG_ADDINDEPS 536870912
RPMTRANS_FLAG_NOCONFIGS 1073741824

_RPMVSF_*

_RPMVSF_NOHEADER 3840
_RPMVSF_NODIGESTS 197376
_RPMVSF_NOSIGNATURES 789504
_RPMVSF_NOPAYLOAD 983040

RPMVSF_*

RPMVSF_DEFAULT 0
RPMVSF_NOHDRCHK 1
RPMVSF_NEEDPAYLOAD 2
RPMVSF_NOSHA1HEADER 256
RPMVSF_NOMD5HEADER 512
RPMVSF_NODSAHEADER 1024
RPMVSF_NORSAHEADER 2048
RPMVSF_NOSHA1 65536
RPMVSF_NOMD5 131072
RPMVSF_NODSA 262144
RPMVSF_NORSA 524288

TR_*

TR_ADDED 1
TR_REMOVED 2

VERIFY_*

VERIFY_DIGEST 524288
VERIFY_SIGNATURE 1048576

Other

__doc__ RPM Module\n\nThis module enables you to manipulate rpms and the rpm database.\n\n
__file__ /usr/lib64/python2.6/site-packages/rpm/init.pyc
__name__ rpm
__package__ rpm
__path__ ['/usr/lib64/python2.6/site-packages/rpm']
__version__ 4.8.1
__version_info__('4', '8', '1')