cavaliergopher / rpm

A Go implementation of the RPM file format
BSD 3-Clause "New" or "Revised" License
169 stars 44 forks source link

Which methods to parse primary.xml.gz, filelists.xml.gz, other.xml.gz files? #21

Closed mcandre closed 4 years ago

mcandre commented 4 years ago

Could there be API methods for parsing/validating the primary.xml.gz, filelists.xml.gz, and/or other.xml.gz files?

https://blog.packagecloud.io/eng/2015/07/20/yum-repository-internals/

cavaliercoder commented 4 years ago

I did start work on this, but it proved a little too difficult and not that useful, given the extensive Python API already available. I'd be happy to revisit if you have a strong use case.

Here's the how far I made it (in a branch on Y10K project): https://github.com/cavaliercoder/y10k/tree/native_rpm/yum

cavaliercoder commented 4 years ago

I think the biggest problem was there was no good Go implementation of the XZ compression format used by yum.