Extract RPM

Is it possible to extract RPM packages in Haiku? It contains Qemu UEFI firmware images.

The GNU tar command should be able to do ?

If one can port rpm2cpio and cpio, this could work:

rpm2cpio package.rpm | cpio -idmv

with “7z -e archive.rpm”, a .cpio file is extracted. Then “cpio -ivmf < file.cpio”.