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

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

## 安装

```sh
sudo av install brew:lensfun
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lensfun
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lensfun
```

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

### Linux

- apk (92%):

```sh
sudo apk add lensfun
```

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

- Debian apt (92%):

```sh
sudo apt install liblensfun-bin
```

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

- dnf (92%):

```sh
sudo dnf install lensfun
```

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

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

- pacman (92%):

```sh
sudo pacman -S lensfun
```

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

- zypper (92%):

```sh
sudo zypper install lensfun-data
```

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

## 软件包事实

- **软件包键:** brew:lensfun
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/lensfun>
- **版本:** 0.3.4
- **来源摘要:** Remove defects from digital images
- **主页:** <https://lensfun.github.io/>
- **仓库:** <https://github.com/lensfun/lensfun>
- **上游文档:** <https://lensfun.github.io/>
- **许可证:** LGPL-3.0-only AND GPL-3.0-only AND CC-BY-3.0 AND LicenseRef-Homebrew-public-domain
- **源码归档:** <https://github.com/lensfun/lensfun/archive/refs/tags/v0.3.4.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- g-lensfun-update-data (cli)
- lensfun-add-adapter (cli)
- lensfun-update-data (cli)
- lenstool (cli)
- g-lensfun-update-data (别名)
- lensfun-add-adapter (别名)
- lensfun-update-data (别名)
- lenstool (别名)

## 依赖

- gettext
- glib
- libpng
- python@3.14

## 构建依赖

- cmake
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.3.4
- 本地数据: OK
- 上游仓库: https://github.com/lensfun/lensfun
- 检测到的最新版本: v0.3.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Lensfun is a library and open lens-profile database for correcting photographic lens defects such as distortion, lateral chromatic aberration, and vignetting.

### 项目历史

The Lensfun project says it was started by Andrew Zabolotny in 2007 to create a free and open source database for correcting photographic lens errors. The README explains that the database grew from an earlier public PTLens database, with permission from the PTLens author, while Lensfun's code was rewritten from scratch and the data was converted to a new XML-based format.

Project maintenance shifted in 2012, when Torsten Bronger described taking over maintenance after fixes and database updates had stalled. The focus after that was continuous integration of submitted profiles and regular releases so application users could get updated camera and lens data.

### 采用历史

Lensfun's adoption is tied to desktop photo and raw-processing software. The project documentation describes Lensfun itself as a library and database, with actual image correction normally happening through applications that integrate it.

Its packaging spread reflects that role: distributions ship both the runtime library/database and helper tools so photo applications can use a shared correction database instead of maintaining their own lens profiles.

### 使用方式

Applications query Lensfun's camera and lens database, then apply correction algorithms based on the matched equipment profile. The project also ships tools such as lensfun-update-data and lenstool for maintaining or testing the database outside a larger photo application.

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

Lensfun matters to package nerds because it is shared data infrastructure: one small package can improve lens correction across many photography applications. Its database-updater commands also make the package unusually data-centric for a C/C++ media library.

### 时间线

- 2007: Andrew Zabolotny started Lensfun as a free and open source lens-correction database.
- 2012: Torsten Bronger took over maintenance and emphasized integrating submitted profiles and releasing updated data.
- 2022: Release 0.3.3 updated the 0.3.x branch with camera and lens data through February 22, 2022.
- 2023: Release 0.3.4 updated the 0.3.x branch with camera and lens data through July 12, 2023.

### Related projects

- PTLens supplied the public database seed that Lensfun converted and extended.
- Photo applications with Lensfun support are the main consumers of the library and database.

### 来源

- <https://github.com/lensfun/lensfun>
- <https://lensfun.github.io/news/>
- <https://lensfun.github.io/usage/>


## 安全说明

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:** lensfun
- **Version Scheme:** 1
- **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 - liblensfun-bin - 0.3.4-1+b3: normalized package name match | Debian stable package indexes: liblensfun-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lens Correction library - Utilities | https://lensfun.github.io/
- Debian apt - liblensfun-data-v1 - 0.3.4-1: normalized package name match | Debian stable package indexes: liblensfun-data-v1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lens Correction library - Data | https://lensfun.github.io/
- Debian apt - liblensfun-dev - 0.3.4-1+b3: normalized package name match | Debian stable package indexes: liblensfun-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lens Correction library - Development files | https://lensfun.github.io/
- Debian apt - liblensfun-doc - 0.3.4-1: normalized package name match | Debian stable package indexes: liblensfun-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lens Correction library - Documentation | https://lensfun.github.io/
- Debian apt - liblensfun1 - 0.3.4-1+b3: normalized package name match | Debian stable package indexes: liblensfun1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lens Correction library - Runtime files | https://lensfun.github.io/
- Debian apt - python3-lensfun - 0.3.4-1+b3: normalized package name match | Debian stable package indexes: python3-lensfun from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lens Correction library - Python3 module | https://lensfun.github.io/
- Nix - lensfun: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/lensfun/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liblensfun-bin - 0.3.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: liblensfun-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lens Correction library - Utilities | https://lensfun.github.io/
- Ubuntu apt - liblensfun-data-v1 - 0.3.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: liblensfun-data-v1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lens Correction library - Data | https://lensfun.github.io/
- Ubuntu apt - liblensfun-dev - 0.3.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: liblensfun-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lens Correction library - Development files | https://lensfun.github.io/
- Ubuntu apt - liblensfun-doc - 0.3.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: liblensfun-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lens Correction library - Documentation | https://lensfun.github.io/
- Ubuntu apt - liblensfun1 - 0.3.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: liblensfun1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lens Correction library - Runtime files | https://lensfun.github.io/
- Ubuntu apt - python3-lensfun - 0.3.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-lensfun from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lens Correction library - Python3 module | https://lensfun.github.io/
- apk - lensfun - 0.3.4-r2: normalized package name match | Alpine Linux edge package indexes: lensfun from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Image manipulation library to rectify lens defects | https://lensfun.github.io/
- apk - lensfun-dev - 0.3.4-r2: normalized package name match | Alpine Linux edge package indexes: lensfun-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Image manipulation library to rectify lens defects (development files) | https://lensfun.github.io/
- apk - lensfun-doc - 0.3.4-r2: normalized package name match | Alpine Linux edge package indexes: lensfun-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Image manipulation library to rectify lens defects (documentation) | https://lensfun.github.io/


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [gettext](https://www.automicvault.com/zh-hans/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/zh-hans/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/zh-hans/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dcraw](https://www.automicvault.com/zh-hans/pkg/brew/dcraw/) - Shares av.db curated category or tags: cli, media, photography.
- [dnglab](https://www.automicvault.com/zh-hans/pkg/brew/dnglab/) - Shares av.db curated category or tags: cli, media, photography.
- [gphoto2](https://www.automicvault.com/zh-hans/pkg/brew/gphoto2/) - Shares av.db curated category or tags: cli, media, photography.
- [gphotos-uploader-cli](https://www.automicvault.com/zh-hans/pkg/brew/gphotos-uploader-cli/) - Shares av.db curated category or tags: cli, media, photography.
- [libpano](https://www.automicvault.com/zh-hans/pkg/brew/libpano/) - Shares av.db curated category or tags: cli, image-processing, media, photography.
- [babl](https://www.automicvault.com/zh-hans/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [caire](https://www.automicvault.com/zh-hans/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/zh-hans/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [openimageio](https://www.automicvault.com/zh-hans/pkg/brew/openimageio/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, image, image-processing, images, libpng.
- [vips](https://www.automicvault.com/zh-hans/pkg/brew/vips/) - Both packages work with overlapping file formats or content types. Shared terms: cli, gettext, glib, image, image-processing.
- [gd](https://www.automicvault.com/zh-hans/pkg/brew/gd/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, image-processing, images, libpng.

## Combined YAML source

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