What is pkg-config?
pkg-config is made by Red Hat. A helper utility that provides compiler and linker flags for installed libraries by querying metadata files during software builds.
What pkg-config does
A helper utility that provides compiler and linker flags for installed libraries by querying metadata files during software builds.
- Retrieves C/C++ compiler flags for libraries
- Retrieves linker flags for libraries
- Parses .pc metadata files
- Supports multiple library version checks
- Handles dependency resolution between libraries
- Environment-variable overrides for search paths (e.g., PKG_CONFIG_PATH)
- Produces machine-readable output for build systems
- Integrates with Autotools, Make, and other build tools
Category: File Analysis Software. pkg-config is open source and free to use.
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does pkg-config do?
A helper utility that provides compiler and linker flags for installed libraries by querying metadata files during software builds.
How common is pkg-config in large enterprises?
Samplify finds pkg-config in about 1 in 10 of the large enterprise software estates it has analysed.
Is pkg-config free?
pkg-config is open source and free to use.
What can replace pkg-config?
Other tools in the same category include 7-Zip, Beyond Compare, Pandoc, TreeSize.
Do we already own something that does what pkg-config does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Red Hat.