

It is often useful for a number of alternatives to be synchronised, so that they are changed as a group for example, when several versions of the alternatives is usually called from the %post or %pre scripts in RPM packages. When each package providing a file with a particular functionality is installed, changed or removed, alternatives is called to update informationĪbout that file in the alternatives system. Within the /etc directory: the FHS (q.v.) gives reasons why this is a Good Thing. This is done so that the system administrator's changes can be confined Instead, it is a symbolic link to a name in the alternativesĭirectory, which in turn is a symbolic link to the actual file referenced. 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 Alternatives -install link name path priority
