nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Installing software Source RPMs

This is a discussion on Installing software Source RPMs within the Linux software forums, part of the Linux Getting Started category; Ok I need to make some changes to source code which is in Source RPM. I'm not sure what to ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-24-2005, 12:22 AM
redhatnoob
Guest
 
Posts: n/a
Default Installing software Source RPMs

Ok I need to make some changes to source code which is in Source RPM. I'm not sure what to do next? I can use rpm command to install src-rpm file but then I have no idea at all how to compile application and rebuild that rpm again?

Please give me step by step instructions

I'm using RED HAT Linux 4
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-24-2005, 01:18 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Let us assum that your file name is foo.src.rpm.

Install source rpm with
Code:
rpm -ivh  foo.src.rpm
It will create files in /usr/src directory

/usr/src/SOURCES - it will store actual source code, so if u make any modification place them here again along with patchs

/usr/src/SPECS - stores rpm SPECS file, it needed to rebuildrpm file

So to rebuild foo package u need to goto /usr/src/SPECS directory
cd /usr/src/SPECS

and type following command to build the spec file
Code:
rpmbuild -bb foo.spec
This creates a new RPM in /usr/src/RPMS/i386 directory
Code:
cd /usr/src/RPMS/i386
ls -l | less
You can copy rpm or install from /usr/src/RPMS/i386 directory

I hope this helps
Reply With Quote
  #3 (permalink)  
Old 12-24-2005, 01:20 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Also bookmark following two urls
http://rpm.org/
http://www.rpm.org/max-rpm/index.html

Don't forget to read man page of rpm command
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Source src.rpm vs binary rpm files shankar100 Linux software 2 06-15-2007 05:06 PM
The source seems encrypted and can't be read. Are you try to raj Linux hardware 1 01-03-2007 08:59 AM
Ubuntu Linux install software from source code tar ball toor Linux software 4 07-14-2006 05:37 PM
find out which rpms are installed Linux software 1 01-10-2006 01:25 PM
BIND 9 and Query-Source Ashish Pathak Linux software 2 02-07-2005 01:42 PM


All times are GMT +5.5. The time now is 09:21 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36