Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install xmake

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install xmake

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

Linux

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

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

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

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

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

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

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

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

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

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

Windows

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

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

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

Windows Package Manager source index · Xmake-io.Xmake · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Cross-platform build utility based on Lua

命令和别名

  • xmake
  • xrepo

历史

项目历史与用法

Xmake is a Lua-based cross-platform build utility for C, C++, and other compiled-language projects. Its distinctive package-nerd angle is that it combines build backend, project generator, package manager, remote/distributed build support, and cache features behind one `xmake.lua` project file.

项目历史

The GitHub repository was created on 2015-04-23. Xmake's own introduction describes it as a lightweight, cross-platform build utility based on Lua, driven by a dependency-free C core, with concise project configuration compared with Makefiles or CMake.

The project grew from a build tool into a combined build-and-dependency environment. The README frames Xmake as build backend plus project generator plus package manager, with analogies to Make/Ninja, CMake/Meson, Vcpkg/Conan, distcc, and ccache/sccache. That positioning explains why the `xmake` executable is paired with `xrepo` for package work.

The official xmake-repo package repository was created on 2017-04-09. The package guide says official package use was initially supported after version 2.2.2, with `add_requires()` naming third-party packages and `add_packages()` applying them to targets.

By the 3.0 series, Xmake had accumulated a broad platform and toolchain matrix. The README lists desktop, BSD, mobile, embedded, WebAssembly, and cross-compilation platforms, plus toolchains ranging from GCC, Clang, MSVC, Xcode, Android NDK, Zig, Rust, Swift, CUDA, Fortran, Verilator, WebAssembly, and vendor embedded compilers.

采用历史

Xmake adoption has been community-led rather than standards-body driven. The official "Who is using Xmake?" page lists game modding, embedded, graphics, aerospace, data-structure, full-body tracking, real-time communication, and commercial/internal users, plus notable entries such as Epic Games Zen and Microsoft Research's CHERIoT RTOS.

For package users, adoption was helped by Xmake's dual role: installing the tool is enough to try simple builds, while the official package repository lets projects express third-party C/C++ package needs inside the same Lua build description.

使用方式

A minimal project defines targets in `xmake.lua`, for example setting a target kind and adding source globs. Common commands are `xmake` to build, `xmake run` to execute a target, `xmake test` for tests, and `xmake f` or `xmake config` to set platform, architecture, and build mode.

Dependency use centers on `add_requires()` and `add_packages()`: Xmake can check system libraries, fetch matching source packages, build and install them into its own package area, then link them into the project. The package guide also documents semantic version constraints, optional packages, debug package builds, custom package configs, and private/project package repositories.

Xmake is especially practical for cross-platform C/C++ projects that want build logic, third-party package integration, IDE/project generation, and cross-compilation switches in one tool without writing separate CMake and shell glue layers.

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

Xmake is significant because it collapses several packaging-adjacent jobs into one executable: project description, build orchestration, dependency acquisition, toolchain selection, package repository rules, and generated project files. That makes it a useful comparison point against CMake plus vcpkg/conan or Meson plus external dependency managers.

Its package repository is also a distribution model in miniature: recipes are versioned in a central GitHub repo, selected semantically by project files, and built per platform/architecture into an isolated install area. For package nerds, that is the interesting part, not just the Lua syntax.

时间线

  • 2015-04-23: xmake GitHub repository created.
  • 2017-04-09: xmake-repo, the official package repository, created.
  • 2018-10-16: xmake v2.2.2 released; official package-management documentation says package use was initially supported after this version.
  • 2025-06-15: xmake v3.0.0 released, switching to 3.0 policies and changing build/run defaults.
  • 2026-05-19: xmake v3.0.9 released with new toolchain, package, and graph/export features.

Related projects

  • Related tools include Make, Ninja, CMake, Meson, Vcpkg, Conan, distcc, ccache, sccache, and the official xmake-repo package repository. Xmake also overlaps with IDE/project generators because it can generate project files for other build environments.

来源

安全态势

尚未找到受保护工具覆盖

没有找到 xmake 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

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

建议审查

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

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
xmake.lua
Windows
xmake.lua

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/xmake-io/xmake

安装元数据

软件包元数据

软件包键brew:xmake
版本3.0.9
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/xmake
主页https://xmake.io/
仓库https://github.com/xmake-io/xmake
上游文档https://xmake.io/
许可证Apache-2.0
源码归档https://github.com/xmake-io/xmake/releases/download/v3.0.9/xmake-v3.0.9.tar.gz
最后更新2026-05-19T04:49:58Z
Pulseupdated
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namexmake
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%

xmake 2.9.9+ds-1

cross-platform build utility based on Lua

https://xmake.io

sudo apt install xmake
  • Section: devel
  • Architecture: amd64
  • 9 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Xmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: xmake from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

xmake-data 2.9.9+ds-1

Data for xmake

https://xmake.io

sudo apt install xmake-data
  • Section: devel
  • Architecture: all
  • Source Package: xmake
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Xmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: xmake-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

xmake

nix profile install nixpkgs#xmake
  • normalized package name match
  • 匹配方式:Xmake
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/xm/xmake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

xmake 2.8.7+ds-1build2

cross-platform build utility based on Lua

http://xmake.io

sudo apt install xmake
  • Section: universe/devel
  • Architecture: amd64
  • 8 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Xmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: xmake from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

xmake-data 2.8.7+ds-1build2

Data for xmake

http://xmake.io

sudo apt install xmake-data
  • Section: universe/devel
  • Architecture: all
  • Source Package: xmake
  • normalized package name match
  • 匹配方式:Xmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: xmake-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

xmake 3.0.9-r0

A cross-platform build utility based on Lua

https://xmake.io/

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

xmake-bash-completion 3.0.9-r0

Bash completions for xmake

https://xmake.io/

sudo apk add xmake-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: xmake
  • normalized package name match
  • 匹配方式:Xmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xmake-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

xmake-doc 3.0.9-r0

A cross-platform build utility based on Lua (documentation)

https://xmake.io/

sudo apk add xmake-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: xmake
  • normalized package name match
  • 匹配方式:Xmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xmake-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

xmake-fish-completion 3.0.9-r0

Fish completions for xmake

https://xmake.io/

sudo apk add xmake-fish-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: xmake
  • normalized package name match
  • 匹配方式:Xmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xmake-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

xmake-zsh-completion 3.0.9-r0

Zsh completions for xmake

https://xmake.io/

sudo apk add xmake-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: xmake
  • normalized package name match
  • 匹配方式:Xmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xmake-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

xmake 3.0.9-2.fc45

A cross-platform build utility based on Lua

https://xmake.io

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

xmake-data 3.0.9-2.fc45

Common data-files for xmake

https://xmake.io

sudo dnf install xmake-data
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: xmake
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Xmake
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xmake-data from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

xmake 3.0.9-1

A cross-platform build utility based on Lua

https://github.com/xmake-io/xmake

sudo pacman -S xmake
  • License: Apache
  • Architecture: x86_64
  • normalized package name match
  • 匹配方式:Xmake
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: xmake from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

xmake

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

main/xmake

scoop install main/xmake
  • normalized package name match
  • 匹配方式:Xmake
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/xmake.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Xmake-io.Xmake

winget install --id Xmake-io.Xmake -e
  • normalized package name match
  • 匹配方式:Xmake
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Xmake-io.Xmake from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 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