oracle-java icon indicating copy to clipboard operation
oracle-java copied to clipboard

debian: mimic redhat installation strategy

Open staylorx opened this issue 9 years ago • 5 comments

I was updating a RedHat server and the latest JDK7 updated as expected, set itself as latest and default (as expected since I set that flag). However, it removed the existing JDK version. It still works for what I need it to do but I expected the new JDK would be set as latest and the old version would remain.

Thanks for all the hard work. Steve

staylorx avatar Feb 26 '16 21:02 staylorx

@staylorx for Debian-based systems I believe the packaging is done differently so I can have 2 versions and the default makes sense.

on RedHat systems I'm installing a RPM so installing a newer version will replace the older one. I'd need to use a tarball and make some extra configs to support multiple versions.

steenzout avatar Feb 26 '16 22:02 steenzout

I think I went down a path with the set-default flag thinking that might keep the older one. But I get it now. Thanks for jumping on this so quickly. Amazing.

staylorx avatar Mar 02 '16 02:03 staylorx

It's a valid point and I'll keep the issue open. I'll probably release a v5 version of this role that just uses tarball and installer (which means it would work for all platforns, even Mac). Problem is time to do it :)

steenzout avatar Mar 02 '16 02:03 steenzout

Will you (did you) keep a flag if you actually want it to remove older versions?

pjmorr avatar May 21 '16 21:05 pjmorr

No. I believe it requires a new implementation of this role that doesn't use a debian package to install JDK and it's not a priority for me. Feel free to make a pull request and I'll check it out.

steenzout avatar May 22 '16 06:05 steenzout