rpminfoGet information from a RPM file 説明arraynull rpminfo(string
$path , bool $full = false , string &$error = ?)Retrieve information about a local file, a RPM package. パラメータ
戻り値An array of information or NULL on error. 例
例1 A rpminfo example
上の例の出力は以下となります。 Array ( [Name] => php-pecl-rpminfo [Version] => 0.4.2 [Release] => 1.el8 [Summary] => RPM information [Buildtime] => 1586244821 [Arch] => x86_64 ) 参考
|