Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-10-2005, 07:41 PM   #1
Registered: Mar 2004
Distribution: Fedora 10
Posts: 85

Rep: Reputation: 15
how do I make a binary rpm from a source rpm

How do I make a Binary RPM from a src RPM and or remove the source junk from the rpm so I can compile it.
Old 01-10-2005, 07:43 PM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
assuming you have a working compiler and depending on which version of rpm you have, try:

rpm --rebuild filename.src.rpm
rpmbuild --rebuild filename.src.rpm

those should create rpms in /usr/src somewhere depending on your distro.

*redhat will create the rpms in /usr/src/redhat/RPMS/i386
Old 01-10-2005, 10:04 PM   #3
LQ Newbie
Registered: Jan 2005
Posts: 13

Rep: Reputation: 0
once you get an src rpm , install it
rpm -ivh <filename.src.rpm>
then chek in /usr/src/redhat/SPECS/<filename.spec> or /usr/local/redhat/SPECS/<filename.spec>(you can edit spec file to ur requirement by setting proper configuration options)
go to spec directory
and run
rpm -bi <filename.spec>
it places the builded rpm in /usr/src/redhat/RPMS/ or the other path
Old 01-11-2005, 10:42 AM   #4
Registered: Mar 2004
Distribution: Fedora 10
Posts: 85

Original Poster
Rep: Reputation: 15
ty very much for the help it actually worked with some minor modifications the rebuild failed but it unpacked everything into the build folder and I compiled the old fashion way since I don't know much about spec files and how to edit them so they are right now I have a slightly different problem with it but will search for a little bit before posting


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
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
where does it go when rpm a rpm source file feetyouwell Linux - Software 1 09-03-2004 04:14 PM
how to make rpm package from source tarball? demmylls Linux - General 2 03-10-2004 11:31 AM
binary vs source RPM (and other RPM questions) calimer Linux - Software 4 06-22-2003 12:33 AM
rpm: cannot execute binary file aqoliveira Linux - General 1 12-26-2001 02:38 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:34 PM.

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