Finding a File in an RPM via Java

I had to find a file in an RPM using Java. It was a really handy learning experience so I used the open source libraries which support a developer compressing and opening cpio, rpm files. Commons IO has a nice IOUtils feature which I used for ease of use.

Download the files from
Apache Commons IO
Apache Commons Compress
Redline RPM

There are a lot of tips included in the following gist.

 

Leave a Reply

Your email address will not be published. Required fields are marked *