471,872 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

Python RPM and CentOS

rbt
Not really a Python question, but I thought some on this list may be
able to answer.... so here goes:

I have several machines on which I must install CentOS. There are many
updates to CentOS and it's very time consuming to do the updates over
the network. I have a local copy of all of the updated rpms. Would it be
reasonable to do something like this to upgrade them locally and more
quickly than over the network???

updated_rpms =[list of updated rpms]

for f in updated_rpms:

try:
os.popen("/bin/rpm --nodeps -U %s" %f)

except Exception, e:
print e
Thanks,

rbt
Jul 19 '05 #1
2 3850
I know that gentoo has support for local repositories, and emerge is
built on python so...this would make sense. But there is a difference
between rpms and ebuilds..

Jul 19 '05 #2
The reasonable thing would be to use "yum".

Not really a Python question, but I thought some on this list may be
able to answer.... so here goes:

I have several machines on which I must install CentOS. There are many
updates to CentOS and it's very time consuming to do the updates over
the network. I have a local copy of all of the updated rpms. Would it be
reasonable to do something like this to upgrade them locally and more
quickly than over the network???

updated_rpms =[list of updated rpms]

for f in updated_rpms:

try:
os.popen("/bin/rpm --nodeps -U %s" %f)

except Exception, e:
print e
Thanks,

rbt


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by | last post: by
1 post views Thread by Ioannis Vranos | last post: by
2 posts views Thread by Chris Miles | last post: by
3 posts views Thread by Alexandre Gillet | last post: by
reply views Thread by Alexandre Gillet | last post: by
reply views Thread by weixiao.fan | last post: by
1 post views Thread by F. | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.