LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-22-2007, 01:49 AM   #1
sreekumartg
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
How can I generate / build and RPM from *.src.rpm file


Hello,

I am looking for how can I build an RPM from an .src.rpm file and install it to the system...

Regards
Sreekumar T G
 
Old 02-22-2007, 02:18 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not something I've done for a while. Maybe this will help

http://plug.princeton.edu/linux/inde...d=46&Itemid=43
 
Old 02-22-2007, 03:11 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
All you would need to do is
Code:
#rpmbuild --rebuild somefile.src.rpm
 
Old 02-23-2007, 05:23 PM   #4
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
1) Install the source package using rpm -ivh somepackage.src.rpm. This will place the source files in /usr/src/redhat/SOURCES and put a spec file in /usr/src/redhat/SPECS.
2) cd /usr/src/redhat/SPECS
3) rpmbuild -ba somepackage.spec

The binary rpm will end up under the /usr/src/redhat/RPMS directory in one of the architecture directories such as i386.

Bill
 
  


Reply



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
anaconda build from src rpm fails LampMan Fedora 3 03-28-2005 02:55 AM
Mandrake 10.0 Nforce 2 src.rpm build failure iihay Mandriva 7 07-19-2004 07:08 PM
how do I compile or build a src.rpm driver? Falafel Linux - Software 1 11-19-2003 06:40 AM
How to build src.rpm on RH9 xprometeus Linux - Distributions 3 07-20-2003 08:04 AM
RedHat and src.rpm build of MySQL wdingus Linux - Software 3 04-15-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:45 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
Open Source Consulting | Domain Registration