Skip to content

Improve documentation #19

Description

@etam

alts -h says:

           alts [-u] [-s] -n <program> [-p <alt_priority>]
              sets an override with a given priority as default
              if priority is not set, then resets to default by removing override
              -u -- user override, default for non-root users
              -s -- system overrude, default for root users
              -n -- program to override with a given priority alternative

alts -l iptables says:

Binary: iptables
Alternatives: 2
  Priority: 1   Target: /usr/sbin/xtables-legacy-multi
                 Group: ip6tables, ip6tables-restore, ip6tables-save, iptables, iptables-restore, iptables-save
  Priority: 2*  Target: /usr/sbin/xtables-nft-multi
                 Group: ip6tables, ip6tables-restore, ip6tables-save, iptables, iptables-restore, iptables-save
  1. It's not clear which priority value makes which choice the more important one. I guess higher value means higher priority. For contrast there are systems, where lower value is higher priority (for example zypper repos).
  2. It's not clear how to change the alternative. I would assume I should provide the target value, but help only mentions -p alt_priority. Does that mean that targets must have a distinct priority values and are identified by it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions