rpmexpand

Retrieve expanded value of a RPM macro

&reftitle.description; `string` `rpmexpand` `string` `text`

Retrieve expanded value of a RPM macro.

&reftitle.parameters;

`text`

- Text with RPM macros to expand.

&reftitle.returnvalues;

A `string` with concatenated macro expansions.

&reftitle.examples;

### A `rpmexpand` example

    <?php
    $distro = rpmexpand("%{?fedora:Fedora %{fedora}}%{?rhel:Enterprise Linux %{rhel}}");
    print_r($distro);
    ?>

&example.outputs;

    Fedora 41

&reftitle.seealso;

- `rpmexpandnumeric`