LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-17-2003, 07:40 AM   #1
NetScripter
Member
 
Registered: Feb 2002
Location: Russia
Distribution: Gentoo 2005.1, Ubuntu 5.10, Debian 3.1
Posts: 66

Rep: Reputation: 15
RPM build question


Anybody knows where and what to place in spec file to make automatic execution of custom shell script right after installation of the package?
 
Old 10-17-2003, 08:15 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 11.10
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
hi,
whatever you put after
%post
will be executed after installation
It is better if you put that %post in the last lines of your spec file
e.g

%post
/wherever/your/script/or/executable/is



or you can put only the name if it is in the PATH.
 
Old 10-17-2003, 12:55 PM   #3
NetScripter
Member
 
Registered: Feb 2002
Location: Russia
Distribution: Gentoo 2005.1, Ubuntu 5.10, Debian 3.1
Posts: 66

Original Poster
Rep: Reputation: 15
thanks, I have another similar question but about upgrade, or please point me to place where it is documented.
 
Old 10-20-2003, 02:42 AM   #4
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 11.10
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
well, I think you may have searched but here you have some useful links.

http://www.rpm.org/RPM-HOWTO/
http://www.europe.redhat.com/documen...WTO/index.php3

hope this helps.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
build rpm file . bruse Linux - Newbie 4 09-11-2005 10:06 AM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
How to build RPM from Tar.gz fireedo Suse/Novell 4 05-13-2005 02:00 PM
rpm-build-tools-4.3.1? hotpepsi Linux - Newbie 0 01-03-2005 06:43 AM
build rpm Santas Linux - Software 1 11-21-2003 05:45 PM


All times are GMT -5. The time now is 04:00 PM.

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