[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: running external scripts from rpm install
- From: Galit Hayat <Galit SofaWare com>
- To: "'rpm-list redhat com'" <rpm-list redhat com>
- Subject: RE: running external scripts from rpm install
- Date: Sun, 10 Aug 2003 17:18:34 +0200
Thanks James,
The reason I need to run external scripts is that I'm creating a Linux
installation
for a product that already has a Solaris installation and I want to use the
same scripts.
My problem is that I don't know how to include scripts inside the package
without actually
installing them. Is there a way?
Galit.
-----Original Message-----
From: James Olin Oden [mailto:joden@malachi.lee.k12.nc.us]
Sent: Sunday, August 10, 2003 4:34 PM
To: Rpm-List (E-mail)
Subject: Re: running external scripts from rpm install
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
>
_______________________________________________
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]
[]