/[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.23
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.23 2004/11/15 12:47:47 swift Exp $ -->
8 8
9<sections> 9<sections>
10
11<version>1.21</version>
12<date>October 21, 2004</date>
13
10<section> 14<section>
11<title>What are USE-flags?</title> 15<title>What are USE-flags?</title>
12<subsection> 16<subsection>
13<title>The ideas behind USE-flags</title> 17<title>The ideas behind USE-flags</title>
14<body> 18<body>
208<p> 212<p>
209As an example we will temporarily remove java from the USE-setting 213As an example we will temporarily remove java from the USE-setting
210during the installation of mozilla. 214during the installation of mozilla.
211</p> 215</p>
212 216
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"> 217<pre caption="Using USE as environment variable">
219# <i>USE="-java" emerge mozilla</i> 218# <i>USE="-java" emerge mozilla</i>
220</pre> 219</pre>
221 220
222</body> 221</body>
288<title>Adapting your Entire System to New USE Flags</title> 287<title>Adapting your Entire System to New USE Flags</title>
289<body> 288<body>
290 289
291<p> 290<p>
292If you have altered your USE flags and you wish to update your entire system to 291If 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. 292use 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> 293</p>
301 294
302<pre caption="Rebuilding your entire system"> 295<pre caption="Rebuilding your entire system">
303# <i>emerge --emptytree world</i> 296# <i>emerge --update --deep --newuse world</i>
304</pre> 297</pre>
305 298
306<p> 299<p>
307Next, run Portage's depclean to remove the conditional dependencies that 300Next, 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 301were emerged on your "old" system but that have been obsoleted by the new USE
319<pre caption="Removing obsoleted packages"> 312<pre caption="Removing obsoleted packages">
320# <i>emerge -p depclean</i> 313# <i>emerge -p depclean</i>
321</pre> 314</pre>
322 315
323<p> 316<p>
317When depclean has finished, run <c>revdep-rebuild</c> to rebuild the
318applications that are dynamically linked against shared objects provided by
319possibly removed packages. <c>revdep-rebuild</c> is part of the
320<c>gentoolkit</c> package; don't forget to emerge it first.
321</p>
322
323<pre caption="Running revdep-rebuild">
324# <i>revdep-rebuild</i>
325</pre>
326
327<p>
324When depclean has finished, your system is using the new USE flag settings. 328When all this is accomplished, your system is using the new USE flag settings.
325</p> 329</p>
326 330
327</body> 331</body>
328</subsection> 332</subsection>
329</section> 333</section>
332<subsection> 336<subsection>
333<title>Viewing available USE-flags</title> 337<title>Viewing available USE-flags</title>
334<body> 338<body>
335 339
336<p> 340<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 341Let 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 342find out, we use <c>emerge</c> with the <c>--pretend</c> and <c>--verbose</c>
346anything) and <c>--verbose</c> (give more output) options: 343options:
347</p> 344</p>
348 345
349<pre caption="Viewing the used USE-flags"> 346<pre caption="Viewing the used USE-flags">
350# <i>emerge --pretend --verbose mozilla</i> 347# <i>emerge --pretend --verbose mozilla</i>
351These are the packages that I would merge, in order: 348These are the packages that I would merge, in order:
361dedicated to package information called <c>etcat</c> which resides in the 358dedicated to package information called <c>etcat</c> which resides in the
362<c>gentoolkit</c> package. First, install <c>gentoolkit</c>: 359<c>gentoolkit</c> package. First, install <c>gentoolkit</c>:
363</p> 360</p>
364 361
365<pre caption="Installing gentoolkit"> 362<pre caption="Installing gentoolkit">
366# <i>emerge --usepkg gentoolkit</i> 363# <i>emerge gentoolkit</i>
367</pre> 364</pre>
368 365
369<p> 366<p>
370Now run <c>etcat</c> with the <c>uses</c> argument to view the USE-flags of a 367Now 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: 368certain package. For instance, for the <c>gnumeric</c> package:

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

  ViewVC Help
Powered by ViewVC 1.1.20