Hi Asad
Here's a method I find useful. It is to start with the easiest problem
you can't solve.
Your problem is
> I would like to do a rpm version check between the two list (list1 and list2)
> so it only prints the rpm from list1 which are not installed and version
> available in list2 is high
So I'd still agree with the advice to post this on StackOverflow, as it's a
better format for a mailing list for this sort of question, but you're
almost there, I advise you look at dict.items, also your rpm list code
might be a little cleaner if you looked at named groups for re, and
considered tu
Hi All ,
I got few steps ahead : How to I iterate from keys of one
dictionary to another and just compare the version ?
import os
import re
from distutils.version import StrictVersion
import operator
lines=[]
new_dict={}
old_dict={}
fo = open("rpmlist1.txt", "r")
for line in fo:
If I were going to do that, I would make those lists into sets, and then
you could use set arithmetic to calculate the intersections.
Have a look on Stack Overflow. This is fairly bread-and-butter stuff, and I
am sure there is a better answer there than I could concoct here 😁
Good luck!
- N
On
Hi All ,
I am new to python just completed 4 lecture on python, I am
looking for a pyhton script of module which check the versions of the rpm
in linux .
I have a situation in which I have two list list1 and list2 :
list1 is prerequisites rpm for application
and list2 is th