# 使用 Homebrew, MacPorts, apt 安装 unac

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

## 安装

```sh
sudo av install brew:unac
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install unac
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install unac
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libunac1
```

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

## 软件包事实

- **软件包键:** brew:unac
- **软件包管理器:** Homebrew
- **版本:** 1.8.0
- **来源摘要:** C library and command that removes accents from a string
- **主页:** <https://savannah.nongnu.org/projects/unac>
- **最后更新:** 2026-07-14T20:07:12+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- unaccent (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

unac is a small C library and command-line utility for removing accents from text by converting through Unicode with iconv. Its package history is the classic Unix-library story: a narrow text-processing primitive, a manpage-driven CLI, and distribution through source tarballs and OS packages.

### 项目历史

The official README describes unac as a C library plus the `unaccent` command. The code history on Savannah shows active early-2000s maintenance by Loic Dachary, with releases around Unicode data updates, iconv portability, bug fixes, and manual-page improvements.

The official NEWS file records version 1.8.0 upgrading to Unicode 4.0, version 1.7.0 fixing a Unicode 3.2 bug, and version 1.6.0 upgrading to Unicode 3.2.0. The ChangeLog records release activity from 2000 through 2004, which frames unac as mature legacy infrastructure rather than a fast-moving modern text stack.

### 采用历史

The official project page announced Debian and RPM packages in the early 2000s, and the input package metadata lists Homebrew, MacPorts, Debian, and Ubuntu package names. That is the relevant adoption story: unac became a distro-packaged text-normalization dependency and command rather than a highly visible end-user tool.

### 使用方式

The README says the input charset must be specified, after which unac converts text to UTF-16 with iconv, removes accents, and converts the result back. The `unaccent` command can process an input flow or a string argument, making it useful in shell pipelines and indexing/import scripts.

Package users reach for unac when they need a tiny native accent-folding tool without pulling in a larger application framework. The tradeoff is that it reflects older Unicode and iconv-era design assumptions.

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

unac is significant in the package-nerd niche because it preserves a focused pre-ICU style Unix component: a C library, manpages, autotools build, and a single CLI that does one text-normalization job.

It is not a major ecosystem pillar, but it is the sort of small dependency that matters when old software, search systems, or packaging recipes still expect `unaccent` behavior.

### 时间线

- 2000: ChangeLog records unac 1.2.0 release activity.
- 2001: Versions 1.3.0, 1.4.0, and 1.5.0 appear in the official ChangeLog and NEWS.
- 2002: Versions 1.6.0 and 1.7.0 update Unicode support and bug handling.
- 2004: Version 1.8.0 upgrades to Unicode 4.0.

### Related projects

- Text-Unaccent and phpUnac were released alongside unac in early project announcements.
- iconv and GNU libiconv are central related components because unac relies on charset conversion before accent removal.

### 来源

- <https://git.savannah.nongnu.org/cgit/unac.git/plain/ChangeLog>
- <https://git.savannah.nongnu.org/cgit/unac.git/plain/NEWS>
- <https://git.savannah.nongnu.org/cgit/unac.git/plain/README>
- <https://www.nongnu.org/unac/>
- source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

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

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

- Debian apt - libunac1 - 1.8.0-10+b3: normalized package name match | Debian stable package indexes: libunac1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | unac programming library - runtime version
- Debian apt - libunac1-dev - 1.8.0-10+b3: normalized package name match | Debian stable package indexes: libunac1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C programmer's library that removes accents from a string
- Debian apt - unaccent - 1.8.0-10+b3: normalized package name match | Debian stable package indexes: unaccent from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Replace accented letters by their unaccented equivalent
- Ubuntu apt - libunac1 - 1.8.0-10: normalized package name match | Ubuntu 24.04 LTS package indexes: libunac1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | unac programming library - runtime version
- Ubuntu apt - libunac1-dev - 1.8.0-10: normalized package name match | Ubuntu 24.04 LTS package indexes: libunac1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C programmer's library that removes accents from a string
- Ubuntu apt - unaccent - 1.8.0-10: normalized package name match | Ubuntu 24.04 LTS package indexes: unaccent from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Replace accented letters by their unaccented equivalent
- MacPorts - unac: normalized package name match | MacPorts ports tree: textproc/unac/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/unac.yml](https://github.com/mxcl/pkgdb/blob/main/combined/unac.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
