LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-31-2004, 05:04 PM   #1
Slayer097
Member
 
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, 06:20 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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).
Or,
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.
Or,
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, 03:46 AM   #3
srichand
Member
 
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
You could get hold of this book http://www.amazon.com/exec/obidos/tg...glance&s=books
called Maximum RPM by Ed Bailey. Quite a good read.

Hope that helped

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

Rep: Reputation: 30
Quote:
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?
 
  


Reply


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 11:53 AM
Source Files atko Debian 1 01-09-2004 08:06 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 02:13 PM
about source files safrout Linux - General 7 04-18-2002 08:42 PM
How to use .spm files (Source Package Files) concoran Linux - General 1 06-10-2001 03:09 PM


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

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