Auto Install Linux Rpm's

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sells, Fred

    Auto Install Linux Rpm's

    We would like to use Python to automatically deploy new rpm's (assuming we
    first edit a file to require a new version). I've just starting looking a
    the rpm module. I can build this from scratch, but was wondering if anyone
    is/has solved some or all of this problem or could point me to some
    "goodies" that would help.

    tia

    Fred

    ---------------------------------------------------------------------------
    The information contained in this message may be privileged and / or
    confidential and protected from disclosure. If the reader of this message is
    not the intended recipient, you are hereby notified that any dissemination,
    distribution or copying of this communication is strictly prohibited. If you
    have received this communication in error, please notify the sender
    immediately by replying to this message and deleting the material from any
    computer.
    ---------------------------------------------------------------------------
  • Lars Kellogg-Stedman

    #2
    Re: Auto Install Linux Rpm's

    > We would like to use Python to automatically deploy new rpm's (assuming we[color=blue]
    > first edit a file to require a new version). I've just starting looking a
    > the rpm module. I can build this from scratch, but was wondering if anyone
    > is/has solved some or all of this problem or could point me to some
    > "goodies" that would help.[/color]

    "Yum" (the Fedora package manager) is written in Python, so it provides
    both a good example of how to work with the Python rpm module and how to
    do things like handle dependencies -- which you'll have to do if you
    roll your own.

    If I were you, I would probably just use Yum to do all the heavy
    lifting, rather than trying to re-implement it. Then your work boils
    down to:

    IF (installed version of package) != (version of package in config
    file) THEN
    yum -y install <package>
    END IF

    -- Lars

    --
    Lars Kellogg-Stedman <8273grkci8q8kg t@jetable.net>
    This email address will expire on 2005-11-23.

    Comment

    • Lars Kellogg-Stedman

      #3
      Re: Auto Install Linux Rpm's

      > We would like to use Python to automatically deploy new rpm's (assuming we[color=blue]
      > first edit a file to require a new version). I've just starting looking a
      > the rpm module. I can build this from scratch, but was wondering if anyone
      > is/has solved some or all of this problem or could point me to some
      > "goodies" that would help.[/color]

      "Yum" (the Fedora package manager) is written in Python, so it provides
      both a good example of how to work with the Python rpm module and how to
      do things like handle dependencies -- which you'll have to do if you
      roll your own.

      If I were you, I would probably just use Yum to do all the heavy
      lifting, rather than trying to re-implement it. Then your work boils
      down to:

      IF (installed version of package) != (version of package in config
      file) THEN
      yum -y install <package>
      END IF

      -- Lars

      --
      Lars Kellogg-Stedman <8273grkci8q8kg t@jetable.net>
      This email address will expire on 2005-11-23.

      Comment

      Working...