[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: help needed on rpm packaging
- From: Brian Strand <bstrand switchmanagement com>
- To: rpm-list redhat com
- Subject: Re: help needed on rpm packaging
- Date: Thu, 06 Dec 2001 15:17:53 -0800
Alexius Luke wrote:
> Hi All,
>
> I am new to RPM package building.I have written a spec file for
> packaging my software.The software is a servlets based webserver.In
> the %install tag I place the installation script of my servlet
> programs.And then change some details in the apache and tomcat
> configuration files since it is needed by my servlets.
>
> When I build the package with the rpm -ba mypfg.spec command the
> instructions under the %install tag executes and the rpm file is
> generated.But when I use the generated rpm file to install it using
> the rpm -ivh mypkg.rpm then the %install portion is not executed.
>
> Is this how rpm works or am I missing out anything.Please do explain
> me how the %install part works during building(rpm -ba specfile) and
> installing(rpm -ivh genrpmfile).
>
> -Alexius Luke
>
%install is used during build ("make install" or the equivalent); use
%pre/%post scripts for install-time scripts, i.e. scripts which run when
you do rpm -i. Make sure you pay attention to the instance count (the
argument passed to %pre/%post/%preun/%postun scripts) during these
scripts; this is especially important during upgrade (rpm -U) operations.
Regards,
Brian
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]