whatis dependency

Dependency

Also known as: dependency hell

Another package or library that a piece of software needs in order to install or run, resolved automatically by the package manager.

What Is a Package Dependency in Linux?

Linux distributions share libraries between programs rather than bundling a copy into each one. A package declares what it depends on, and the package manager installs those too, along with their dependencies.

Conflicts arise when two programs need incompatible versions of the same library ("dependency hell"). Flatpak, Snap, AppImage, and containers sidestep this by bundling dependencies with the app.

Example

apt-cache depends curl
dnf repoquery --requires curl