fundamental issue: every distro has a different naming scheme for
packages. Sure, the "big" programs (Firefox for instance) have usually
the name you'd expect, but with libraries this won't help at all.
https://release-monitoring.org can be used to solve that issue and they also provide an
API https://release-monitoring.org/static/docs/api.html
Best wishes
Sören alias Valor Naram