Hello, i am new in linux, choose this distro cause want to use wayland and its plasma
Apparently fedora 42 kde come with java pre-installed, and i use java a lot.
The thing is i would like to use another java vendor with another version like temurin etc, and i dont wanna waste 600+ MB just for something i didnt use.
Trying to uninstall java with sudo dnf remove java-21-openjdk-headless but it keep telling me to uninstall libreoffice etc. I do want to use libreoffice for daily basis since its free, tho i welcome if there another better alternatives ‘?’.
objectives:
removing default java and installed the new another version/vendor one
keeping libreoffice in the process or find better alternative
This is not a good idea. It makes it harder to solve issues because few others will be using the same Java version. Fedora provides Environment Modules or Lmod which allow you to adjust the PATH in a shell when you need a different Java version:
environment-modules.x86_64: Provides dynamic modification of a user's environment
Lmod.x86_64: Environmental Modules System in Lua
I have used Lmod many times for some specialized applications that were built around a particular Java version.
Storage space is cheap, so unless you are using very limited hardware, you are better off keeping the default Java and arranging to use another Java vendor/version on demand.
We are getting many variants of applications and libraries that are not fully interchangeable. Before retiring I worked with a large package of command-line tools that required a POSIX environment (so Linux or macOS). Some of the essential libraries have optional features that are not consistently enabled across linux distros, so the package has to built from source (including the libraries with appropriate configurations!). I think the future is minimal base Linux systems with large applications running in sandboxes (flatpak’s, Python venvs, etc). Other examples of applications that need special handling are Julia and SageMath. Apple takes the view that developers should not work around system tools (e.g., Python) but provide a suitable environment for their application independent of the system.