[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: install/erase script order of execution



On Thu, 31 Jul 2003, Frank Cusack wrote:

> For an upgrade of a package, is this correct:
> 
> %pre of package being installed
> %post of package being installed
> %preun of package being removed
> %postun of package being removed
>
Yes, except if you installing multiple packages then all
installs occur, and then all erasures occur.  So if you were
upgrading package A and B then it would look something like:

	%pre    A-new
	%files  A-new
	%post   A-new
	%pre    B-new
	%files  B-new
	%post   B-new
	%preun  A-old
	%files  A-old
	%postun A-old
	%preun  B-old
	%files  B-old
	%postun B-old

Note, also, that erasures are not ordered, but installs are.

Cheers...james
> thanks
> /fc
> 
> 
> _______________________________________________
> 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] []