RPM files are essentially GNU zip files with an additional header. If you are interested in the actual format, read https://www.redhat.com/docs/books/max-rpm/max-rpm-html/s1-rpm-file-format-rpm-file-format.html Best regards, Christian