-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel version sort incorrect for RHEL #73
Comments
Is there any documentation available on howto compare RHEL (kernel) versions? |
I don't think so, except the implementation of "rpmvercmp” in RPM. I found this Perl module that implements it though: https://metacpan.org/pod/RPM::VersionSort Similar to Debian epoch, upstream version, Debian revision, RPM has epoch, version and release, which are different fields that probably have to be compared individually. In “3.10.0-693.1.1.el7” the version is 3.10.0 and the release is 693.1.1.el7. The epoch defaults to 0. |
I've adopted the version handling of RPM::VersionSort which will be used on RHEL environments (there is a line Thanks for reporting this issue. |
I took a quick look at your commit. You only check for /etc/redhat-version, which I see neither on RHEL nor CentOS. I have a /etc/redhat-release though. The combined check for the absence of dpkg might lead to a false negative, in case somebody has installed dpkg (which you can do, just like the RPM tools are available in Debian) |
Thanks for looking at the commit.
|
needrestart sorts RHEL kernel versions incorrectly:
That output is from needrestart 2.9, but I have a small test that reproduces the problem on latest Git master:
Output:
The text was updated successfully, but these errors were encountered: