Synapse ↵

logically incoherent… not!

Convert source code (tar.gz) to a RPM installable

New releases of Linux programs are generally released in the tar.gz format consisting of source code of the application. Normally you compile these programs but at times they throw some compiler errors in your face which just seem gibberish to a novice. A much easier way to install programs is when they are in the RPM package format.

Here’s a simple guide that will help you convert those source code files (tar.gz) into RPM packages -

To do this, first of all install the package checkinstall from your Linux dvd. If it doesn’t exist then yu can google for it and download it.
Then unpack your source package and cd to the directory where you unpacked the tar.gz file.
Run the following two commands:

./configure
make

But now instead of running make install you run checkinstall.

Answer the questions, edit some values if they are not appropriate and let the program run.
When finished, you’ll find your uninstalled RPM in /usr/src/packages/RPMS/i686

Your .rpm file is ready for future use!

December 24, 2005 - Posted by synapse | Linux | | 8 Comments

8 Comments »

  1. good

    Comment by Ian | May 17, 2007 | Reply

  2. Thank you – just what I needed to know!

    Comment by Marilyn W | July 22, 2007 | Reply

  3. Thank you for your effort. Keep inspiring. :)

    Comment by Mahesh | November 9, 2007 | Reply

  4. nice article

    Comment by xxxxx | February 7, 2008 | Reply

  5. u r the best

    Comment by mohamedabouzied | May 29, 2008 | Reply

  6. Rpm is successfully created but it gives error while installing it. That is:
    error: unpacking of archive failed on file /bin/ln;48b1f27c: cpio: MD5 sum mismatch

    Comment by jigna | August 25, 2008 | Reply

  7. [...] maybe this will help you. Convert source code (tar.gz) to a RPM installable Synapse ? [...]

    Pingback by Converting .tar files into RPM - Linux - The UNIX and Linux Forums | November 5, 2008 | Reply

  8. Круто!!! привет русско-понимающие ))))))

    Comment by Known | November 13, 2008 | Reply


Leave a comment