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!


















good
Thank you – just what I needed to know!
Thank you for your effort. Keep inspiring.
nice article
u r the best
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
[...] 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 |
Круто!!! привет русско-понимающие ))))))