Skip binary depopment upon successful RPM install

From: Roy Leung (roy.leung_at_utoronto.ca)
Date: 07/20/04


Date: 20 Jul 2004 07:56:26 -0700

Hi, all:

Is it possible to write a RPM SPEC file in such a way that its %pre
section could detect certain conditions and then to decide NOT to
deploy any files specified in %files section but instead, it only
modifies certain configuration files during %post, and then finishs
successfully?

In other words, I would like write a RPM that would skip binary
deployment if certain conditions are met on the installation host. If
conditions are not met, the RPM would deploy the binaries.

Thank you in advance.

-- Roy Leung --



Relevant Pages

  • Make RPMs from .spec and package source tarball? how?
    ... How does one make an RPM from a source tarball and an RPM spec file? ... I need to patch the source of MythTV to fix a rather annoying bug, and then make an RPM based on the ATRPMS spec for the package. ...
    (Fedora)
  • Re: Nuther one
    ... What you get from running rpm -bp on the rpm spec file is actually *more* ... the real source than the "kernel-source" rpm hack. ...
    (Fedora)
  • Re: X fails with upgrade to OpenSSH 3.4
    ... > www.openssh.com has rpms for up to 3.4x, why does this matter? ... Their RPM spec file uses a bunch of RPM 4'isms, ...
    (comp.security.ssh)
  • Re: [SLE] gcc compiler 4.1
    ... where shall I change the binaries versions? ... When I install the newest gcc by the command: ... ion the website you mentioned I see many gcc_41 rpm files. ...
    (SuSE)
  • Re: rpm -Va
    ... >> Generally, if there is RPM database corruption, RPM will tell you. ... >> You may be confusing upgraded binaries with altered binaries. ... size or md5sum without also changed time. ...
    (comp.os.linux.security)