FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 08-31-2011, 05:25 PM
Dan Horák
 
Default What's the best way to compare dotted version strings from a script?

David Howells p*še v St 31. 08. 2011 v 18:20 +0100:
> 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?

rpmdev-vercmp could do the work


Dan


--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 08-31-2011, 05:58 PM
"Richard W.M. Jones"
 
Default What's the best way to compare dotted version strings from a script?

On Wed, Aug 31, 2011 at 06:20:35PM +0100, David Howells wrote:
> 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?

For non-RPM version strings, try 'sort -V'.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 09:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org