Taming Gentoo USE Flags Without Breaking Your System
Global USE flags in Gentoo can create hidden dependencies. Learn how to use per-package overrides in package.use and audit your builds with equery to keep your system lean.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Global USE flags in Gentoo can create hidden dependencies. Learn how to use per-package overrides in package.use and audit your builds with equery to keep your system lean.
USE flags let Gentoo administrators enable or disable optional capabilities when Portage builds packages from source. Learn where to set them, how to verify the effective set, and which flag combinations break builds.
Gentoo's Portage offers three rebuild mechanisms after USE flag or library updates. Learn when to use --changed-use, @preserved-rebuild, and preserve-libs, and how to preview changes safely.
Override global Gentoo USE flags for a single package via /etc/portage/package.use to control compile-time features without triggering a system-wide rebuild.
Gentoo USE flags let you decide which optional features get compiled into each package. Learn how global and per-package settings interact, how to preview changes safely, and the mistakes that silently waste rebuilds.
Learn how to use Gentoo USE flags to eliminate unnecessary dependencies and reduce binary bloat through global and package-specific configurations.
Gentoo's USE flags offer fine-grained control but silently drift across updates. A structured per-package declaration strategy makes builds predictable, bisectable, and auditable — with a concrete container example.
Gentoo USE flags let you toggle optional package features at compile time. This guide covers practical configuration with a worked headless-server example, common mistakes (missing spaces, forgotten --newuse), and verification steps to keep your system consistent.
Learn how to diagnose and resolve dependency bloat and missing features in Gentoo using USE flags, global configurations, and package-specific overrides.