Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-14-2012, 07:44 PM   #1
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

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


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.

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

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296

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

Kind regards,



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

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration