Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8208459

RPM package name prevents automatic updates due to including minor version

XMLWordPrintable

    • 9
    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Linux x86_64 RPM packages

      A DESCRIPTION OF THE PROBLEM :
      Everywhere you turn, best practice is to update to the latest release of a package. Every release of java from Oracle includes the statement of "all users are encourage to upgrade...", however, the RPM package name prevents this. The issue is that the package NAME includes the major AND minor version of the package for JDK 9 and newer. The package name for jdk 8 is "jdk1.8" which is perfect since the "version" identifier in the jdk1.8 package is 1.8.0_171, 1.8.0_181 etc.

      REGRESSION : Last worked in version 10.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Place any previous RPM into a yum repository and install from yum (yum install <package name>)
      Add a newer release of the RPM into the yum repository and issue the yum update command.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The java 8 package is updated to the latest java 8 package in the repository.
      The java 10 package is updated to the latest java 10 package.
      The java 7 package is updated to the latest java 7 package.
      ACTUAL -
      For JDK 1.8 the latest package is installed.
      For JDK 10 no updates occur.


      CUSTOMER SUBMITTED WORKAROUND :
      I can repackage the RPM with an appropriate name (jdk-9, jdk-10 etc) and let the version number (10.0.2) to be used to determine if one package is newer that another package.

      By including the major version number I can still install the multiple major releases (java 7, java 8, java 10 etc) but always be at the latest of each major version that is in the yum repository that I use.

            asemenyuk Alexey Semenyuk
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: