Use flags: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
Line 1: Line 1:
Use flags are options in Gentoo Linux's [[Portage]] system.
Use flags are options in Gentoo Linux's [[Portage]] system.


Typically, you can add a flag "globally" by editing:
== Setting Use Flags ==


* /etc/make.conf
=== Per package ===
 
or by package name by editing:


Typically, you would add a use flags on a per-package basis by making changes to the file:
* /etc/portage/package.use
* /etc/portage/package.use


= Setting Use Flags in Portage =
Use a text editor as "superuser" to edit this file.
 
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:
For instance to add jpeg, png, and TrueType support to [[ImageMagick]], you need to add the following line somewhere (it doesn't matter where) to the package.use file:


<pre>
<pre>
media-gfx/imagemagick jpeg png
media-gfx/imagemagick jpeg png truetype
</pre>
</pre>


Line 22: Line 19:


<pre>
<pre>
media-gfx/imagemagick jpeg png -tiff
media-gfx/imagemagick jpeg png truetype -tiff
</pre>
</pre>


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


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:
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:
Line 33: Line 30:
</pre>
</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].
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].

Latest revision as of 21:42, 13 October 2008

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

Setting Use Flags

Per package

Typically, you would add a use flags on a per-package basis 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, png, and TrueType 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 truetype

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

media-gfx/imagemagick jpeg png truetype -tiff

Globally

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.