You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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).
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?
The text was updated successfully, but these errors were encountered:
I think the confusion is caused by the word "priority". The mental model my head came up with actually assumed that something called "priority" may not be unique. In alts however priority is basically also a unique key. So selecting a default based on id aka priority makes sense.
We could call this "id" instead of "priority". Priority is mostly used to mirror the update-alternatives definition. Maybe we have too many priorities everywhere 😆
alts -h
says:alts -l iptables
says:-p alt_priority
. Does that mean that targets must have a distinct priority values and are identified by it?The text was updated successfully, but these errors were encountered: