LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-14-2012, 06:44 PM   #1
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 224

Rep: Reputation: 9
Difference between %install and %files section in rpm building ?


Hello,

I am just a newbie and have very recently started building rpms, i build a very simple rpm that packaged 3 files and everything worked very smoothly. However to be very honest i am not very much clear with what is the difference between %install and %files section.

I mean like we specify the same files in both the sections then what is the difference and what is the need of specifying the files in both the sections. I read some articles also but could not understand exactly.

So if we any one can explain me rpm building process step by step in a bit detail, like what each section is meant for and what all we need to specify in what section i would greatly appreciate it.

I tried a lot to clear my doubts myself but somehow it is not very much clear so i am hoping somebody would surely help me out here.

Thanks in advance.
Rohit

Last edited by Rohit_4739; 05-14-2012 at 06:45 PM.
 
Old 05-15-2012, 12:50 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Have a look at this PDF, it explains pretty well in good detail the entire process of RPM building.

Kind regards,

Eric
 
  


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
error in building rpm of open ldap from source using rpm package manager Infotechie Linux - Software 2 05-02-2012 01:10 AM
building from source vs. yum install vs. rpm vbekker Linux - Newbie 7 11-08-2010 08:13 PM
RPM Spec file creation, %files section question davidas Linux - Software 1 09-13-2007 02:26 AM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
Building RPM files from TAR files parle Linux - Software 3 05-05-2002 11:02 PM


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