How To Install alternatives on Fedora 36

In this tutorial we learn how to install alternatives in Fedora 36. alternatives is A tool to maintain symbolic links determining default commands

Introduction

In this tutorial we learn how to install alternatives on Fedora 36.

What is alternatives

alternatives creates, removes, maintains and displays information about the symbolic links comprising the alternatives system. It is possible for several programs fulfilling the same or similar functions to be installed on a single system at the same time.

We can use yum or dnf to install alternatives on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install alternatives.

Install alternatives on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install alternatives using dnf by running the following command:

sudo dnf -y install alternatives

Install alternatives on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install alternatives using yum by running the following command:

sudo yum -y install alternatives

How To Uninstall alternatives on Fedora 36

To uninstall only the alternatives package we can use the following command:

sudo dnf remove alternatives

alternatives Package Contents on Fedora 36

/etc/alternatives
/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/aed648d9d36721e509caedb1490d69cd901f32
/usr/sbin/alternatives
/usr/sbin/update-alternatives
/usr/share/licenses/alternatives
/usr/share/licenses/alternatives/COPYING
/usr/share/man/man8/alternatives.8.gz
/usr/share/man/man8/update-alternatives.8.gz
/var/lib/alternatives

References

Summary

In this tutorial we learn how to install alternatives on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).