[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RPM | Uvh command | Doubt
- From: Valery Reznic <valery_reznic yahoo com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: RPM | Uvh command | Doubt
- Date: Mon, 7 May 2007 23:27:47 -0700 (PDT)
--- Lis Maria <lismariain gmail com> wrote:
> Hi
>
> I have doubt regarding the rpm -Uvh command. Let me
> explain you my doubt
> through an example.
>
> I have an rpm,say sample-1.0-1.i386.rpm , whose
> %post section runs an sql
> and whose %preun sections runs another sql ( which
> will basically rollback
> the effect of the sql tht was executed at %post)
>
> Now , i have another rpm, say, sample-1.0-2.i386.rpm
> , which i am going to
> install after insatlling the first rpm. Now my
> question is when i give rpm
> -Uvh sample-1.0-2.i386.rpm , will this aslo run the
> %preun section of
> sample-1.0-1.i386.rpm ??
Yes, it will.
>From /usr/share/doc/rpm-4.3.2/triggers:
For reference, here's the order in which scripts are
executed on a single
package upgrade:
\verbatim
new-%pre for new version of package being
installed
... (all new files are installed)
new-%post for new version of package being
installed
any-%triggerin (%triggerin from other packages set
off by new install)
new-%triggerin
old-%triggerun
any-%triggerun (%triggerun from other packages set
off by old uninstall)
old-%preun for old version of package being
removed
... (all old files are removed)
old-%postun for old version of package being
removed
old-%triggerpostun
any-%triggerpostun (%triggerpostun from other
packages set off by old un
install)
\endverbatim
Triggers you van ignore for now.
Valery.
>
> Hope i am clear...
>
> Thanks in Advance
>
> Lis Thomas
> > _______________________________________________
> Rpm-list mailing list
> Rpm-list redhat com
> https://www.redhat.com/mailman/listinfo/rpm-list
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]