# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 libsvm

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

## 安装

```sh
sudo av install brew:libsvm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libsvm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libsvm
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libsvm-dev
```

  证据: Debian stable package indexes: libsvm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libsvm
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#libsvm
```

  证据: nixpkgs package indexes: pkgs/by-name/li/libsvm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libsvm
```

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

- zypper (92%):

```sh
sudo zypper install libsvm-devel
```

  证据: openSUSE Tumbleweed package metadata: libsvm-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libsvm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libsvm>
- **版本:** 3.37
- **来源摘要:** Library for support vector machines
- **主页:** <https://www.csie.ntu.edu.tw/~cjlin/libsvm/>
- **上游文档:** <https://www.csie.ntu.edu.tw/~cjlin/libsvm>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-3.37.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- svm-predict (cli)
- svm-scale (cli)
- svm-train (cli)
- svm-predict (别名)
- svm-scale (别名)
- svm-train (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.37
- 本地数据: OK
- 上游仓库: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

LIBSVM is a compact support-vector-machine toolkit from Chih-Chung Chang and Chih-Jen Lin at National Taiwan University. Its culture is unusually package-manager friendly: small C++ sources, three command-line programs, language bindings, sample data, and enough documentation for researchers to reproduce an SVM workflow without adopting a large framework.

### 项目历史

The project traces to 2000, the first year in the upstream copyright notice and the year identified by the 2011 ACM TIST paper as the start of active development. The official homepage describes LIBSVM as integrated software for support-vector classification, regression, and one-class distribution estimation, with multiclass classification, cross-validation, probability estimates, multiple kernels, and automatic model selection.

Version 2.8 incorporated an SMO-type algorithm using second-order working-set selection, tying the package to the JMLR work by Fan, Chen, and Lin. The project also kept a teaching posture: the upstream page promotes a practical SVM guide, an easy.py helper for beginners, the svm-toy visualization, and a standard sparse text data format that became familiar far beyond the original tarball.

### 采用历史

LIBSVM spread through research and applied machine-learning workflows because it was easy to compile, easy to call from scripts, and easy to wrap. The upstream page lists Java, Python, R, MATLAB, Perl, Ruby, Weka, Common Lisp, Haskell, OCaml, LabVIEW, PHP, C#/.NET, and CUDA-related interfaces, plus inclusion in data-mining environments.

The package's adoption is also visible in distribution channels: the Homebrew formula is accompanied by Debian, Ubuntu, Fedora, MacPorts, Nix, Arch, and openSUSE package names in the input metadata, while upstream added PyPI installation support in the 3.25 release on April 14, 2021.

### 使用方式

The command-line workflow centers on svm-train, svm-predict, and svm-scale. Users put data in LIBSVM's sparse label/index/value format, scale features when needed, train a model, and run prediction; the README documents classification, regression, one-class SVM, kernels, class weights, cross-validation, and probability-estimate flags.

Library users link the C++ implementation or one of the language interfaces. Package users care that the upstream distribution remains small, permissively licensed, and stable enough that many higher-level tools can shell out to it or embed its data format.

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

LIBSVM is one of the classic examples of a research codebase becoming infrastructure because it did a narrow job well. It gave package managers a small, portable SVM implementation with stable command names and a data format that became a lingua franca for benchmarks.

Its significance is not only the algorithm implementation; it is the surrounding convention set: svm-train, svm-predict, svm-scale, heart_scale examples, grid search helpers, and a sparse text format that many datasets and wrappers learned to speak.

### 时间线

- 2000: LIBSVM development begins, matching the start year in the upstream copyright notice and the 2011 ACM TIST project paper.
- 2005: Version 2.8 adopts an SMO-type algorithm based on second-order working-set selection.
- 2011: The ACM Transactions on Intelligent Systems and Technology article documents LIBSVM as a library for support vector machines.
- 2021: Version 3.25 adds PyPI installation support for the Python interface.
- 2025: Version 3.37 is announced on the upstream homepage on December 29, 2025.

### Related projects

- LIBLINEAR is the closest sibling project from the same NTU group, aimed at large linear classification rather than kernel SVMs.
- scikit-learn, Weka, MATLAB/Octave wrappers, R interfaces, and many benchmark datasets relate to LIBSVM through bindings, compatible data formats, or workflow conventions.

### 来源

- <https://dl.acm.org/doi/10.1145/1961189.1961199>
- <https://github.com/cjlin1/libsvm>
- <https://raw.githubusercontent.com/cjlin1/libsvm/master/COPYRIGHT>
- <https://raw.githubusercontent.com/cjlin1/libsvm/master/README>
- <https://www.csie.ntu.edu.tw/~cjlin/libsvm/>


## 安全说明

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:** libsvm
- **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

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

- Debian apt - libsvm-dev - 3.24+ds-6.1: normalized package name match | Debian stable package indexes: libsvm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LIBSVM header files | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Debian apt - libsvm-java - 3.24+ds-6.1: normalized package name match | Debian stable package indexes: libsvm-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java API to support vector machine library (libsvm.jar) | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Debian apt - libsvm-tools - 3.24+ds-6.1: normalized package name match | Debian stable package indexes: libsvm-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LIBSVM binary tools | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Debian apt - libsvm3 - 3.24+ds-6.1: normalized package name match | Debian stable package indexes: libsvm3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing support vector machines | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Debian apt - libsvm3-java - 3.24+ds-6.1: normalized package name match | Debian stable package indexes: libsvm3-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java API to support vector machine library (libsvm3.jar) | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Debian apt - python3-libsvm - 3.24+ds-6.1: normalized package name match | Debian stable package indexes: python3-libsvm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python interface for support vector machine library | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Nix - libsvm: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libsvm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libsvm-dev - 3.24+ds-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsvm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | LIBSVM header files | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Ubuntu apt - libsvm-java - 3.24+ds-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsvm-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java API to support vector machine library (libsvm.jar) | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Ubuntu apt - libsvm-tools - 3.24+ds-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsvm-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | LIBSVM binary tools | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Ubuntu apt - libsvm3 - 3.24+ds-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsvm3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library implementing support vector machines | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Ubuntu apt - libsvm3-java - 3.24+ds-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsvm3-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java API to support vector machine library (libsvm3.jar) | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- Ubuntu apt - python3-libsvm - 3.24+ds-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-libsvm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python interface for support vector machine library | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- dnf - libsvm - 3.37-6.fc45: normalized package name match | Fedora Rawhide package metadata: libsvm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A Library for Support Vector Machines | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- dnf - libsvm-devel - 3.37-6.fc45: normalized package name match | Fedora Rawhide package metadata: libsvm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libsvm in C, C++ and Java | https://www.csie.ntu.edu.tw/~cjlin/libsvm/
- dnf - libsvm-java - 3.37-6.fc45: normalized package name match | Fedora Rawhide package metadata: libsvm-java from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Java tools and interfaces for libsvm | https://www.csie.ntu.edu.tw/~cjlin/libsvm/


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [libsql](https://www.automicvault.com/zh-hans/pkg/brew/libsql/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libstatgrab](https://www.automicvault.com/zh-hans/pkg/brew/libstatgrab/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libstxxl](https://www.automicvault.com/zh-hans/pkg/brew/libstxxl/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtar](https://www.automicvault.com/zh-hans/pkg/brew/libtar/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtasn1](https://www.automicvault.com/zh-hans/pkg/brew/libtasn1/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtecla](https://www.automicvault.com/zh-hans/pkg/brew/libtecla/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtensorflow](https://www.automicvault.com/zh-hans/pkg/brew/libtensorflow/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtiff](https://www.automicvault.com/zh-hans/pkg/brew/libtiff/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Local package facts share a topical domain. Shared terms: cli, completed, not, not-completed, other.

## Combined YAML source

View the package source record on GitHub. [combined/libsvm.yml](https://github.com/automic-vault/db/blob/main/combined/libsvm.yml)


## 来源

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