rpmdbsearchSearch RPM packages Description
arraynull rpmdbsearch(
string $pattern ,int $rpmtag = RPMTAG_NAME,int $rpmmire = -1,bool $full = false ) Search packages in the system RPM database. Parameters
Return ValuesAn array of array of information or NULL on error. Examples
Example #1 Searching for the package owning a file
The above example will output: Array ( [0] => Array ( [Name] => php-cli [Version] => 7.4.4 [Release] => 1.fc32 [Summary] => Command-line interface for PHP [Arch] => x86_64 ) ) See Also
|