Find which Linux package provides a program or file

less than 1 minute read

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

File

Select “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

This example shows which versions Fortran open-coarrays is available in. Search source package names open-coarrays

Tags:

Categories:

Updated:

Leave a comment