pkg.soopen package index

brew / 排名 355

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 direnv

查看 direnv 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install direnv

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install direnv

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add direnv

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

Debian apt已验证 · 92%
sudo apt install direnv

Debian stable package indexes · direnv · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install direnv

Fedora Rawhide package metadata · direnv · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#direnv

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

Arch Linux pacman已验证 · 92%
sudo pacman -S direnv

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

openSUSE zypper已验证 · 92%
sudo zypper install direnv

openSUSE Tumbleweed package metadata · direnv · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/direnv

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

Windows Package Manager已验证 · 92%
winget install --id direnv.direnv -e

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

概览

软件包摘要

Load/unload environment variables based on $PWD

命令和别名

  • direnv

历史

项目历史与用法

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

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
direnv可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本2.37.1
管理器更新时间2026-07-21
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:direnv
版本2.37.1
软件包管理器Homebrew
主页https://direnv.net/
仓库https://github.com/direnv/direnv
最后更新2026-07-21T09:31:34-04:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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