473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 3905
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: | last post by:
Greetings. In an effort to get python2.4 on my Centos 3.7, I installed the python bootstrap rpm. This installed 2.4 alongside 2.2 and updated yum to 2.4.0. Oddly, it didn't create a symlink...
1
by: Ioannis Vranos | last post by:
OS: Scientific Linux 4.4 (http://www.scientificlinux.org) which is a Red Hat Enterprise Linux 4 derivative (http://www.redhat.com/rhel/), like CentOS (http://www.centos.org), White Box Linux...
2
by: Chris Miles | last post by:
I have found that the sunfreeware.com build of Python 2.4.3 for Solaris 10 is faster than one I can build myself, on the same system. sunfreeware.com doesn't bother showing the options they used to...
0
by: nat | last post by:
Hi guys, I'm running CentOS 4.4 and the current version on my system is Python 2.3.4. Ideally I wanted to use an RPM to update the system python but a lot of dependencies failed and since I...
3
by: Alexandre Gillet | last post by:
Hi, I am trying to build python-2.4.5 on Centos 5.1, which is a virtual machine running with xen. I am not able to build python. The compilation crash with the following: gcc -pthread -c ...
0
by: Alexandre Gillet | last post by:
Thanks for your answers. I did solve my problem. I upgraded my glibc libraries and it seems to solve the problem. I was able to build python-2.4.5 using gcc 4.1.2 (glibc-2.5-18.el5_1.1) Alex ...
0
by: weixiao.fan | last post by:
CentOS5.2 installed python2.4 by default, but google app engine need 2.5+ version. I download the tar package from python.org then run ./ configure,make,make install and some other work. but I...
1
by: F. | last post by:
Hello, I have problems making python on CentOS 5. Seems that can not find something. I can not find the problem. Where is the problem?
3
by: Brendan | last post by:
The current CentOs Linux distro includes python 2.4.3. I need to install a more recent version but I am worried about breaking CentOs python dependencies. Is it safe to install python 2.6 using pup?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.