Which Linux package provides a file

The examples below are for Ubuntu, but equivalents may be found for Debian Gentoo Arch Linux and other distros.

File: “Search the content of Packages” in the Ubuntu Package Search, to find which packages provide a file for specific Ubuntu versions. This is important for files that aren’t available in your Ubuntu version.

Example: search for core/dbus/dbus.h shows it’s in libdbus-cpp-dev.

Program: show which versions Fortran open-coarrays is available in. Search source package names open-coarrays