Retrieve expanded value of a RPM macro
$text
Retrieve expanded value of a RPM macro.
text
A string with concatenated macro expansions.
例1 A rpmexpand example
<?php $distro = rpmexpand("%{?fedora:Fedora %{fedora}}%{?rhel:Enterprise Linux %{rhel}}"); print_r($distro); ?>
上の例の出力は以下となります。
Fedora 41