Portal Home > Knowledgebase > Articles Database > compare version number using command (rhel)
compare version number using command (rhel)
Posted by YUPAPA, 02-21-2015, 03:24 AM |
Is there any easy way to compare version number in redhat?
For debian we could use dpkg, but whats the equivalent for rhel if there is even one?
Example:
|
Posted by Kingwinbond, 02-21-2015, 04:00 AM |
Please use the below command to check the RHEL version
|
Posted by YUPAPA, 02-21-2015, 07:51 AM |
I was referring to the version of the rpm package rather than the OS version like below.
|
Posted by MilesWeb, 02-21-2015, 08:27 AM |
YUPAPA You should consider installing rpmdevtools on the server. It will help you in comparing the versions.
For example, do you wish to compare the installed version and latest available version ?
|
Posted by YUPAPA, 02-21-2015, 10:00 AM |
Yes Thanks! rpmdev-vercmp does the job for me.
|
Add to Favourites Print this Article
Also Read