How To Install direnv on Fedora 36

In this tutorial we learn how to install direnv in Fedora 36. direnv is Per-directory shell configuration tool

Introduction

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

What is direnv

direnv augments existing shells with a new feature that can load and unload environment variables depending on the current directory.

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

Install direnv 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 direnv using dnf by running the following command:

sudo dnf -y install direnv

Install direnv 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 direnv using yum by running the following command:

sudo yum -y install direnv

How To Uninstall direnv on Fedora 36

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

sudo dnf remove direnv

direnv Package Contents on Fedora 36

/usr/bin/direnv
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/8b4dc0b1ad9d9f182c387925c91a4c13c962da
/usr/share/doc/direnv
/usr/share/doc/direnv/CHANGELOG.md
/usr/share/doc/direnv/README.md
/usr/share/doc/direnv/docs
/usr/share/doc/direnv/docs/development.md
/usr/share/doc/direnv/docs/hook.md
/usr/share/doc/direnv/docs/installation.md
/usr/share/doc/direnv/docs/ruby.md
/usr/share/doc/direnv/version.txt
/usr/share/licenses/direnv
/usr/share/licenses/direnv/LICENSE
/usr/share/man/man1/direnv-fetchurl.1.gz
/usr/share/man/man1/direnv-stdlib.1.gz
/usr/share/man/man1/direnv.1.gz
/usr/share/man/man1/direnv.toml.1.gz

References

Summary

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