Install lens updates on Debian 11?

I’m using Darktable 4.2.1 on Debian 11, which I installed from a .DEB that I downloaded manually (separate from the package manager). I’m trying to lens correct for the Z7ii with a NIKKOR Z 24-70/f4.

According to lensfun’s coverage table, the NIKKOR Z 24-70mm f/4 S is on the list as covered.

The lens correction module in Darktable detects the lens (from camera data), but the camera field is blank. It says “camera/lens not found”.

When I try to go through the drop down manually, there are no Z cameras under Nikon, and no Z lenses in the lens drop down.

I tried running the command “lensfun-update‑data” in the terminal, but it’s not a valid command.

How can I update the lensfun database so the Z cameras and lenses are added to the list?

Use apt to search for lensfun packages and install them.

Also this is not. a good idea. Where did you download it from?

Thanks, I got it working. The necessary package is called liblensfun-bin.

apt install liblensfun-bin

Then you can run:

lensfun-update-data

If you are using an FTZ adapter to use an F mount lens on a Z body, do you need to tell lensfun that somehow? Does that affect lens distortion?