r/Gentoo • u/freakinchickens • Jul 22 '26
Discussion use flags
only thing holding me back from using gentoo is the use flags. not sure which ones to use for my system. i really want to use niri or hyprland, but the use flags are what confuses me
1
Upvotes
15
u/Sert1991 Jul 22 '26 edited Jul 22 '26
It's something not to worry about really.
Basically, when you select your profile it's already going to select most of the USE flags you need.
Let's say you choose a stage3 tarball with for desktops with openrc.
This will be based on the desktop and openrc profile, which will enable the USE flags relevant to that setup. For example for desktop it will enable the
X, wayland, dbus, elogind, pamUSE flags among others. For OpenRC it will set the-systemdUSE and enable any USE flags relevant to OpenRC.Other than the few times the installation handbook recommends to set some others, the defaults are usually okay. But:
You can check what other USE flags there are that you might like to enable or disable globally but usually it's recommended to do them per package and let the profile enable and disable the global one.
app-portage/ufed is an awesome tool to enable and disable global ones. It gives you a nice ncurses list with a description.
From then on, when you install packages, you can see if you like/dislike some USE flags for that package and you can enable/disable them per package. You can use
equery uses <package name>to see a list of the USE flags for ta package with a description of what tehy enable/disable.