Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:20 AM
rbt
Guest
 
Posts: n/a
Default Python RPM and CentOS

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
  #2  
Old July 19th, 2005, 02:20 AM
flamesrock
Guest
 
Posts: n/a
Default Re: Python RPM and CentOS

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

  #3  
Old July 19th, 2005, 02:22 AM
Ken Godee
Guest
 
Posts: n/a
Default Re: Python RPM and CentOS

The reasonable thing would be to use "yum".

[color=blue]
> 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[/color]

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles