LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-10-2005, 07:41 PM   #1
darkone66669
Member
 
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
megaspaz
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
or
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
Fusionline
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
darkone66669
Member
 
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
 
  


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
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration