Maybe these would help? Unfortunately, I’m not knowledgeable regarding lensfun, my old Nikon SLR lenses are supported out of the box, so I’ve never had to do anything.
https://lensfun.github.io/manual/latest/dbsearch.html
https://lensfun.github.io/manual/latest/lensfun-update-data.html
According to those, your own files should go under ~/.local/share/lensfun
, and those will not be overwritten; updates are written to:
~/.local/share/lensfun/updates/version_x
(withoutsudo
)/var/lib/lensfun-updates/version_1
(with sudo)
On my system, the commands behave as described in the docs:
kofa@eagle:~$ lensfun-update-data
[...]
Successfully updated the database in /home/kofa/.local/share/lensfun/updates/version_1.
kofa@eagle:~$ sudo lensfun-update-data
[...]
Successfully updated the database in /var/lib/lensfun-updates/version_1.