Recently, I just wrote an eclipse plugin to auto deploy one specific Java EE application to my tomcat server. During the process, there was a step which needed to decompress RPM file downloaded from build server. When I searched the solution from Google, nothing found. I just know that there exists a commons compress lib to decompress various archived files, such as gzip/cpio/ar/tar etc. But for RPM file, it doesn’t work. Can anyone else know how to decompress RPM file using Java? Thanks in advance.
Share
As comments above, I just tried the method using 7-zip command line method, it works!!! For the usage of 7-zip command line, you can visit the 7-zip official website or manual book existed in your install directory. Just a kind reminder: be sure to use 32-bit version for the OS compatibility.