* First epoch:version-release string *
* @param string $evr2* Second epoch:version-release string *
* @return int* < 0 if evr1 < evr2, > 0 if evr1 > evr2, 0 if equal. *
* @since 0.1.0 */ function rpmvercmp(string $evr1, string $evr2) {} /** * Retrieve information from a RPM file, reading its metadata. * If given error will be used to store error message * instead of raising a warning. The return * value is a hash table, * or false if it fails. * * @param string $path* Path to the RPM file. *
* @param bool $full [optional]* If TRUE all information headers for the file are retrieved, else only a minimal set. *
* @param null|string &$error [optional]* If provided, will receive the possible error message, and will avoid a runtime warning. *
* * @return array|null* An array of information or NULL on error. *
* @since 0.1.0 */ function rpminfo(string $path, bool $full = false, ?string &$error = null) {} /** * Retrieve information about an installed package, from the system RPM database. * * @param string $nevr* Name with optional epoch, version and release. *
* @param bool $full [optional]* If TRUE all information headers for the file are retrieved, else only a minimal set. *
* * @return array|null* An array of arrays of information or NULL on error. *
* @since 0.2.0 */ function rpmdbinfo(string $nevr, bool $full = false) {} /** * Retriev information from the local RPM database. * * @param string $pattern* Value to search for. *
* @param int $rpmtag [optional]* Search criterion, one of RPMTAG_* constant. *
* @param int $rpmmire [optional]* Pattern type, one of RPMMIRE_* constant. * When < 0 the criterion must equals the value, and database index is used if possible. *
* @param bool $full [optional]* If TRUE all information headers for the file are retrieved, else only a minimal set. *
* * @return array|null* An array of arrays of information or NULL on error. *
* @since 0.3.0 */ function rpmdbsearch(string $pattern, int $rpmtag = RPMTAG_NAME, int $rpmmire = -1, bool $full = false) {}