Skip to content

Commit

Permalink
alternatives: update doc to use the usual alternatives commands
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei committed Oct 24, 2024
1 parent 27968e3 commit 46da572
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/ROOT/pages/alternatives.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,24 @@ storage:
overwrite: true
hard: false
----

== Manual setup

Starting with Fedora CoreOS based on Fedora 41, you can use `alternatives` commands to configure the default command manually.

For example, to use the legacy-based variants of the `iptables` commands:

.Example using alternatives to configure default command manually
[source,bash]
----
# Check the link info
alternatives --display iptables
iptables --version
# Config iptables to point to legacy
sudo alternatives --set iptables /usr/sbin/iptables-legacy
alternatives --display iptables
# Verify iptables version is legacy
iptables --version
----

0 comments on commit 46da572

Please sign in to comment.