CXXVIII. RPM Header Reading FunctionsIntroducciónThis module allows you to read the meta information stored in the headers of a RedHat Package Manager (RPM) file. RequisitosThe RPMReader extension requires PHP 5. InstalaciónRPMReader is not bundled with PHP. It is a PECL extension and can be located here: http://pecl.php.net/package/rpmreader. To enable extname support, configure PHP with --with-rpmreader Tipos de recursosThere is one resource type used by the RPMReader module. The resource is a file pointer which identifies the RPM file with which to work. Constantes predefinidasEstas constantes están definidas por esta extensión y estarán disponibles solamente cuando la extensión ha sido o bien compilada dentro de PHP o grabada dinámicamente en tiempo de ejecución. The following list of constants are used to obtain information using the rpm_get_tag() function. These constants represent the tag number to be retrieved from the RPM file's header section. Descriptions are given below as to what data the tag number constants reference.
EjemplosThis example will open an RPM file and read the name, version, and release from the RPM file, echo the results, and close the RPM file.
1337855189 .................... |
||||||||||