Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


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

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


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

Sreekumar T G
Old 02-22-2007, 03:18 AM   #2
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
Old 02-22-2007, 04:11 AM   #3
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
#rpmbuild --rebuild somefile.src.rpm
Old 02-23-2007, 06:23 PM   #4
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.



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

All times are GMT -5. The time now is 04:34 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