问题原文
原帖链接 · dsmoljanovic · CC BY-SA 4.0
Title says it all. I want to have 2 versions of java on the same machine. For example 14.0.1.7 and 14.0.2.12 (which are both in EPEL7 repo).
If i install them one by one via yum, yum will remove first version and keep just the last. If I install them via rpm dependencies are resolved but not installed automatically. If i install first with yum and second with rpm then it works and it keeps both versions but rpm won't install any additional dependencies if the pop out at some point and it would be cool to be able to do it via only one tool.
All mentioned java are OpenJDK; EPEL7 has these rolling packages (for example: java-14-openjdk-14.0.1.7-2.rolling.el7.x86_64, java-14-openjdk-14.0.2.12-1.rolling.el7.x86_64).
Any ideas?
已采纳解答
原帖链接 · John Mahowald · CC BY-SA 4.0
You don't. Upgrade to the later package, which has fixes.
java-latest-openjdk 14.0.2.12-1 replaces 14.0.1.7-2. EPEL mirrors won't carry the old version, as is their usual policy.
The upstream release notes say the security patched version of 14 is 14.0.2+12. Note the usual time zone data and x509 cert changes, plus bug fixes. Think about whether you really need to pin this version. The documentation indicates this to be a minor maintenance release you are intended to take.
If you identify a need to keep the previous version, two problems to resolve: getting the package and installing it. The old version is no longer on the mirrors, consider setting up your own private mirror or caching proxy to archive old versions. And, these two versions cannot be installed in parallel. Investigate a way to have two parallel environments, whether containers, virtual machines, or runtime manager utilities which specifically allow you to select a Java runtime.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
