<?php $file = "/path/to/file.rpm";$rpmr = rpm_open($file);$name = rpm_get_tag($rpmr, RPMREADER_NAME); echo "$name<br>\n";rpm_close($rpmr);?>