in reply to Comparing Version Numbers
Note that if those packages are RPMs, you may want to look at the many RPM-related modules that are available