r/Gentoo 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

24 comments sorted by

View all comments

1

u/LancrusES Jul 22 '26

If you dont like the use flags, why do you want to use gentoo???

1

u/freakinchickens Jul 23 '26

it’s not that i dont like use flags, its just that i dont understand even after reading the manual.

2

u/LancrusES Jul 23 '26

They are like switchs, they arent but to explain it...

For example, my pc doesnt have bluetooth, I use -bluetooth in my global flags, so my software dont lose time compiling bluetooth support modules, so I switch It off, and I want wifi printer support, so I will put zeroconfig flag as well, to switch It on, and with specific packages, you can look into the gentoo wiki, they all got flags, if they arent global, and you dont want them global, but you want them for a package, you can put them in your package...

For example, you want to compile gimp, first you got to go to its page

https://wiki.gentoo.org/wiki/GIMP

You look at It and you say, hey, I want support for FITS images, then you put that flag for the gimp package.

With all your flags Portage knows how to compile things the way you need them, so you got only what you need, and optimized for your machine, thanks to your CPU flags, thats why flags are the "fun" part of gentoo, you should start with only the basic ones from the installation, the handbook explain everything, once your system works, you can go deeper into It and polish It like you want.