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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
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 |
| Sponsored Links | ||
|
|
|
|||
|
Let us assum that your file name is foo.src.rpm.
Install source rpm with Code:
rpm -ivh foo.src.rpm /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 Code:
cd /usr/src/RPMS/i386 ls -l | less I hope this helps |
|
||||
|
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 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |