Merging two rpms
debian at herakles.homelinux.org
Wed Dec 28 13:21:53 UTC 2005
Paul Smith wrote:
> Dear All
> Is there some way of merging two rpms into a single one?
> Thanks in advance,
rpm2cpio <the first> | cpio
# man cpio for the grotties
rpm2cpio <the second> | cpio
Now you have everything laid out in /tmp/sumware
%build is a noop.
%install rearranges the the binaries to suit your taste.
Don't forget to adapt and mutilate the above using the appropriate rpm
macroes and/or variables.
I guess the sources are the initial rpms.
Of course, I may well have misunderstood your question. If you're
starting with two different sourc rpms the answer's quite different,
likely more complex and reads, "It depends."
Note the above technique works (with minor mods) starting with tarballs,
starting with an rpm that you want to change a little (but watch the
gpm if you redistribute!), starting with an rpm for Some Other
Distribution (you might wish to move stuff from /opt or change placement
of some files to conform more closely to One True Way[tm]. It also works
starting with Debian packages.
In some cases you will need to fiddle with deps.
1aaaaaaa at computerdatasafe.com.au Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
More information about the fedora-list