To modify the global USE flags, set the USE variable in /etc/make.conf
You can set USE flags for individual packages by specifying the package name and USE flag, in /etc/portage/package.use (the file or directory may not exist).
Eg of /etc/portage/package.use
dev-db/mysql berkdb -java[/code]The above example disables java use flag and enables berkdb for package dev-db/mysql.
If you want only a temporary USE flag during emerge of just the current package, you can specify the flag on the same command line where you specify the emerge:
USE="-java" emerge seamonkey[/code]To view the current USE flags, run:
emerge --info
Once some USE flags have been set, one must make Portage see the new flags, with:
emerge --update --deep --newuse world[/code]Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.