How to safely remove java with lots of dependencies
Posted: 2018/04/25 14:48:36
Hello,
I've got some CentOS 6.9 workstations that have multiple versions of Java installed - 1.5, 1.6, and 1.7. I would like to remove 1.5 and 1.6, and leave just 1.7, but when I go to do a "yum erase" on the 1.5, yum lists 89 packages that are dependent on it - 1.6 and 1.7 only list their own associated java packages.
These workstations were originally built several years ago and I'm guessing 1.5 was the installed java version at the time, and those packages established their java dependencies based on 1.5. I suspect removing 1.5 is going to break all those apps that are using it.
How can I safely get rid of 1.5?
And if the only dependency 1.6 has is openjdk-devel, should that be an easy removal?
Thanks,
Phil.e
I've got some CentOS 6.9 workstations that have multiple versions of Java installed - 1.5, 1.6, and 1.7. I would like to remove 1.5 and 1.6, and leave just 1.7, but when I go to do a "yum erase" on the 1.5, yum lists 89 packages that are dependent on it - 1.6 and 1.7 only list their own associated java packages.
These workstations were originally built several years ago and I'm guessing 1.5 was the installed java version at the time, and those packages established their java dependencies based on 1.5. I suspect removing 1.5 is going to break all those apps that are using it.
How can I safely get rid of 1.5?
And if the only dependency 1.6 has is openjdk-devel, should that be an easy removal?
Thanks,
Phil.e