# Install lensfun with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Remove defects from digital images. Version 0.3.4 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lensfun
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lensfun
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:lensfun
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lensfun>
- **Version:** 0.3.4
- **Source summary:** Remove defects from digital images
- **Homepage:** <https://lensfun.github.io/>
- **Repository:** <https://github.com/lensfun/lensfun>
- **Upstream docs:** <https://lensfun.github.io/>
- **License:** LGPL-3.0-only AND GPL-3.0-only AND CC-BY-3.0 AND LicenseRef-Homebrew-public-domain
- **Source archive:** <https://github.com/lensfun/lensfun/archive/refs/tags/v0.3.4.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- g-lensfun-update-data (cli)
- lensfun-add-adapter (cli)
- lensfun-update-data (cli)
- lenstool (cli)
- g-lensfun-update-data (alias)
- lensfun-add-adapter (alias)
- lensfun-update-data (alias)
- lenstool (alias)

## Dependencies

- gettext
- glib
- libpng
- python@3.14

## Build dependencies

- cmake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.3.4
- Local data: ok
- Upstream repository: https://github.com/lensfun/lensfun
- Upstream latest detected: v0.3.4 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dcraw](https://www.automicvault.com/pkg/brew/dcraw/) - Shares av.db curated category or tags: cli, media, photography.
- [dnglab](https://www.automicvault.com/pkg/brew/dnglab/) - Shares av.db curated category or tags: cli, media, photography.
- [gphoto2](https://www.automicvault.com/pkg/brew/gphoto2/) - Shares av.db curated category or tags: cli, media, photography.
- [gphotos-uploader-cli](https://www.automicvault.com/pkg/brew/gphotos-uploader-cli/) - Shares av.db curated category or tags: cli, media, photography.
- [libpano](https://www.automicvault.com/pkg/brew/libpano/) - Shares av.db curated category or tags: cli, image-processing, media, photography.
- [babl](https://www.automicvault.com/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [caire](https://www.automicvault.com/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [openimageio](https://www.automicvault.com/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/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/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)


## Sources

- 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
