Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, i already searched trough the RPM documentation, but couldn't find anything in this direction. If I have a program, from which I only have the precompiled binary files available, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    1

    build RPM out of binary-files


    Hi,

    i already searched trough the RPM documentation, but couldn't find anything in this direction.
    If I have a program, from which I only have the precompiled binary files available, is it possible to pack such a program into an RPM-package, or do I need the source-files, as how i understood it normally rpmbuild compiles the rpm-package out of the source-code.

    Thanks

    Martin

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    You need the rpm-build package for your system, then you need to read the man pages for rpmbuild as well as other documentation on how to build rpm files. It is not easy. My wife and I are both professional Linux software people and neither of us like to do that... Getting everything just so in order to build the RPM is a major PITA. It is better to package the binaries into a compressed tarball along with an installation script. My wife builds software installation packages from binaries for physics research labs all over the world, and none of them are packaged as RPMs. Besides the cruft associated with building RPMs, there is the fact that some of the people doing the installation need them to be installed by non-admin accounts for testing, avoiding interference with standard software of the same type, etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    5
    ya you told the solution of making the tarball of all binnaries. bt i m interested in the RPM package of those binnaries. Can anybody plz help me for tht.....
    Instead of creating the RPM of souce i wanna create it of binnaries .....

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    See the manpage for the rpmbuild command. Here is the description from the man page on CentOS/RHEL 5:
    Code:
    DESCRIPTION
           rpmbuild  is  used  to build both binary and source software packages.  A package
           consists of an archive of files and meta-data  used  to  install  and  erase  the
           archive  files.  The  meta-data  includes  helper  scripts,  file attributes, and
           descriptive information about the  package.   Packages  come  in  two  varieties:
           binary  packages,  used to encapsulate software to be installed, and source pack-
           ages, containing the source code and recipe necessary to produce binary packages.
    
           One  of  the following basic modes must be selected: Build Package, Build Package
           from Tarball, Recompile Package, Show Configuration.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    5
    actually i m interested in is...
    instead of source i have just executable thn , as i cn create rpm of source can i create the rpm of those executable.
    as an any1 gives me just an executable and says me to create the rpm out of it, is thr any way for tht...
    doing rpm of source is fine....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •