473,385 Members | 1,973 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.

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 2111
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric Raymond | last post by:
When installing the rpms (or the tar file) onto Red Hat Enteprise Linux AS Beta 1 (Taroon), we get the follwing error: Installing all prepared tables /usr/bin/mysql_install_db: line 1: 7690...
2
by: Shaun | last post by:
I've attempted to upgrade to MySQL 3.23 to 4.0. MySQL 4.0 server is working great, buy I couldn't get MySQL 4.0 client to install properly. Any help would be greatly appreciated. Here are the...
1
by: mia456789 | last post by:
I hv a mysql 4 run on RH linux server , the default apache service is running , now I want to install the httpd rpm to the server because the ARCserve backup software need to install it first , I...
6
by: kabrit | last post by:
Entrez "aide" pour afficher à nouveau les noms de produits. Entrez "quitter" pour quitter. *********************************************************** DB2.PE IBM_db2msen81... Preparing......
3
by: Mairhtin O'Feannag | last post by:
Hello, I have a new Linux RH 9.0 server, on which I'm trying to setup DB2. I did the RPM install of IBMJava2-JRE-1.4.1-2.0, which I got from the IBM site. All *APPEARED* to have worked fine. ...
0
by: Sells, Fred | last post by:
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,...
2
by: pc | last post by:
hi everyone, we have a server on which someone blew away the MySQL 4 progs directory before installing MySQL 5. When installing MySQL 5 the installation failed with an error stating that it was...
0
by: maluyao | last post by:
Install IBM DB2 on Fedora Core 5 (Bordeaux) author: maluyao RHCE. maluyao@NOSPAMgmail.com(remove NOSPAM) http://www.teenblog.org/tiantian/ (Chinese Version) Pre-installation notes:...
4
by: Amber | last post by:
The installer tells it faild to config db2inst1, the db2setup.err is as following: /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:60: Engine "clearlooks" is unsupporte d, ignoring Jun 15, 2007...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.