LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-21-2003, 05:09 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
Building RPM via src.Rpm


How can I build RPM if I possess the src.rpm file? I searched the man page, but didn't find the way.
 
Old 09-21-2003, 06:59 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

Type the following cmd rpm -Uvh "package-build.arch.rpm"

chow
 
Old 02-20-2006, 05:29 PM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
When you install a *.src.rpm, it is installed under /usr/src/redhat/ (/usr/src/packages/ on SuSE). A source tarball(s) and patches are installed in the SOURCES subdirectory, and a <package-name>.spec file is copied to the SPECS directory.

You use the rpmbuild command to build or install from source. There are different stages, and the rpmbuild options let you stop at any stage. For example, suppose you already have the package installed but you want access to the patched document source.
You could run "rpmbuild -bp <package-name>.spec" to apply the patches.

To apply the patches and build new binary and source packages, run
rpmbuild -ba <package-name>.spec

To apply the patches, compile the source, and install the package run:
rpmbuild -bi <package-name>.spec
 
  


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
building .src.rpm -> unknown option gletare Fedora 2 11-05-2005 05:44 PM
Building evolution-data-server-1.0.2-7.src.rpm louisb Linux - Enterprise 1 07-02-2005 05:45 PM
Building evolution-data-server-1.0.2-7.src.rpm louisb Linux - General 1 06-22-2005 09:21 AM
Building Mplayer W/alsa from src.rpm mickeyboa Fedora 2 12-20-2004 08:44 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM


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