473,473 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2114
> 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: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.