Re: How to verify from a pre scriptlet that yum is installing and not updating the RPM package.

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

 



On 11/15/06, John Rouillard <rouilj-yum@xxxxxxxxxxx> wrote:


My RPM's have a pre(install) scriptlet that verifies that they are
being installed and not updated. If I install with rpm, I can parse
the command line ofx the parent process of the scriptlet and verify
that -i or --install was used rather than -U or --update.

Look at $1 being passed to the %pre.

           install   erase   upgrade  reinstall
 %pre         1        -         2         2

%pre
if [ $1 -eq 1 ]; then
   do your thing;
else
  do what you feel;
fi

-D
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux