

Currently the priority is set to 1041, so they should run after install: Gcj-compat is only a JRE, and claims support for 1.4.2. The same should happen for GCJ equivalent, gcj-compat and gcj-compat-dev 4/jre java_home_1_4_jre /usr/lib/ jvm/java- 1.5.0-sun- 1.5.0.06/ jre 53Īnd the list goes down until java 1.0 or which ever the sun-java5 maintainers consider appropiate. Update-alternatives -install /etc/java/ home/1. Update-alternatives -install /etc/java/ home/default/ jre java_home_ default_ jre /usr/lib/ jvm/java- 1.5.0-sun- 1.5.0.06/ jre 53 Update-alternatives -install /etc/java/ home/default/ jdk java_home_ default_ jdk /usr/lib/ jvm/java- 1.5.0-sun- 1.5.0.06 53 4/jre -> JRE 1.4 HOMEĮvery Java Runtime/JDK installed, should update thru update-alteratives, the link to this directories, for example, sun-java5 (which is sadly configured with priority 53) should run after install: etc/java/ home/default/ jre -> Default JRE HOMEĪnd two for every supported version of java: etc/java/ home/default/ jdk -> Default JDK HOME Java-common should create the directories: Other: warnings, okay, known, ack, versionįor more information about a command, run 'snap help '.įor a short summary of all commands, run 'snap help -all'.After thining about this problem, I have arrived to a very simple solution using update- alternatives: Snapshots: saved, save, check-snapshot, restore, forget Permissions: connections, interface, connect, disconnectĪpp Aliases: alias, aliases, unalias, prefer more: refresh, revert, switch, disable, enable, create-cohortĭaemons: services, start, stop, restart, logs Snaps are packages that work across many different Linux distributions,Įnabling secure delivery and operation of the latest apps and utilities.Ĭommonly used commands can be classified as follows:īasics: find, info, install, remove, list The snap command lets you install, configure, refresh and remove snaps. Manually adding an alternative like below doesn’t start alacritty but print snap usage instead: sudo update-alternatives -install /usr/bin/x-terminal-emulator x-terminal-emulator /snap/bin/alacritty 50 Snapcraft will probably place all commands as soft links so I’m not sure whether this is doable with snaps. I’ve also found out that all snap commands are proxies (or soft links) to /usr/bin/snap whereas update-alternatives requires direct binaries/scripts.
