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
 
(One intermediate revision by the same user not shown)
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
 
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:
 
<pre>
media-gfx/imagemagick jpeg png truetype
</pre>
 
To explicitly ''disable'' a particular feature, put a dash (-) before the flag name, as in:
 
<pre>
media-gfx/imagemagick jpeg png truetype -tiff
</pre>


* /etc/portage/package.use
=== 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:
 
<pre>
USE="-ipv6 gtk2 unicode"
</pre>
 
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 22: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.