Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, pacman, scoop 安装 jenv

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install jenv

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install jenv

MacPorts ports tree · java/jenv/Portfile · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install extras/jenv

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

概览

软件包摘要

Manage your Java environment

命令和别名

  • jenv

历史

项目历史与用法

jenv is a shell-oriented Java environment manager. Its README describes it as an updated fork of jenv adapted from rbenv, focused on switching Java versions and setting JAVA_HOME at global, directory-local, or per-shell scope without installing Java itself.

项目历史

The public GitHub repository for jenv was created in 2013. The project documentation names Gildas Cuisinier as maintainer and frames the repository as a continuation of an earlier beloved Java environment manager rather than a from-scratch package installer.

The release stream visible on GitHub shows a compact Unix shell tool that continued to receive maintenance releases through the 0.5.x and 0.6.x series. Release notes for 0.6.0 include fixes around shim behavior, shell support, install instructions, and the addition of a command for selecting a Java version for one command invocation.

采用历史

jenv became useful in Java shops because the JDK landscape is fragmented: Android, server, build, and legacy projects often require different Java majors on the same developer machine. Its README explicitly calls out Android tools using Java 8 while server applications use later releases, which explains its fit with project-local version files.

Homebrew, MacPorts, pacman, and Scoop package metadata in the input show that jenv escaped a single-source install workflow and became a cross-package-manager convenience for developers who already install JDKs through their platform tooling.

使用方式

A typical jenv workflow is to install the shell hooks, add already-installed JDK homes with `jenv add`, enable the export plugin when JAVA_HOME management is desired, and use `jenv global`, `jenv local`, or `jenv shell` to select the active version. `jenv local` writes a `.java-version` file in the working tree.

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

jenv matters to package-manager users because it deliberately does less than SDKMAN-style installers: it manages shims and environment selection, while Homebrew or the operating system installs Java. That separation makes it a small glue package with outsized value on machines that carry several vendor and versioned JDKs.

时间线

  • 2013: Public GitHub repository created for jenv/jenv.
  • 2020: GitHub release 0.5.3 appears in the release stream.
  • 2025: GitHub release 0.6.0 records shim, install, and shell-support maintenance.

Related projects

  • The README explicitly traces jenv's style to rbenv. It also sits beside Homebrew, MacPorts, SDKMAN-style Java installers, and vendor OpenJDK packages rather than replacing them.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

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

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
./.java-version

可执行文件

已安装的可执行文件

命令类型暴露范围备注
jenvcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本0.6.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本0.6.0

https://github.com/jenv/jenv

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:jenv
版本0.6.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/jenv
主页https://github.com/jenv/jenv
仓库https://github.com/jenv/jenv
上游文档https://github.com/jenv/jenv#readme
许可证MIT
源码归档https://github.com/jenv/jenv/archive/refs/tags/0.6.0.tar.gz
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明
注意事项To activate jenv, add the following to your shell profile e.g. ~/.profile or ~/.zshrc: export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)"

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namejenv
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

pacman95%

jenv 0.6.0-1

Manage your Java environment

https://github.com/jenv/jenv

sudo pacman -S jenv
  • License: MIT
  • Architecture: any
  • 1 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Jenv
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: jenv from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

jenv

sudo port install jenv
  • normalized package name match
  • 匹配方式:Jenv
MacPorts ports tree · api.github.com · MacPorts ports tree: java/jenv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

extras/jenv

scoop install extras/jenv
  • normalized package name match
  • 匹配方式:Jenv
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/jenv.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment