Use flags: Difference between revisions

From XPUB & Lens-Based wiki
(New page: Use flags are options in Gentoo Linux's Portage system. Typically, you can add a flag "globally" by editing: * /etc/make.conf or by package name by editing: * /etc/portage/package....)
 
No edit summary
Line 8: Line 8:


* /etc/portage/package.use
* /etc/portage/package.use
= Setting Use Flags in Portage =
Generally you alter use flags by making changes to the file '''/etc/portage/package.use'''. Use a text editor as "superuser" to edit this file.
For instance to add jpeg and png support to [[ImageMagick]], you need to add the following line somewhere (it doesn't matter where) to the package.use file:
<pre>
media-gfx/imagemagick jpeg png
</pre>
To explicitly ''disable'' a particular feature, put a dash (-) before the flag name, as in:
<pre>
media-gfx/imagemagick jpeg png -tiff
</pre>
This would then add jpeg and png support, but ''not'' include support for TIFF files.
Sometimes a particular use flag is used by many packages. To set such a flag for ''all'' software packages you install with portage, you can add them to the file '''/etc/make.conf'''. In that case, you would add the flag to the line that looks like USE="...", as in:
<pre>
USE="-ipv6 gtk2 unicode"
</pre>
&lt;!&gt; For more in information on Portage, check out  [http://pzwart2.wdka.hro.nl/phorum/viewtopic.php?p=431#431 Cal's post in the forum].

Revision as of 21:38, 13 October 2008

Use flags are options in Gentoo Linux's Portage system.

Typically, you can add a flag "globally" by editing:

  • /etc/make.conf

or by package name by editing:

  • /etc/portage/package.use

Setting Use Flags in Portage

Generally you alter use flags by making changes to the file /etc/portage/package.use. Use a text editor as "superuser" to edit this file.

For instance to add jpeg and png support to ImageMagick, you need to add the following line somewhere (it doesn't matter where) to the package.use file:

media-gfx/imagemagick jpeg png

To explicitly disable a particular feature, put a dash (-) before the flag name, as in:

media-gfx/imagemagick jpeg png -tiff

This would then add jpeg and png support, but not include support for TIFF files.

Sometimes a particular use flag is used by many packages. To set such a flag for all software packages you install with portage, you can add them to the file /etc/make.conf. In that case, you would add the flag to the line that looks like USE="...", as in:

USE="-ipv6 gtk2 unicode"

<!> For more in information on Portage, check out Cal's post in the forum.