[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: running external scripts from rpm install
- From: James Olin Oden <joden malachi lee k12 nc us>
- To: "Rpm-List (E-mail)" <rpm-list redhat com>
- Subject: Re: running external scripts from rpm install
- Date: Sun, 10 Aug 2003 10:33:34 -0400 (EDT)
On Sun, 10 Aug 2003, Galit Hayat wrote:
> Hi Guys,
>
> I would like to run external shell scripts from my RPM installation.
> How do I make sure the scripts files are included in the RPM package?
> (kind of Support Files)
>
Normally, rpm has scriptlets inside the spec file that are
ran at install time. These are:
%pre - Run before rpm files are installed.
%post - Run after rpm files are installed.
%preun - Run before rpm files are erased.
%postun - Run after rpm files are erased.
%triggerin - Install trigger.
%triggerun - uninstall trigger
%triggerpostun - postuninstall trigger.
The scripts are normally bash scripts, but you can change the interpreter
with the -p option.
Also, as they are bash scripts you can call external scripts from these.
Cheers...james
> Thanks,
> Galit Hayat
> R&D
> Sofaware Technologies Ltd.
>
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]