# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, 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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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

- 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

- zypper (92%):

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

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

## 软件包事实

- **软件包键:** brew:lensfun
- **软件包管理器:** Homebrew
- **版本:** 0.3.4
- **来源摘要:** Remove defects from digital images
- **主页:** <https://lensfun.github.io/>
- **仓库:** <https://github.com/lensfun/lensfun>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/


## Combined YAML source

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