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

Remove defects from digital images. Version 0.3.4 via Homebrew; verified from local package data. Also installable with debian: sudo apt install liblensfun-bin.

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

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

- 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

- zypper (92%):

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

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

## Package facts

- **Package key:** brew:lensfun
- **Package manager:** Homebrew
- **Version:** 0.3.4
- **Source summary:** Remove defects from digital images
- **Homepage:** <https://lensfun.github.io/>
- **Repository:** <https://github.com/lensfun/lensfun>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

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

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.3.4
## 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

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


## Combined YAML source

View the package source record on GitHub. [combined/lensfun.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lensfun.yml)


## Sources

- 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
