# 使用 Homebrew, dnf, MacPorts, Nix, zypper 安装 libxls

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

## 安装

```sh
sudo av install brew:libxls
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libxls
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxls
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install libxls
```

  证据: Fedora Rawhide package metadata: libxls 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#libxls
```

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

- zypper (92%):

```sh
sudo zypper install libxls-devel
```

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

## 软件包事实

- **软件包键:** brew:libxls
- **软件包管理器:** Homebrew
- **版本:** 1.6.3
- **来源摘要:** Read binary Excel files from C/C++
- **主页:** <https://github.com/libxls/libxls>
- **仓库:** <https://github.com/libxls/libxls>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- libxls2csv (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.6.3
## 项目历史与用法

libxls is a C/C++ library and small command-line toolkit for reading the legacy binary Excel XLS format. Its package-manager identity is tied to a practical problem: extracting data from old spreadsheets without automating Microsoft Excel.

### 项目历史

The public source history records copyright lines for Komarov Valery in 2004, Christophe Leitienne in 2006, David Hoerl from 2008 through 2017, and Evan Miller from 2013 through 2018. The GitHub project describes the library as a parser for Excel files in the old binary OLE format and as the home of a CSV conversion tool.

By the 1.5.x series the project had been moved under new maintenance. The project README calls out the GitHub hosting move, an in-memory parsing API, error-returning internals, fuzz testing, and fixes for security vulnerabilities in the 1.4-and-earlier line.

### 采用历史

libxls spread through Unix package managers because the XLS format remained common in public data, research archives, and office exports long after XLSX became the default Office format. The R tidyverse readxl package documents libxls as its embedded reader for .xls files, which made the library visible to data analysts who never installed it directly.

### 使用方式

Typical use is either linking the C library to inspect worksheets and cells, or running the bundled converter on an XLS file before feeding the result to text-based data tools. The library is most relevant when the input is the old binary XLS/OLE format rather than OOXML XLSX.

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

For package maintainers, libxls is a small example of a compatibility library whose value comes from preserving access to awkward legacy binary formats. Its 1.5-era fuzzing and error-handling work also turned an old parser into something more acceptable for distro builds that may process untrusted documents.

### 时间线

- 2004: Source copyright records Komarov Valery's early libxls work.
- 2008: The v0.2.0 tag is associated with a GitHub commit dated 2008-03-30.
- 2018: The maintained GitHub line includes Evan Miller copyright years through 2018.
- 2019: The 1.5.x series marks the project's new-maintenance era with fuzzing and security fixes.

### Related projects

- readxl embeds libxls for .xls support and RapidXML for .xlsx support. The library also sits near tools that understand Microsoft Compound Document/OLE files and older Excel BIFF records.

### 来源

- <https://api.github.com/repos/libxls/libxls/commits/6c45c4adcb80d0575d71306652e201ad01b125c7>
- <https://github.com/libxls/libxls>
- <https://github.com/libxls/libxls/blob/dev/include/xls.h>
- <https://readxl.tidyverse.org/reference/readxl-package.html>


## 安全说明

library-like package without higher-risk signals.

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

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

- Nix - libxls: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libxls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - libxls - 1.6.3-8.fc45: normalized package name match | Fedora Rawhide package metadata: libxls from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Read binary Excel files from C/C++ | https://github.com/libxls/libxls
- dnf - libxls-devel - 1.6.3-8.fc45: normalized package name match | Fedora Rawhide package metadata: libxls-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libxls | https://github.com/libxls/libxls
- zypper - libxls-devel - 1.6.3-1.6: normalized package name match | openSUSE Tumbleweed package metadata: libxls-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Header files for libxls | https://github.com/libxls/libxls
- zypper - libxls-tools - 1.6.3-1.6: normalized package name match | openSUSE Tumbleweed package metadata: libxls-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Utility for parsing Excel (XLS) files | https://github.com/libxls/libxls
- zypper - libxlsreader8 - 1.6.3-1.6: normalized package name match | openSUSE Tumbleweed package metadata: libxlsreader8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library for Parsing Excel (XLS) Files | https://github.com/libxls/libxls
- MacPorts - libxls: normalized package name match | MacPorts ports tree: textproc/libxls/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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