Auto Install Linux Rpm's

S

Sells, Fred

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.
---------------------------------------------------------------------------
 
L

Lars Kellogg-Stedman

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.

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top