[英]How to decompress RPM file in Java?
Recently, I just wrote an eclipse plugin to auto deploy one specific Java EE application to my tomcat server. 最近,我刚刚编写了一个eclipse插件,将一个特定的Java EE应用程序自动部署到我的tomcat服务器。 During the process, there was a step which needed to decompress RPM file downloaded from build server.
在此过程中,有一个步骤需要解压缩从构建服务器下载的RPM文件。 When I searched the solution from Google, nothing found.
当我从Google搜索解决方案时,什么都没找到。 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.
我只知道存在一个公用的compress lib来解压缩各种存档文件,例如gzip / cpio / ar / tar等。但是对于RPM文件,它不起作用。 Can anyone else know how to decompress RPM file using Java?
还有谁知道如何使用Java解压缩RPM文件吗? Thanks in advance.
提前致谢。
我实际上并没有尝试过,但是它保证了您正在寻找的功能:
http://code.google.com/p/redline-rpm
As comments above, I just tried the method using 7-zip command line method, it works!!! 如上所述,我只是使用7-zip命令行方法尝试了该方法,所以可以!!! For the usage of 7-zip command line, you can visit the 7-zip official website or manual book existed in your install directory.
有关7-zip命令行的用法,您可以访问安装目录中存在的7-zip官方网站或手册。 Just a kind reminder: be sure to use 32-bit version for the OS compatibility.
提醒您:请确保使用32位版本以实现OS兼容性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.