469,362 Members | 2,463 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 3805
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.