/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-use.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-use.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.20 Revision 1.21
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-use.xml,v 1.20 2004/10/10 11:09:27 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-use.xml,v 1.21 2004/10/21 10:31:20 swift Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>What are USE-flags?</title> 11<title>What are USE-flags?</title>
12<subsection> 12<subsection>
208<p> 208<p>
209As an example we will temporarily remove java from the USE-setting 209As an example we will temporarily remove java from the USE-setting
210during the installation of mozilla. 210during the installation of mozilla.
211</p> 211</p>
212 212
213<note>
214The <c>emerge</c> command will be discussed more thoroughly in <uri
215link="?part=2&amp;chap=2">Portage and Software</uri>.
216</note>
217
218<pre caption="Using USE as environment variable"> 213<pre caption="Using USE as environment variable">
219# <i>USE="-java" emerge mozilla</i> 214# <i>USE="-java" emerge mozilla</i>
220</pre> 215</pre>
221 216
222</body> 217</body>
288<title>Adapting your Entire System to New USE Flags</title> 283<title>Adapting your Entire System to New USE Flags</title>
289<body> 284<body>
290 285
291<p> 286<p>
292If you have altered your USE flags and you wish to update your entire system to 287If you have altered your USE flags and you wish to update your entire system to
293use the new USE flags, you can try following the next steps to accomplish this. 288use the new USE flags, use <c>emerge</c>'s <c>--newuse</c> option:
294Note however that these steps will take a long time to finish and that work is
295on the way to adjust Portage to handle this behaviour quicker and automatically.
296</p>
297
298<p>
299First of all, rebuild your entire system using the new USE flags:
300</p> 289</p>
301 290
302<pre caption="Rebuilding your entire system"> 291<pre caption="Rebuilding your entire system">
303# <i>emerge --emptytree world</i> 292# <i>emerge --update --deep --newuse world</i>
304</pre> 293</pre>
305 294
306<p> 295<p>
307Next, run Portage's depclean to remove the conditional dependencies that 296Next, run Portage's depclean to remove the conditional dependencies that
308were emerged on your "old" system but that have been obsoleted by the new USE 297were emerged on your "old" system but that have been obsoleted by the new USE
319<pre caption="Removing obsoleted packages"> 308<pre caption="Removing obsoleted packages">
320# <i>emerge -p depclean</i> 309# <i>emerge -p depclean</i>
321</pre> 310</pre>
322 311
323<p> 312<p>
313When depclean has finished, run <c>revdep-rebuild</c> to rebuild the
314applications that are dynamically linked against shared objects provided by
315possibly removed packages. <c>revdep-rebuild</c> is part of the
316<c>gentoolkit</c> package; don't forget to emerge it first.
317</p>
318
319<pre caption="Running revdep-rebuild">
320# <i>revdep-rebuild</i>
321</pre>
322
323<p>
324When depclean has finished, your system is using the new USE flag settings. 324When all this is accomplished, your system is using the new USE flag settings.
325</p> 325</p>
326 326
327</body> 327</body>
328</subsection> 328</subsection>
329</section> 329</section>
332<subsection> 332<subsection>
333<title>Viewing available USE-flags</title> 333<title>Viewing available USE-flags</title>
334<body> 334<body>
335 335
336<p> 336<p>
337In the next chapter on <uri link="?part=2&amp;chap=2">Portage and Software</uri>
338we will explain how to manage your installed software and how to work with
339<c>emerge</c>. However, we will give you a primer on <c>emerge</c> by showing
340you how to view what USE-flags a package uses.
341</p>
342
343<p>
344Let us take the example of <c>mozilla</c>: what USE-flags does it listen to? To 337Let us take the example of <c>mozilla</c>: what USE-flags does it listen to? To
345find out, we use <c>emerge</c> with the <c>--pretend</c> (don't really do 338find out, we use <c>emerge</c> with the <c>--pretend</c> and <c>--verbose</c>
346anything) and <c>--verbose</c> (give more output) options: 339options:
347</p> 340</p>
348 341
349<pre caption="Viewing the used USE-flags"> 342<pre caption="Viewing the used USE-flags">
350# <i>emerge --pretend --verbose mozilla</i> 343# <i>emerge --pretend --verbose mozilla</i>
351These are the packages that I would merge, in order: 344These are the packages that I would merge, in order:
361dedicated to package information called <c>etcat</c> which resides in the 354dedicated to package information called <c>etcat</c> which resides in the
362<c>gentoolkit</c> package. First, install <c>gentoolkit</c>: 355<c>gentoolkit</c> package. First, install <c>gentoolkit</c>:
363</p> 356</p>
364 357
365<pre caption="Installing gentoolkit"> 358<pre caption="Installing gentoolkit">
366# <i>emerge --usepkg gentoolkit</i> 359# <i>emerge gentoolkit</i>
367</pre> 360</pre>
368 361
369<p> 362<p>
370Now run <c>etcat</c> with the <c>uses</c> argument to view the USE-flags of a 363Now run <c>etcat</c> with the <c>uses</c> argument to view the USE-flags of a
371certain package. For instance, for the <c>gnumeric</c> package: 364certain package. For instance, for the <c>gnumeric</c> package:

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20