469,923 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,923 developers. It's quick & easy.

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.
---------------------------------------------------------------------------
Nov 22 '05 #1
2 1975
> 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

--
Lars Kellogg-Stedman <82*************@jetable.net>
This email address will expire on 2005-11-23.

Nov 22 '05 #2
> 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

--
Lars Kellogg-Stedman <82*************@jetable.net>
This email address will expire on 2005-11-23.

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mia456789 | last post: by
6 posts views Thread by kabrit | last post: by
3 posts views Thread by Mairhtin O'Feannag | last post: by
reply views Thread by Sells, Fred | last post: by
2 posts views Thread by pc | last post: by
reply views Thread by maluyao | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.