# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.41.2
- **来源摘要:** Dynamic language and bytecode vm
- **主页:** <https://janet-lang.org>
- **仓库:** <https://github.com/janet-lang/janet>
- **最后更新:** 2026-07-29T21:10:30Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- janet (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
