Can you use RPM to distribute a *.bin file
I've never had to do this and I'm not really sure you can do it or not. But can I use RPM to distribute an already created *.bin file (a Linux self extracting binary files). My scenario is this, we use RPM to distribute all of our software. I have a piece of vendor software thats already a bin file. Say myapp.bin. I would like to use RPM to distribute the software to say /tmp and then kick off a script to install myapp.bin as part of the RPM %post%. Is this possible? If so, does anyone have a SPEC file example.
Than开发者_Go百科ks
Why not extract the self-extractor at build-time, then include the extracted, installed files in the RPM?
You can presumably do this with the scripts in the %build and %install sections.
Then nobody would need to worry about running the self-extractor, it would all be already there.
You can probably just extract the .bin file to the buildroot (%setup), execute it (in the %build section), and then do any modifications in the %install section.
Finally, just list the installed files in the %files section..if you post what you have for a spec I can probably adjust to enough to illustrate what I am saying if this is not clear.
精彩评论