(PECL rpminfo >= 1.2.0)
rpmexpand — Retrieve expanded value of a RPM macro
text
A string with concatenated macro expansions.
Beispiel #1 A rpmexpand() example
<?php
$distro = rpmexpand("%{?fedora:Fedora %{fedora}}%{?rhel:Enterprise Linux %{rhel}}");
print_r($distro);
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
Fedora 41