View previous topic :: View next topic |
Author |
Message |
pimiento n00b
Joined: 09 Dec 2017 Posts: 22
|
Posted: Thu Aug 15, 2024 7:10 am Post subject: [SOLVED] depclean wants to remove Java slot |
|
|
I have installed two versions of Openjdk
Code: |
➜ ~ eix -e openjdk
[I] dev-java/openjdk
Available versions:
(8) 8.412_p08 (~)8.422_p05
(11) 11.0.23_p9-r1 (~)11.0.24_p8
(17) 17.0.11_p9 (~)17.0.12_p7
(21) (~)21.0.4_p7
{alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source (+)system-bootstrap systemtap}
Installed versions: 8.422_p05(8)(10:35:49 08/15/24)(alsa cups headless-awt jbootstrap system-bootstrap -big-endian -debug -doc -examples -javafx -selinux -source) 21.0.4_p7(21)(14:02:16 08/01/24)(alsa cups headless-awt jbootstrap lto system-bootstrap -big-endian -debug -doc -examples -javafx -selinux -source -systemtap)
Homepage: https://openjdk.org
Description: Open source implementation of the Java programming language
|
Then I eselect Java-8 as user-vm for the hadoop usage
Code: |
hadoop@office ~/hadoop-3.4.0 $ eselect java-vm list
Available Java Virtual Machines:
[1] openjdk-8 user-vm
[2] openjdk-21 system-vm
|
Why then when I'm running deepclean it wants to remove Java-8 and how to fix it?
Code: |
>>> Calculating removal order...
>>> These are the packages that would be unmerged:
dev-java/openjdk
selected: 8.422_p05
protected: none
omitted: 21.0.4_p7
sys-apps/config-site
selected: 0
protected: none
omitted: none
All selected packages: =dev-java/openjdk-8.422_p05 =sys-apps/config-site-0
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
Packages installed: 1620
Packages in world: 158
Packages in system: 49
Required packages: 1618
Number to remove: 2
|
Last edited by pimiento on Thu Aug 15, 2024 8:46 am; edited 1 time in total |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3686 Location: Rasi, Finland
|
Posted: Thu Aug 15, 2024 7:49 am Post subject: |
|
|
Try running Code: | emerge --noreplace =dev-java/openjdk:8 | and then see if depclean still wants to remove it. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2390
|
Posted: Thu Aug 15, 2024 8:10 am Post subject: |
|
|
Eseelct does not influence emerge in any way except when you select a profile. As Zucca has pointed out, you need recorded in world what you want to survive a depclean. Eselect is a configuration tool not related to package management and in the case of profile it is related to package management to the extent that the profile provides and in some cases enforces some use flag configuration.
Best Regards,
Georgi |
|
Back to top |
|
|
pimiento n00b
Joined: 09 Dec 2017 Posts: 22
|
Posted: Thu Aug 15, 2024 8:45 am Post subject: |
|
|
Zucca wrote: | Try running Code: | emerge --noreplace =dev-java/openjdk:8 | and then see if depclean still wants to remove it. |
Thank you a lot. There is only one thing the command is Code: | emerge --noreplace dev-java/openjdk:8 | without equal sign. Topic is closed now. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3686 Location: Rasi, Finland
|
Posted: Thu Aug 15, 2024 9:23 am Post subject: |
|
|
pimiento wrote: | without equal sign. | Yes. It seems that '=' is only for selecting specific version, not a slot. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|