Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-31-2004, 04:04 PM   #1
Registered: Dec 2004
Distribution: Slack 10
Posts: 59

Rep: Reputation: 15
Source files

How do I make an rpm or deb or whatever out of source files? Thanks.
Old 12-31-2004, 05:20 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
To make an rpm from a source tarball, you need to write an rpm spec file. Deb probably has something similar.
For the full documentation on writing rpm spec files, check out the Documentation links at the RH website, and download a copy of Max-rpm (700+ pages - all you could ever want to know about rpm).
cheat a little. Get checkinstall and use it to install a tarball (choose the option that makes both a binary and src rpm). Then unpack the .src.rpm and inspect the spec file to see how they're written.
do the same with any .src.rpm.
The spec file tells rpm what to do with the tarball and the files within. Max-rpm also goes into considerable depth on how to construct the build tree to make the tarball.
Go read. I wish you success. It's a trip the first time you get it to work.
Old 01-01-2005, 02:46 AM   #3
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
You could get hold of this book
called Maximum RPM by Ed Bailey. Quite a good read.

Hope that helped

Old 01-01-2005, 03:50 AM   #4
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Originally posted by bigrigdriver
To make an rpm from a source tarball, you need to write an rpm spec file.
Doesn't rpmbuild automate this?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
Source Files atko Debian 1 01-09-2004 07:06 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM
about source files safrout Linux - General 7 04-18-2002 07:42 PM
How to use .spm files (Source Package Files) concoran Linux - General 1 06-10-2001 02:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration