Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install luajit

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install luajit

MacPorts ports tree · lang/luajit/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

nixpkgs package indexes · luajit · 来源: raw.githubusercontent.com

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

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

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

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

Windows

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

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

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

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

概览

软件包摘要

Just-In-Time Compiler (JIT) for the Lua programming language

命令和别名

  • luajit
  • luajit-2.1.1779665312

历史

项目历史与用法

LuaJIT is a just-in-time compiler and high-performance Lua 5.1-compatible runtime. It became one of the defining alternative Lua runtimes because it combines a fast interpreter, trace JIT compiler, FFI, and broad embedding support.

项目历史

LuaJIT is authored by Mike Pall and has been in continuous development since 2005. The official overview describes it as a JIT compiler for Lua that can be embedded or used as a standalone language runtime.

LuaJIT 2.0 was a major rewrite of the VM, combining an assembler-written interpreter with a trace compiler and SSA-based optimizations. The official extensions documentation also makes clear why LuaJIT became more than a faster lua executable: it adds the FFI library, built-in bit operations, JIT control modules, profiler support, and Lua/C API extensions while remaining API and ABI compatible with Lua 5.1.

采用历史

The official LuaJIT overview says it has been used in games, appliances, network and graphics applications, numerical simulations, trading platforms, and other specialty applications, and is part of large web, SaaS, networking, set-top-box, and embedded deployments.

Package-manager adoption is broad: the input metadata lists LuaJIT packages for Homebrew, MacPorts, Debian, Ubuntu, Fedora, Alpine, Arch, openSUSE, Nix, Scoop, and Winget. That distribution footprint reflects LuaJIT's role as both a developer tool and a dependency of packages that want Lua speed or LuaJIT FFI.

使用方式

The normal command-line entry point is luajit on POSIX systems and luajit.exe on Windows. It runs Lua chunks, scripts, and interactive sessions, and it supports Lua-like CLI options plus LuaJIT-specific bytecode, JIT-control, and optimization switches.

In package ecosystems, LuaJIT is commonly selected when a project targets Lua 5.1 semantics but wants faster execution, C interop through FFI, or compatibility with ecosystems such as OpenResty and LuaJIT-oriented LuaRocks modules.

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

LuaJIT is package-nerd-famous because it sits at the intersection of language runtime, C ABI, and distribution policy. The project now uses rolling releases from git rather than release tarballs, so downstream packages often package snapshots and must track branch policy carefully.

It also explains a lot of Lua packaging behavior: LuaRocks modules may distinguish Lua versions, LuaJIT, FFI availability, and ABI compatibility. Having LuaJIT as a separate package lets distributions provide both stock Lua and the high-performance Lua 5.1-compatible runtime.

时间线

  • 2005: LuaJIT development begins.
  • 2010s: LuaJIT 2.0 rewrites the VM around a fast interpreter and trace compiler.
  • 2020s: LuaJIT documents rolling releases and recommends following versioned branches rather than old tarball-style releases.
  • 2026: Official status page lists v2.1 as the production branch.

Related projects

  • Lua is the upstream language whose 5.1 API and ABI LuaJIT targets.
  • OpenResty maintains its own LuaJIT branch for nginx/OpenResty workloads.
  • LuaRocks packages Lua modules that may run on LuaJIT or depend on LuaJIT-specific FFI behavior.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:programming language,jit,just-in-time

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
luajitcli全局可执行文件
luajit-2.1.1779665312cli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本2.1.1783585446
管理器更新时间2026-07-09
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/LuaJIT/LuaJIT

安装元数据

软件包元数据

软件包键brew:luajit
版本2.1.1783585446
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/luajit
主页https://luajit.org/luajit.html
仓库https://github.com/LuaJIT/LuaJIT
上游文档https://luajit.org/extensions.html
许可证MIT
源码归档https://github.com/LuaJIT/LuaJIT/archive/fed6d4782a3939d0b260402e2df5706ca036a290.tar.gz
最后更新2026-07-09T14:23:06Z
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

libluajit-5.1-2 2.1.0+openresty20250117-2

OpenResty-maintained branch of LuaJIT (shared objects)

https://github.com/openresty/luajit2

sudo apt install libluajit-5.1-2
  • Section: libs
  • Architecture: amd64
  • Source Package: luajit
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Luajit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libluajit-5.1-2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libluajit-5.1-common 2.1.0+openresty20250117-2

OpenResty-maintained branch of LuaJIT (common files)

https://github.com/openresty/luajit2

sudo apt install libluajit-5.1-common
  • Section: interpreters
  • Architecture: all
  • Source Package: luajit
  • normalized package name match
  • 匹配方式:Luajit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libluajit-5.1-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libluajit-5.1-dev 2.1.0+openresty20250117-2

OpenResty-maintained branch of LuaJIT (development files)

https://github.com/openresty/luajit2

sudo apt install libluajit-5.1-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: luajit
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Luajit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libluajit-5.1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

luajit 2.1.0+openresty20250117-2

OpenResty-maintained branch of LuaJIT (interpreter)

https://github.com/openresty/luajit2

sudo apt install luajit
  • Section: interpreters
  • Architecture: amd64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Luajit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: luajit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

luajit

nix profile install nixpkgs#luajit
  • normalized package name match
  • 匹配方式:Luajit
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: luajit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

libluajit-5.1-2 2.1.0+git20231223.c525bcb+dfsg-1

Just in time compiler for Lua - library version

https://luajit.org

sudo apt install libluajit-5.1-2
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: luajit
  • 3 依赖
  • normalized package name match
  • 匹配方式:Luajit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libluajit-5.1-2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libluajit-5.1-common 2.1.0+git20231223.c525bcb+dfsg-1

Just in time compiler for Lua - common files

https://luajit.org

sudo apt install libluajit-5.1-common
  • Section: universe/interpreters
  • Architecture: all
  • Source Package: luajit
  • normalized package name match
  • 匹配方式:Luajit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libluajit-5.1-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libluajit-5.1-dev 2.1.0+git20231223.c525bcb+dfsg-1

Just in time compiler for Lua - development files

https://luajit.org

sudo apt install libluajit-5.1-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: luajit
  • 1 依赖
  • normalized package name match
  • 匹配方式:Luajit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libluajit-5.1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

luajit 2.1.0+git20231223.c525bcb+dfsg-1

Just in time compiler for Lua programming language version 5.1

https://luajit.org

sudo apt install luajit
  • Section: universe/interpreters
  • Architecture: amd64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Luajit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: luajit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

luajit 2.1_p20251030-r0

OpenResty's branch of LuaJIT

https://github.com/openresty/luajit2

sudo apk add luajit
  • License: MIT
  • Architecture: x86_64
  • Source Package: luajit
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Luajit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: luajit from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

luajit-dbg 2.1_p20251030-r0

OpenResty's branch of LuaJIT (debug symbols)

https://github.com/openresty/luajit2

sudo apk add luajit-dbg
  • License: MIT
  • Architecture: x86_64
  • Source Package: luajit
  • 1 依赖
  • normalized package name match
  • 匹配方式:Luajit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: luajit-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

luajit-dev 2.1_p20251030-r0

OpenResty's branch of LuaJIT (development files)

https://github.com/openresty/luajit2

sudo apk add luajit-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: luajit
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Luajit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: luajit-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

luajit-doc 2.1_p20251030-r0

OpenResty's branch of LuaJIT (documentation)

https://github.com/openresty/luajit2

sudo apk add luajit-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: luajit
  • normalized package name match
  • 匹配方式:Luajit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: luajit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

luajit 2.1.1767980792-1.fc44

Just-In-Time Compiler for Lua

http://luajit.org

sudo dnf install luajit
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: luajit
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Luajit
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: luajit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

luajit-devel 2.1.1767980792-1.fc44

Development files for luajit

http://luajit.org

sudo dnf install luajit-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: luajit
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Luajit
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: luajit-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

luajit 2.1.1780076327+b925b3e-1

Just-in-time compiler and drop-in replacement for Lua 5.1

https://luajit.org/

sudo pacman -S luajit
  • License: MIT
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Luajit
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: luajit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment