LinuxQuestions.org
Visit Jeremy's Blog.
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 02-13-2013, 06:31 AM   #1
shri_22ram
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Rep: Reputation: Disabled
Execution of spec file.


I have written a spec file and using rpmbuild i successfully generated .rpm binary package.
While upgrading the rpm i need to remove some rpms from my machine. So i mention it in Obsolete: target in spec file. Can you please tell me while upgrading the rpm whether spec file will be executed again or not?

Last edited by shri_22ram; 02-13-2013 at 06:35 AM.
 
Old 02-14-2013, 05:31 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by shri_22ram View Post
Can you please tell me while upgrading the rpm whether spec file will be executed again or not?
The .spec file itself isn't "executed" but keywords like "obsoletes" and instructions in %pre / %post and %preun / %postun are. To test this update the package using rpm with the "--test -vv" flags.
 
  


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
How to extract spec file from rpm file nayankk Programming 18 11-12-2015 02:11 PM
[SOLVED] conditional install of file from .spec file sherrilynsanders Linux - Software 1 08-09-2012 02:45 PM
changing the content of file in spec file dsubbarao Linux - Newbie 7 01-30-2007 06:41 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
Patches for .spec file linuxdev Linux - Newbie 5 02-12-2004 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration