Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

There are times when all you have is binary installer. I hate them because once installed it is quite difficult to uninstall such software, and since my distro (openSUSE 11.4) is rpm-based it is hard to get consistent info about what is installed in the system.

Is there any way to convert binary installer into rpm? For my own purposes only! (it means the machine -- e.g. CPU -- is exactly the same).

The only idea I have -- it is a crazy one -- is to create virtual system (with VBox for example) list all files in the system, execute installer, list all files again. Check what was added, copy those files, and in rpm spec add those files with simple "cp" command.

It is tiresome, but it is worse than that because installer can alter some files, so they would be listed in both cases. So I am looking for something smarter.

For now I would like to make rpm for IntelliJ IDEA.

Any ideas?

share|improve this question
add comment

1 Answer 1

Use rpmbuild to build rpm package.

Here is a nice tutorial.

In short, you will have to:

  1. unpack the content from the binary package to some directory
  2. create a specfile describing your package (meta information) and potential pre/post (un)installation scripts.
  3. use rpmbuild to create rpm from that direcotry as defined in specfile
share|improve this answer
    
And how do I know where those files go to? Not mentioning the data which are only used to alter target files. –  greenoldman Sep 2 '11 at 19:28
1  
@macias: for simple self extracting archives installers you will know... for more complicated, you have to compare system snapshot before and after installation. I have seen nice tutorial some time ago. Will try to find it. –  Michał Šrajer Sep 2 '11 at 19:37
    
I would be grateful, because I have in mind something more than just unzip/unrar ;-) –  greenoldman Sep 3 '11 at 6:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.