# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 janet

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

## 安装

```sh
sudo av install brew:janet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install janet
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install janet
```

  证据: MacPorts ports tree: lang/janet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add janet
```

  证据: Alpine Linux edge package indexes: janet from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install janet
```

  证据: Fedora Rawhide package metadata: janet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#janet
```

  证据: nixpkgs package indexes: janet from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S janet
```

  证据: Arch Linux sync databases: janet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install janet
```

  证据: openSUSE Tumbleweed package metadata: janet from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/janet
```

  证据: Scoop official bucket manifest trees: bucket/janet.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id JanetLang.Janet -e
```

  证据: Windows Package Manager source index: JanetLang.Janet from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:janet
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/janet>
- **版本:** 1.41.2
- **来源摘要:** Dynamic language and bytecode vm
- **主页:** <https://janet-lang.org>
- **仓库:** <https://github.com/janet-lang/janet>
- **上游文档:** <https://janet-lang.org>
- **许可证:** MIT
- **源码归档:** <https://github.com/janet-lang/janet/archive/refs/tags/v1.41.2.tar.gz>
- **最后更新:** 2026-07-29T21:10:30Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- janet (cli)
- janet (别名)

## 安装行为

- post-install 钩子: 未定义
- 注意事项: When uninstalling Janet, please delete the following manually: - $HOMEBREW_PREFIX/lib/janet - $HOMEBREW_PREFIX/bin/jpm - $HOMEBREW_PREFIX/share/man/man1/jpm.1
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.41.2
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/janet-lang/janet
- 检测到的最新版本: v1.41.2 (当前)
## 项目历史与用法

Janet is a small dynamic programming language and bytecode virtual machine designed for system scripting, automation, and embedding in C or C++ programs. It is a Lisp-family runtime with a REPL, macros, green threads, C FFI, and a deliberately portable implementation.

### 项目历史

The GitHub repository was created in March 2017 and describes Janet as a dynamic language and bytecode VM. The README positions it between Lua and GNU Guile: easier to embed and port than Python or Guile, richer than Lua, and distributed in a form suitable for embedding into larger programs.

Janet's core grew around a compact but batteries-included runtime: more than 600 core functions and macros, socket networking, threading, subprocesses, filesystem operations, parsing expression grammars, continuations, an event loop, Erlang-style supervision trees, a C FFI, and documentation available inside the REPL.

### 采用历史

Janet adoption is package-manager friendly because the runtime is small, scriptable, and useful without a large ecosystem install. The input package metadata records packaging across Homebrew, Alpine, Fedora, MacPorts, Nix, Scoop, winget, and openSUSE-style zypper, while Homebrew API data available during this enrichment recorded 1,057 installs over 365 days.

The project also maintains two companion ecosystem tools, Spork and JPM. The README describes Spork as a collection of utility modules and packaged scripts, while JPM is the older project manager; that split reflects Janet's use both as an embeddable runtime and as a standalone scripting language.

### 使用方式

Users run Janet scripts, explore with the REPL, embed the VM in C or C++ applications, or use its FFI and event-loop facilities for automation and systems tasks. The official documentation covers language syntax, special forms, data structures, fibers, modules, networking, process management, FFI, the C API, JPM, and Spork.

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

Janet is package-nerd interesting because it packs a Lisp-like language, VM, C API, REPL, FFI, PEG engine, and async/event primitives into a small runtime package. It appeals to users who like Lua's embedding story but want macros, richer core facilities, and a Unix-scripting feel.

### 时间线

- 2017: GitHub repository created for the Janet language and VM.
- 2024: v1.36.0 release notes recorded AAPCS64 calling-convention support and REPL improvements.
- 2025: v1.40.0 release notes recorded Windows-related runtime and documentation work among many community changes.
- 2026: v1.41.2 release notes fixed a regression in out-of-bounds buffer and array indexing.

### Related projects

- Janet is related to Lua, GNU Guile, Python embedding use cases, and Lisp-family scripting languages. Inside its own ecosystem, Spork and JPM are the important companion projects, and the README notes an official GitHub repository plus an actively maintained SourceHut mirror.

### 来源

- <https://api.github.com/repos/janet-lang/janet>
- <https://api.github.com/repos/janet-lang/janet/releases?per_page=10>
- <https://formulae.brew.sh/api/formula/janet.json>
- <https://github.com/janet-lang/janet>
- <https://janet-lang.org/docs/index.html>
- <https://raw.githubusercontent.com/janet-lang/janet/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** janet
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - janet: normalized package name match | nixpkgs package indexes: janet from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - janet - 1.41.2-r0: normalized package name match | Alpine Linux edge package indexes: janet from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic Lisp dialect and bytecode VM | https://janet-lang.org/
- apk - janet-dev - 1.41.2-r0: normalized package name match | Alpine Linux edge package indexes: janet-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic Lisp dialect and bytecode VM (development files) | https://janet-lang.org/
- apk - janet-doc - 1.41.2-r0: normalized package name match | Alpine Linux edge package indexes: janet-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic Lisp dialect and bytecode VM (documentation) | https://janet-lang.org/
- apk - janet-static - 1.41.2-r0: normalized package name match | Alpine Linux edge package indexes: janet-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic Lisp dialect and bytecode VM (static library) | https://janet-lang.org/
- dnf - janet - 1.41.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: janet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A dynamic language and bytecode vm | https://janet-lang.org
- dnf - janet-devel - 1.41.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: janet-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A dynamic language and bytecode vm | https://janet-lang.org
- pacman - janet - 1.41.2-4: normalized package name match | Arch Linux sync databases: janet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A dynamic language and bytecode vm | https://janet-lang.org
- zypper - janet - 1.39.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: janet from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Lisp-like functional and imperative programming language | https://janet-lang.org
- zypper - janet-devel - 1.39.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: janet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Headers for embedding Janet scripting | https://janet-lang.org
- zypper - janet-devel-static - 1.39.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: janet-devel-static from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Headers for embedding Janet scripting | https://janet-lang.org
- zypper - libjanet1_39 - 1.39.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: libjanet1_39 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library for the lisp-like functional and imperative programming language | https://janet-lang.org
- MacPorts - janet: normalized package name match | MacPorts ports tree: lang/janet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/janet: normalized package name match | Scoop official bucket manifest trees: bucket/janet.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - JanetLang.Janet: normalized package name match | Windows Package Manager source index: JanetLang.Janet from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Shares pkgdb curated category or tags: cli, embeddable, language-runtime, programming-language, scripting.
- [lua@5.4](https://pkg.so/zh-hans/brew/lua-5-4/) - Shares pkgdb curated category or tags: cli, embeddable, language-runtime, programming-language, scripting.
- [luau](https://pkg.so/zh-hans/brew/luau/) - Shares pkgdb curated category or tags: cli, embeddable, language-runtime, programming-language, scripting.
- [nu](https://pkg.so/zh-hans/brew/nu/) - Shares pkgdb curated category or tags: cli, language-runtime, lisp, programming-language, scripting.
- [ruby](https://pkg.so/zh-hans/brew/ruby/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [php](https://pkg.so/zh-hans/brew/php/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [perl](https://pkg.so/zh-hans/brew/perl/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [gauche](https://pkg.so/zh-hans/brew/gauche/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [rune](https://pkg.so/zh-hans/brew/rune/) - Local package facts share a topical domain. Shared terms: cli, dynamic, embeddable, language, language-runtime.

## Combined YAML source

View the package source record on GitHub. [combined/janet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/janet.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
