pkg.soopen package index

brew / rank 355

Install direnv with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

Load/unload environment variables based on $PWD. Version 2.37.1 via Homebrew; verified 2026-07-21. Also installable with debian: sudo apt install direnv.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install direnv

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install direnv

MacPorts ports tree · devel/direnv/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add direnv

Alpine Linux edge package indexes · direnv · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install direnv

Debian stable package indexes · direnv · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install direnv

Fedora Rawhide package metadata · direnv · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#direnv

nixpkgs package indexes · pkgs/by-name/di/direnv/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S direnv

Arch Linux sync databases · direnv · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install direnv

openSUSE Tumbleweed package metadata · direnv · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/direnv

Scoop official bucket manifest trees · bucket/direnv.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id direnv.direnv -e

Windows Package Manager source index · direnv.direnv · source: cdn.winget.microsoft.com

overview

Package summary

Load/unload environment variables based on $PWD

Commands and aliases

  • direnv

history

Project history and usage

direnv is a shell extension for loading and unloading project-specific environment variables as the current working directory changes.

Project history

The project frames itself as a way to unclutter shell startup files: instead of putting every export in a global profile, a project can keep an authorized .envrc near its source tree. Its README and man page describe a small, language-agnostic executable that hooks into interactive shells and evaluates environment changes in a subprocess.

Adoption history

Official installation documentation lists packages or install paths for Fedora, Arch Linux, Debian, Gentoo Guru, NetBSD pkgsrc-wip, NixOS, Homebrew, openSUSE, MacPorts, Ubuntu, GNU Guix, and Windows winget. That packaging spread matches direnv's role as cross-language glue for local development environments.

How it is used

The common workflow is to install direnv, hook it into the user's shell, create a project .envrc, and explicitly allow that file before it is evaluated. The README highlights 12-factor environment variables, isolated development environments, deployment secrets, and integrations with tools such as Nix and language version managers.

Why package nerds care

Package nerds care about direnv because it solves a small boundary problem cleanly: it lets shells, package managers, language managers, and project repositories cooperate without turning into a full environment manager.

Timeline

  • 2011: GitHub repository created.
  • 2019: direnv.toml manual documents the TOML config file path.
  • 2025: v2.37.1 published on GitHub releases.

Related projects

  • The official README points users toward adjacent tools including Environment Modules, autoenv, zsh-autoenv, asdf, shadowenv, quickenv, and mise.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
$XDG_CONFIG_HOME/direnv/direnv.toml~/.config/direnv/direnv.toml~/.config/direnv/direnvrc.envrc

executables

Installed executables

CommandKindExposureNote
direnvexecutableindexed executableDiscovered from the local executable index.

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-08-03
manager version2.37.1
manager updated2026-07-21
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:direnv
Version2.37.1
Package managerHomebrew
Homepagehttps://direnv.net/
Repositoryhttps://github.com/direnv/direnv
Last updated2026-07-21T09:31:34-04:00
Pulseupdated
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

direnv 2.32.1-2+b16

Utility to set directory specific environment variables

http://direnv.net/

sudo apt install direnv
  • Section: utils
  • Architecture: amd64
  • Source Package: direnv
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: direnv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

direnv

nix profile install nixpkgs#direnv
  • normalized package name match
  • Matched by: Direnv
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/di/direnv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

direnv 2.32.1-2build1

Utility to set directory specific environment variables

http://direnv.net/

sudo apt install direnv
  • Section: universe/utils
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: direnv from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

direnv 2.37.1-r8

Environment variable switcher for the shell

https://direnv.net

sudo apk add direnv
  • License: MIT
  • Architecture: x86_64
  • Source Package: direnv
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: direnv from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

direnv-doc 2.37.1-r8

Environment variable switcher for the shell (documentation)

https://direnv.net

sudo apk add direnv-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: direnv
  • normalized package name match
  • Matched by: Direnv
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: direnv-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

direnv-fish 2.37.1-r8

configuration hooks for fish

https://direnv.net

sudo apk add direnv-fish
  • License: MIT
  • Architecture: x86_64
  • Source Package: direnv
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: direnv-fish from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

direnv 2.37.1-7.fc45

Per-directory shell configuration tool

https://github.com/direnv/direnv

sudo dnf install direnv
  • License: BSD-3-Clause AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: direnv
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Direnv
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: direnv from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman95%

direnv 2.37.1-1

A shell extension that manages your environment

https://direnv.net

sudo pacman -S direnv
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: direnv from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

direnv 2.37.1-1.7

Environment switcher for shells

https://direnv.net/

sudo zypper install direnv
  • License: MIT
  • Category: Productivity/File utilities
  • Architecture: x86_64
  • Source Package: direnv
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

direnv-bash-completion 2.37.1-1.7

Bash Completion for direnv

https://direnv.net/

sudo zypper install direnv-bash-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: direnv
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

direnv-fish-completion 2.37.1-1.7

Fish Completion for direnv

https://direnv.net/

sudo zypper install direnv-fish-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: direnv
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

direnv-zsh-completion 2.37.1-1.7

Zsh Completion for direnv

https://direnv.net/

sudo zypper install direnv-zsh-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: direnv
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

direnv

sudo port install direnv
  • normalized package name match
  • Matched by: Direnv
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/direnv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/direnv

scoop install main/direnv
  • normalized package name match
  • Matched by: Direnv
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/direnv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

direnv.direnv

winget install --id direnv.direnv -e
  • normalized package name match
  • Matched by: Direnv
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: direnv.direnv from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation