DevHeads.net

What's the best way to compare dotted version strings from a script?

Is there a program or script installed/installable by Fedora that can be used
to compare dotted version strings (eg. "1.5.2") from a shell script?

David

Comments

Re: What's the best way to compare dotted version strings from a

By Richard W.M. Jones at 08/31/2011 - 13:58

On Wed, Aug 31, 2011 at 06:20:35PM +0100, David Howells wrote:
For non-RPM version strings, try 'sort -V'.

Rich.

Re: What's the best way to compare dotted version strings from a

By Dan =?ISO-8859-... at 08/31/2011 - 13:25

David Howells píše v St 31. 08. 2011 v 18:20 +0100:
rpmdev-vercmp could do the work

Dan