LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is it possible to unpack rpm change file then repack? (https://www.linuxquestions.org/questions/linux-newbie-8/is-it-possible-to-unpack-rpm-change-file-then-repack-161067/)

ghow961 03-22-2004 03:20 PM

Is it possible to unpack rpm change file then repack?
 
I have a binary rpm without the source rpm and I would like to change a file that gets installed (without having to do it post-install).

Is there a tool that can extract the files from an rpm so that I can make the change, and then be able to pack it back into a working rpm again?

Also it would be good if it was possible to change the version number during this process as well.

Thanks.

AutOPSY 03-22-2004 04:18 PM

rpm2tgz
rpmbuild

ghow961 03-23-2004 02:22 PM

Thanks, but that only seems to extract the files without creating any spec listing the information and dependencies of the rpm.

So when I tried to build it with rpmbuild it complained that the name, version, release etc must be present in package.

Do I have the wrong version of rpm2tgz or is there some other way of extracting the spec with the files?

Thanks.


All times are GMT -5. The time now is 08:00 PM.