rpmdbsearchSearch RPM packages 説明
arraynull rpmdbsearch(
string $pattern ,int $rpmtag = RPMTAG_NAME,int $rpmmire = -1,bool $full = false ) Search packages in the system RPM database. パラメータ
戻り値An array of array of information or NULL on error. 例
例1 Searching for the package owning a file
上の例の出力は以下となります。 Array ( [0] => Array ( [Name] => php-cli [Version] => 7.4.4 [Release] => 1.fc32 [Summary] => Command-line interface for PHP [Arch] => x86_64 ) ) 参考
|