From 02aba55b86587e25c9239533b5b9c5eaf587be66 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Apr 04 2019 15:17:03 +0000 Subject: Alternatives: formatting review, add TOC, fix broken links --- diff --git a/guidelines/modules/ROOT/pages/Alternatives.adoc b/guidelines/modules/ROOT/pages/Alternatives.adoc index 4f38258..e8b3fcc 100644 --- a/guidelines/modules/ROOT/pages/Alternatives.adoc +++ b/guidelines/modules/ROOT/pages/Alternatives.adoc @@ -1,3 +1,6 @@ += Alternatives + +:last-reviewed: 2019-04-04 :toc: Alternatives provide means for parallel installation of packages which provide the same functionality by maintaining sets of symlinks (one per package) pointing to alternativized files like this: @@ -29,7 +32,7 @@ Bad examples of using alternatives include: * the various MPI environments where users care both about which MPI environment they compile against and which one they run against * choice of editor when the user invokes "vi" where the user will care about feature availability, compatibility with plugins, etc -Cases where parallel installation is desirable but alternatives is unsuitable may be scenarios where Packaging:EnvironmentModules[environment-modules] is appropriate. MPI and python-sphinx (from Fedora 26 on) are example packages using environment-modules for this purpose. +Cases where parallel installation is desirable but alternatives is unsuitable may be scenarios where link:../[Environment Modules] are appropriate. MPI and python-sphinx (from Fedora 26 on) are example packages using environment-modules for this purpose. == How to use alternatives @@ -38,7 +41,7 @@ If a package is using alternatives, the files which would otherwise conflict MUS Putting the alternativized files in the file list ensures that they are owned by respective packages, which means that commands like: * rpm -qf /usr/bin/foo -* yum install /usr/bin/foo +* dnf install /usr/bin/foo * repoquery --whatprovides /usr/bin/foo all work properly. Using %ghost for this purpose allows using globs and generated file lists.