nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Source src.rpm vs binary rpm files

This is a discussion on Source src.rpm vs binary rpm files within the Linux software forums, part of the Linux Getting Started category; Hello All, Could you tell me the difference between src.rpm and general rpms for i386 machine. Also please tell me ...


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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 06-15-2007, 02:56 PM
Junior Member
User
 
Join Date: Dec 2006
Location: Hyderabad,India.
Posts: 16
Rep Power: 0
shankar100
Send a message via Yahoo to shankar100
Default Source src.rpm vs binary rpm files

Hello All,

Could you tell me the difference between src.rpm and general rpms for i386 machine. Also please tell me how to rebuild RPM? I have redhat EL 4.0 installed on Intel machine ( can also tell me what os I have (ex, 32-bit or 64 bit) where to check this information.

It look like these are basic questions, please reply above questions.

Thanks in advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-15-2007, 04:37 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,034
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Hi!

Quote:
Originally Posted by shankar100 View Post
Could you tell me the difference between src.rpm and general rpms for i386 machine.
Source rpm contains actual source code and patch files for Linux application. Use source rpm to compile and customize application as per your requirements. All source rpm file has src.rpm extension

if you use RPM on an Intel-based computer, you'd normally expect to find i386 there. If you use x86_64 bit computer you will see x86_64 in RPM file names. Normal rpm file has only binary files and no source code at all.


Quote:
Originally Posted by shankar100 View Post
Also please tell me how to rebuild RPM?
Just rebuild
Code:
rpm --rebuild file.src.rpm
To customize package, first install src.rpm:
Code:
rpm -ivh file.src.rpm
cd /usr/src/redhat/SPECS/
vi file.spec
Make changes and rebuild rpm
Code:
rpmbuild -bb file.spec
Read man page of rpm, rpmbuild or better read this free book http://www.rpm.org/max-rpm/index.html
Quote:
Originally Posted by shankar100 View Post
I have redhat EL 4.0 installed on Intel machine ( can also tell me what os I have (ex, 32-bit or 64 bit) where to check this information.
Use uname command
Code:
uname -mrs
uname -r
See our FAQ : Linux how to find if processor is 64 bit or not | Frequently Asked Questions

Hope this helps!
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 06-15-2007, 05:06 PM
Junior Member
User
 
Join Date: Dec 2006
Location: Hyderabad,India.
Posts: 16
Rep Power: 0
shankar100
Send a message via Yahoo to shankar100
Smile

Quote:
Originally Posted by nixcraft View Post
Hi!


Source rpm contains actual source code and patch files for Linux application. Use source rpm to compile and customize application as per your requirements. All source rpm file has src.rpm extension

if you use RPM on an Intel-based computer, you'd normally expect to find i386 there. If you use x86_64 bit computer you will see x86_64 in RPM file names. Normal rpm file has only binary files and no source code at all.

Thank you for the explanation

Just rebuild
Code:
rpm --rebuild file.src.rpm
To customize package, first install src.rpm:
Code:
rpm -ivh file.src.rpm
cd /usr/src/redhat/SPECS/
vi file.spec
Make changes and rebuild rpm
Code:
rpmbuild -bb file.spec
Read man page of rpm, rpmbuild or better read this free book http://www.rpm.org/max-rpm/index.html

Use uname command
Code:
uname -mrs
uname -r
See our FAQ : Linux how to find if processor is 64 bit or not | Frequently Asked Questions

Hope this helps!
Thank you for the explanation
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
convert perl code into binary executable chandanperl Coding in General 0 03-13-2008 11:43 AM
Read arguments from a file and pass them to binary file AHJ Shell scripting 1 10-31-2007 07:04 PM
Shell script for automatic conversion of files in tar files kasimani Shell scripting 2 02-08-2007 04:45 PM
The source seems encrypted and can't be read. Are you try to raj Linux hardware 1 01-03-2007 08:59 AM
Editing binary without corrupting it? karabaja Shell scripting 2 10-03-2006 08:34 AM


All times are GMT +5.5. The time now is 03:34 AM.


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