How to depend on java 11 so it can be satisfied by openjdk or oracle java 11 packages? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCentOS5, RHEL5, Java dependent Packages, Alternate JVM/JDKHow to emulate Oracle Java with OpenJDK?Circular dependencies that cannot be fulfilled. PHP packages on CentOS 7 to support Drupal 8Can I indicate that a .deb package depends on Java, but not specify what implementation (e.g. OpenJDK, IcedTea, Oracle)?How can I get a dependency of “default-jre” to work for .rpm packages?Install Oracle Java 8Install JDK 8 on DebianRPM database not seeing file installed as part of RPMCentOS rpm package not available when using yumHow do I set a RPM package to require Java 8 or higher, whose dependencies can be satisfied by Java 11

Keeping a retro style to sci-fi spaceships?

1960s short story making fun of James Bond-style spy fiction

Can the DM override racial traits?

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

Drawing arrows from one table cell reference to another

Mortgage adviser recommends a longer term than necessary combined with overpayments

Deal with toxic manager when you can't quit

Student Loan from years ago pops up and is taking my salary

Is there a writing software that you can sort scenes like slides in PowerPoint?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Are spiders unable to hurt humans, especially very small spiders?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Is every episode of "Where are my Pants?" identical?

One-dimensional Japanese puzzle

Variable with quotation marks "$()"

Are there continuous functions who are the same in an interval but differ in at least one other point?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

What force causes entropy to increase?

Why can't wing-mounted spoilers be used to steepen approaches?

Example of compact Riemannian manifold with only one geodesic.

Is this wall load bearing? Blueprints and photos attached

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

How did passengers keep warm on sail ships?



How to depend on java 11 so it can be satisfied by openjdk or oracle java 11 packages?



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsCentOS5, RHEL5, Java dependent Packages, Alternate JVM/JDKHow to emulate Oracle Java with OpenJDK?Circular dependencies that cannot be fulfilled. PHP packages on CentOS 7 to support Drupal 8Can I indicate that a .deb package depends on Java, but not specify what implementation (e.g. OpenJDK, IcedTea, Oracle)?How can I get a dependency of “default-jre” to work for .rpm packages?Install Oracle Java 8Install JDK 8 on DebianRPM database not seeing file installed as part of RPMCentOS rpm package not available when using yumHow do I set a RPM package to require Java 8 or higher, whose dependencies can be satisfied by Java 11



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm trying to create an rpm package with a dependency on java 11, however it seems like the openjdk and oracle java 11 packages don't provide any overlapping java virtual packages.



OpenJDK Java 11 provides:



$ repoquery --provides java-11-openjdk
java-11 = 1:11.0.2.7-0.el7_6
java-11-openjdk = 1:11.0.2.7-0.el7_6
java-11-openjdk(x86-32) = 1:11.0.2.7-0.el7_6
jre-11 = 1:11.0.2.7-0.el7_6
jre-11-openjdk = 1:11.0.2.7-0.el7_6
libjawt.so
java-11 = 1:11.0.2.7-0.el7_6
java-11-openjdk = 1:11.0.2.7-0.el7_6
java-11-openjdk(x86-64) = 1:11.0.2.7-0.el7_6
jre-11 = 1:11.0.2.7-0.el7_6
jre-11-openjdk = 1:11.0.2.7-0.el7_6


The oracle Java 11 installer provides:



$ rpm -qp --provides /tmp/jdk-11.0.2_linux-x64_bin.rpm 
jdk
jaxp_parser_impl
xml-commons-apis
java
java-11.0.2
java-fonts
jre
jre-11.0.2
jdk-11.0.2 = 2000:11.0.2-ga
jdk-11.0.2(x86-64) = 2000:11.0.2-ga


How do I set my packages dependencies to be flexible enough to work with either java11?



I thought rpm boolean dependencies might help, but I could find no information about updating rpm to version 4.13.
If I set my packages dependencies to:
Requires: jre-11 >= 11, rpm >= 4.13
installation fails with:



Error: Package: MYPACKAGE
Requires: rpm >= 4.13
Installed: rpm-4.11.3-32.el7.x86_64 (installed)
rpm = 4.11.3-32.el7
Available: rpm-4.11.3-35.el7.x86_64 (base)
rpm = 4.11.3-35.el7



Version 4.13 of rpm just doesn't seem to be available? I'm using CentOS7, but the same happens on RHEL 7.5 too.










share|improve this question






























    2















    I'm trying to create an rpm package with a dependency on java 11, however it seems like the openjdk and oracle java 11 packages don't provide any overlapping java virtual packages.



    OpenJDK Java 11 provides:



    $ repoquery --provides java-11-openjdk
    java-11 = 1:11.0.2.7-0.el7_6
    java-11-openjdk = 1:11.0.2.7-0.el7_6
    java-11-openjdk(x86-32) = 1:11.0.2.7-0.el7_6
    jre-11 = 1:11.0.2.7-0.el7_6
    jre-11-openjdk = 1:11.0.2.7-0.el7_6
    libjawt.so
    java-11 = 1:11.0.2.7-0.el7_6
    java-11-openjdk = 1:11.0.2.7-0.el7_6
    java-11-openjdk(x86-64) = 1:11.0.2.7-0.el7_6
    jre-11 = 1:11.0.2.7-0.el7_6
    jre-11-openjdk = 1:11.0.2.7-0.el7_6


    The oracle Java 11 installer provides:



    $ rpm -qp --provides /tmp/jdk-11.0.2_linux-x64_bin.rpm 
    jdk
    jaxp_parser_impl
    xml-commons-apis
    java
    java-11.0.2
    java-fonts
    jre
    jre-11.0.2
    jdk-11.0.2 = 2000:11.0.2-ga
    jdk-11.0.2(x86-64) = 2000:11.0.2-ga


    How do I set my packages dependencies to be flexible enough to work with either java11?



    I thought rpm boolean dependencies might help, but I could find no information about updating rpm to version 4.13.
    If I set my packages dependencies to:
    Requires: jre-11 >= 11, rpm >= 4.13
    installation fails with:



    Error: Package: MYPACKAGE
    Requires: rpm >= 4.13
    Installed: rpm-4.11.3-32.el7.x86_64 (installed)
    rpm = 4.11.3-32.el7
    Available: rpm-4.11.3-35.el7.x86_64 (base)
    rpm = 4.11.3-35.el7



    Version 4.13 of rpm just doesn't seem to be available? I'm using CentOS7, but the same happens on RHEL 7.5 too.










    share|improve this question


























      2












      2








      2


      2






      I'm trying to create an rpm package with a dependency on java 11, however it seems like the openjdk and oracle java 11 packages don't provide any overlapping java virtual packages.



      OpenJDK Java 11 provides:



      $ repoquery --provides java-11-openjdk
      java-11 = 1:11.0.2.7-0.el7_6
      java-11-openjdk = 1:11.0.2.7-0.el7_6
      java-11-openjdk(x86-32) = 1:11.0.2.7-0.el7_6
      jre-11 = 1:11.0.2.7-0.el7_6
      jre-11-openjdk = 1:11.0.2.7-0.el7_6
      libjawt.so
      java-11 = 1:11.0.2.7-0.el7_6
      java-11-openjdk = 1:11.0.2.7-0.el7_6
      java-11-openjdk(x86-64) = 1:11.0.2.7-0.el7_6
      jre-11 = 1:11.0.2.7-0.el7_6
      jre-11-openjdk = 1:11.0.2.7-0.el7_6


      The oracle Java 11 installer provides:



      $ rpm -qp --provides /tmp/jdk-11.0.2_linux-x64_bin.rpm 
      jdk
      jaxp_parser_impl
      xml-commons-apis
      java
      java-11.0.2
      java-fonts
      jre
      jre-11.0.2
      jdk-11.0.2 = 2000:11.0.2-ga
      jdk-11.0.2(x86-64) = 2000:11.0.2-ga


      How do I set my packages dependencies to be flexible enough to work with either java11?



      I thought rpm boolean dependencies might help, but I could find no information about updating rpm to version 4.13.
      If I set my packages dependencies to:
      Requires: jre-11 >= 11, rpm >= 4.13
      installation fails with:



      Error: Package: MYPACKAGE
      Requires: rpm >= 4.13
      Installed: rpm-4.11.3-32.el7.x86_64 (installed)
      rpm = 4.11.3-32.el7
      Available: rpm-4.11.3-35.el7.x86_64 (base)
      rpm = 4.11.3-35.el7



      Version 4.13 of rpm just doesn't seem to be available? I'm using CentOS7, but the same happens on RHEL 7.5 too.










      share|improve this question
















      I'm trying to create an rpm package with a dependency on java 11, however it seems like the openjdk and oracle java 11 packages don't provide any overlapping java virtual packages.



      OpenJDK Java 11 provides:



      $ repoquery --provides java-11-openjdk
      java-11 = 1:11.0.2.7-0.el7_6
      java-11-openjdk = 1:11.0.2.7-0.el7_6
      java-11-openjdk(x86-32) = 1:11.0.2.7-0.el7_6
      jre-11 = 1:11.0.2.7-0.el7_6
      jre-11-openjdk = 1:11.0.2.7-0.el7_6
      libjawt.so
      java-11 = 1:11.0.2.7-0.el7_6
      java-11-openjdk = 1:11.0.2.7-0.el7_6
      java-11-openjdk(x86-64) = 1:11.0.2.7-0.el7_6
      jre-11 = 1:11.0.2.7-0.el7_6
      jre-11-openjdk = 1:11.0.2.7-0.el7_6


      The oracle Java 11 installer provides:



      $ rpm -qp --provides /tmp/jdk-11.0.2_linux-x64_bin.rpm 
      jdk
      jaxp_parser_impl
      xml-commons-apis
      java
      java-11.0.2
      java-fonts
      jre
      jre-11.0.2
      jdk-11.0.2 = 2000:11.0.2-ga
      jdk-11.0.2(x86-64) = 2000:11.0.2-ga


      How do I set my packages dependencies to be flexible enough to work with either java11?



      I thought rpm boolean dependencies might help, but I could find no information about updating rpm to version 4.13.
      If I set my packages dependencies to:
      Requires: jre-11 >= 11, rpm >= 4.13
      installation fails with:



      Error: Package: MYPACKAGE
      Requires: rpm >= 4.13
      Installed: rpm-4.11.3-32.el7.x86_64 (installed)
      rpm = 4.11.3-32.el7
      Available: rpm-4.11.3-35.el7.x86_64 (base)
      rpm = 4.11.3-35.el7



      Version 4.13 of rpm just doesn't seem to be available? I'm using CentOS7, but the same happens on RHEL 7.5 too.







      linux rpm java dependencies packaging






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 9 at 11:26







      jenny

















      asked Apr 9 at 10:40









      jennyjenny

      134




      134




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511426%2fhow-to-depend-on-java-11-so-it-can-be-satisfied-by-openjdk-or-oracle-java-11-pac%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511426%2fhow-to-depend-on-java-11-so-it-can-be-satisfied-by-openjdk-or-oracle-java-11-pac%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.