
The generic name is not a direct symbolic link to the selected alternative. System will not alter this setting until explicitly requested to do so. The system administrator can override this and cause it to refer to /usr/bin/ed instead, and the alternatives For example, if the text editorsĮd(1) and nvi(1) are both installed on the system, the alternatives system will cause the generic name /usr/bin/editor to TheĪlternatives system and the system administrator together determine which actual file is referenced by this generic name. A generic name in the filesystem is shared by all files providing interchangeable functionality. The alternatives system aims to solve this problem. This gives choice to the users of a system, allowing each to use a different editor, if desired, but makes itĭifficult for a program to make a good choice of editor to invoke if the user has not specified a particular preference.

Have several text editors installed at once. It is possible for several programs fulfilling the same or similar functions to be installed on a single system at the same time. This man page is a slightly modified version The dependence on perl it is intended to be a drop in replacement for Debian's update-dependencies script. The alternatives system is a reimplementation of the Debian alternatives system. Links comprising the alternatives system. Īlternatives -remove name pathĪlternatives -config name Description alternatives creates, removes, maintains and displays information about the symbolic 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'.Alternatives -install link name path priority 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.
