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

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

## 安装

```sh
sudo av install brew:hamlib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hamlib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hamlib
```

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

### Linux

- apk (92%):

```sh
sudo apk add hamlib
```

  证据: Alpine Linux edge package indexes: hamlib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install hamlib
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#hamlib
```

  证据: nixpkgs package indexes: hamlib from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S hamlib
```

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

- zypper (92%):

```sh
sudo zypper install hamlib
```

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

- Debian apt (92%):

```sh
sudo apt install libhamlib++-dev
```

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

## 软件包事实

- **软件包键:** brew:hamlib
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hamlib>
- **版本:** 4.7.2
- **来源摘要:** Ham radio control libraries
- **主页:** <http://www.hamlib.org/>
- **仓库:** <https://github.com/Hamlib/Hamlib>
- **上游文档:** <http://www.hamlib.org/>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://github.com/Hamlib/Hamlib/releases/download/4.7.2/hamlib-4.7.2.tar.gz>
- **最后更新:** 2026-06-21T15:41:01Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ampctl (cli)
- ampctld (cli)
- rigctl (cli)
- rigctlcom (cli)
- rigctld (cli)
- rigctlsync (cli)
- rigctltcp (cli)
- rigmem (cli)
- rigsmtr (cli)
- rigswr (cli)
- rigtestlibusb (cli)
- rigtestmcast (cli)
- rigtestmcastrx (cli)
- rotctl (cli)
- rotctld (cli)
- ampctl (别名)
- ampctld (别名)
- rigctl (别名)
- rigctlcom (别名)
- rigctld (别名)
- rigctlsync (别名)
- rigctltcp (别名)
- rigmem (别名)
- rigsmtr (别名)
- rigswr (别名)
- rigtestlibusb (别名)
- rigtestmcast (别名)
- rigtestmcastrx (别名)
- rotctl (别名)
- rotctld (别名)

## 依赖

- libtool
- libusb
- libusb-compat

## 构建依赖

- autoconf
- automake
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.7.2
- 管理器更新时间: 2026-06-21
- 本地数据: OK
- 上游仓库: https://github.com/Hamlib/Hamlib
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Hamlib is the long-running free-software control layer for amateur-radio rigs, rotators, and amplifiers. It matters because it gives radio applications a shared API and command set instead of forcing every logging, digital-mode, contest, or satellite tool to speak each device protocol directly.

### 项目历史

Hamlib traces its copyright lineage to Frank Singleton, Stephane Fillod, and the Hamlib Group beginning in 2000. The official README describes the project goal as stable, flexible shared libraries for faster development of amateur-radio equipment-control applications.

The design grew around a generic library API and backend modules for specific devices. The README describes `libhamlib` as the generic API seen by application programs, with radio, rotator, and amplifier backends behind it. That backend model is the central historical choice: support for new hardware can be added without rewriting every client application.

The project has also accumulated command-line utilities and network daemons. Tools such as `rigctl`, `rotctl`, and `ampctl` expose direct shell control and testing, while `rigctld`, `rotctld`, and `ampctld` make the same command families available over TCP sockets for applications written in other languages or running on other machines.

### 采用历史

Hamlib became infrastructure rather than a single end-user program. The official README notes C++ support, bindings for Perl, Python, and TCL, and a network daemon usable by any language with sockets. That made it practical for GUI applications, scripts, and distributed station-control setups to share the same hardware backends.

Package-manager adoption reflects that infrastructure role. The input package facts list Hamlib in Homebrew, Alpine, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, and openSUSE-style packaging, which is the kind of broad Unix distribution footprint expected for a hardware-control library used by other amateur-radio software.

### 使用方式

Users and developers most often meet Hamlib through the control utilities. `rigctl` can set or query radio state from the shell, `rotctl` controls antenna rotators, and the daemon variants let multiple clients speak to equipment through TCP ports. The dummy model gives developers a way to test behavior without physical radio hardware.

For application authors, the package provides a common API for equipment capabilities and state. The library abstracts differences among serial, USB-serial, Ethernet, Wi-Fi, Bluetooth, and similar control paths where devices present a command interface.

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

Hamlib is a classic package-nerd dependency: the executables are useful, but the real value is the shared ABI/API and the growing backend database. Distributions package it because many higher-level radio tools can depend on one control library instead of vendoring device protocols or requiring users to build hardware drivers from source.

It is also a packaging stress case. The project spans C libraries, command-line tools, daemon protocols, language bindings, release branches, and hardware-specific backends. Packagers care about Hamlib because an upgrade can unlock new equipment support, but major-version or command/API changes can affect client applications that link to the library or script against the utilities.

### 时间线

- 2000: Copyright lineage begins with Frank Singleton, Stephane Fillod, and the Hamlib Group.
- 2001-2011: Copyright notices in utility manual pages identify Stephane Fillod's early long-term authorship period.
- 2002 onward: Hamlib Group contributor copyright appears in utility documentation.
- 2010s-2020s: The project continues as a shared library plus command utilities, daemon interfaces, bindings, release branches, and a GitHub-hosted master repository.

### Related projects

- Client applications commonly relate to Hamlib through the `rigctl`/`rotctl` utilities or the `rigctld`/`rotctld` network daemons. The project also relates to radio logging, digital-mode, satellite-tracking, and remote-station software that need standardized rig or rotator control.
- The project keeps a SourceForge presence for snapshots and backup distribution while the master repository is on GitHub.

### 来源

- <https://formulae.brew.sh/formula/hamlib>
- <https://github.com/Hamlib/Hamlib>
- <https://github.com/Hamlib/Hamlib/wiki>
- <https://github.com/Hamlib/Hamlib/wiki/Network-Device-Control>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hamlib
- **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 - libhamlib++-dev - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: libhamlib++-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development C++ library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - libhamlib++4t64 - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: libhamlib++4t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run-time C++ library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - libhamlib-dev - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: libhamlib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - libhamlib-doc - 4.6.2-1: normalized package name match | Debian stable package indexes: libhamlib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for the hamlib radio control library | http://www.hamlib.org
- Debian apt - libhamlib-perl - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: libhamlib-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run-time perl library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - libhamlib-utils - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: libhamlib-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utilities to support the hamlib radio control library | http://www.hamlib.org
- Debian apt - libhamlib4t64 - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: libhamlib4t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run-time library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - lua-hamlib - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: lua-hamlib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run-time Lua library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - python3-hamlib - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: python3-hamlib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run-time Python3 library to control radio transceivers and receivers | http://www.hamlib.org
- Debian apt - tcl-hamlib - 4.6.2-1+b1: normalized package name match | Debian stable package indexes: tcl-hamlib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run-time Tcl library to control radio transceivers and receivers | http://www.hamlib.org
- Nix - hamlib: normalized package name match | nixpkgs package indexes: hamlib from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libhamlib++-dev - 4.5.5-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libhamlib++-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development C++ library to control radio transceivers and receivers | https://sourceforge.net/projects/hamlib/
- Ubuntu apt - libhamlib++4t64 - 4.5.5-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libhamlib++4t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Run-time C++ library to control radio transceivers and receivers | https://sourceforge.net/projects/hamlib/
- Ubuntu apt - libhamlib-dev - 4.5.5-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libhamlib-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development library to control radio transceivers and receivers | https://sourceforge.net/projects/hamlib/
- Ubuntu apt - libhamlib-doc - 4.5.5-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libhamlib-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for the hamlib radio control library | https://sourceforge.net/projects/hamlib/
- Ubuntu apt - libhamlib-perl - 4.5.5-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libhamlib-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Run-time perl library to control radio transceivers and receivers | https://sourceforge.net/projects/hamlib/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://pkg.so/zh-hans/scientific-computing-tools/) - Matched scientific computing metadata.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Runtime dependency declared by Homebrew.
- [libusb-compat](https://pkg.so/zh-hans/brew/libusb-compat/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [gpredict](https://pkg.so/zh-hans/brew/gpredict/) - Popular package that depends on this formula.
- [direwolf](https://pkg.so/zh-hans/brew/direwolf/) - Popular package that depends on this formula.
- [qhull](https://pkg.so/zh-hans/brew/qhull/) - Shares pkgdb curated category or tags: cli, library, science.
- [geos](https://pkg.so/zh-hans/brew/geos/) - Shares pkgdb curated category or tags: cli, library, science.
- [sfcgal](https://pkg.so/zh-hans/brew/sfcgal/) - Shares pkgdb curated category or tags: cli, library, science.
- [flann](https://pkg.so/zh-hans/brew/flann/) - Shares pkgdb curated category or tags: cli, library, science.
- [glpk](https://pkg.so/zh-hans/brew/glpk/) - Shares pkgdb curated category or tags: cli, library, science.
- [wcslib](https://pkg.so/zh-hans/brew/wcslib/) - Shares pkgdb curated category or tags: cli, library, science.
- [libdap](https://pkg.so/zh-hans/brew/libdap/) - Shares pkgdb curated category or tags: cli, library, science.
- [udunits](https://pkg.so/zh-hans/brew/udunits/) - Shares pkgdb curated category or tags: cli, library, science.
- [librtlsdr](https://pkg.so/zh-hans/brew/librtlsdr/) - Local package facts share a topical domain. Shared terms: cli, libusb, radio, science.
- [limesuite](https://pkg.so/zh-hans/brew/limesuite/) - Local package facts share a topical domain. Shared terms: cli, libusb, radio, science.

## Combined YAML source

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