# 使用 Homebrew 安装 libslax

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

## 安装

```sh
sudo av install brew:libslax
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libslax
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:libslax
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libslax>
- **版本:** 3.1.6
- **来源摘要:** Implementation of the SLAX language (an XSLT alternative)
- **主页:** <https://github.com/Juniper/libslax/wiki>
- **仓库:** <https://github.com/Juniper/libslax>
- **上游文档:** <https://github.com/Juniper/libslax/wiki>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/Juniper/libslax/releases/download/3.1.6/libslax-3.1.6.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- slax-config (cli)
- slaxproc (cli)
- slax-config (别名)
- slaxproc (别名)

## 依赖

- openssl@3

## 构建依赖

- bison
- libtool

## macOS 提供的库

- curl
- libedit
- libxml2
- libxslt
- sqlite

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.1.6
- 本地数据: OK
- 上游仓库: https://github.com/Juniper/libslax
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

libslax is Juniper's open-source C implementation of SLAX, an alternate syntax for XSLT used for Junos automation scripts. It provides the parser, writer, processor, debugger, profiler, and libraries behind the `slaxproc` command.

### 项目历史

Juniper documentation describes SLAX, Stylesheet Language Alternative syntaX, as a language for Junos OS commit scripts, op scripts, event scripts, and SNMP scripts. It keeps XSLT semantics but replaces XML-heavy syntax with a style closer to C and Perl.

The libslax distribution overview says SLAX was originally developed as part of Junos OS for on-box scripting to customize and enhance the CLI. It also describes libslax as an open-source New BSD licensed C implementation built on libxml2, libxslt, and libexslt.

### 采用历史

libslax adoption is concentrated in the Junos ecosystem. Juniper states that standard Junos OS and Junos OS Evolved include the libslax tools, while the open-source distribution can be installed on a Unix-like computer for off-box SLAX development.

The Juniper version table ties libslax versions to Junos releases, including libslax 0.14.1 with Junos OS 14.1, libslax 0.17.1 across Junos 14.2 through 17.3, libslax 0.22.0 across Junos 17.4 through 25.2, and libslax 3.1.6 for 25.4R1 and later.

### 使用方式

Network engineers use libslax indirectly through Junos script execution and directly through `slaxproc` to validate SLAX syntax, run or debug scripts, format files, and convert between SLAX and XSLT. The debugger and profiler make it more than a syntax translator.

Outside Junos devices, Homebrew's package gives developers a local Unix-like environment for writing and testing SLAX scripts before deploying them into Junos automation workflows.

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

libslax is niche, but it is a useful package-manager artifact because it exposes a vendor network-automation language as a normal open-source C toolchain. It pulls Junos scripting out of appliance firmware and into local development environments.

It also represents an unusual branch in XSLT history: rather than replacing XSLT, SLAX keeps the transform model and changes the surface syntax so humans can write network automation code with less XML noise.

### 时间线

- 2014: Juniper's version table maps Junos OS 14.1 to libslax 0.14.1 and SLAX 1.1.
- 2017: The libslax Read the Docs build records Juniper Networks copyright for the hosted documentation.
- 2025-08-26: The Juniper/libslax GitHub repository release list records libslax-3.1.6.
- 25.4R1: Juniper's version table maps Junos OS 25.4R1 and later to libslax 3.1.6 and SLAX 1.3.

### Related projects

- libslax is built on libxml2, libxslt, and libexslt. It is closely related to Junos OS automation scripting, Juniper's junoscriptorium example repository, and the broader XSLT/XML tooling ecosystem.

### 来源

- <https://github.com/Juniper/libslax>
- <https://juniper.github.io/libslax/slax-manual.html>
- <https://www.juniper.net/documentation/us/en/software/junos/automation-scripting/topics/concept/junos-script-automation-libslax-distribution-overview.html>
- <https://www.juniper.net/documentation/us/en/software/junos/automation-scripting/topics/concept/junos-script-automation-slax-overview.html>
- <https://www.juniper.net/documentation/us/en/software/junos/automation-scripting/topics/task/junos-script-automation-libslax-distribution-installing.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [bison](https://pkg.so/zh-hans/brew/bison/) - Build dependency declared by Homebrew.
- [juise](https://pkg.so/zh-hans/brew/juise/) - Popular package that depends on this formula.
- [libxslt](https://pkg.so/zh-hans/brew/libxslt/) - Shares pkgdb curated category or tags: cli, developer-tools, xml, xslt.
- [saxon](https://pkg.so/zh-hans/brew/saxon/) - Shares pkgdb curated category or tags: cli, developer-tools, xml, xslt.
- [expat](https://pkg.so/zh-hans/brew/expat/) - Shares pkgdb curated category or tags: cli, developer-tools, xml.
- [libxml2](https://pkg.so/zh-hans/brew/libxml2/) - Shares pkgdb curated category or tags: cli, developer-tools, xml.
- [rnv](https://pkg.so/zh-hans/brew/rnv/) - Shares pkgdb curated category or tags: cli, developer-tools, xml.
- [libwbxml](https://pkg.so/zh-hans/brew/libwbxml/) - Shares pkgdb curated category or tags: cli, developer-tools, xml.
- [docbook-xsl](https://pkg.so/zh-hans/brew/docbook-xsl/) - Shares pkgdb curated category or tags: cli, developer-tools, xml, xslt.
- [yq](https://pkg.so/zh-hans/brew/yq/) - Shares pkgdb curated category or tags: cli, developer-tools, xml.
- [cargo-c](https://pkg.so/zh-hans/brew/cargo-c/) - Local package facts share a topical domain. Shared terms: cli, config, developer, developer-tools, openssl.
- [cargo-update](https://pkg.so/zh-hans/brew/cargo-update/) - Local package facts share a topical domain. Shared terms: cli, config, developer, developer-tools, openssl.

## Combined YAML source

View the package source record on GitHub. [combined/libslax.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libslax.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
- cross-ecosystem install command graph
