| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 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/2.0 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.40 2004/10/21 16:34:46 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.67 2007/11/01 01:28:56 jkt Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
|
|
10 | |
|
|
11 | <abstract> |
|
|
12 | This chapter explains the "simple" steps a user definitely needs to know to |
|
|
13 | maintain the software on his system. |
|
|
14 | </abstract> |
|
|
15 | |
|
|
16 | <version>1.60</version> |
|
|
17 | <date>2007-11-01</date> |
|
|
18 | |
| 10 | <section> |
19 | <section> |
| 11 | <title>Welcome to Portage</title> |
20 | <title>Welcome to Portage</title> |
| 12 | <body> |
21 | <body> |
| 13 | |
22 | |
| 14 | <p> |
23 | <p> |
| … | |
… | |
| 62 | <title>Updating the Portage Tree</title> |
71 | <title>Updating the Portage Tree</title> |
| 63 | <body> |
72 | <body> |
| 64 | |
73 | |
| 65 | <p> |
74 | <p> |
| 66 | The Portage tree is usually updated with <uri |
75 | The Portage tree is usually updated with <uri |
| 67 | link="http://rsync.gentoo.org">rsync</uri>, a fast incremental file transfer |
76 | link="http://rsync.samba.org/">rsync</uri>, a fast incremental file transfer |
| 68 | utility. Updating is fairly simple as the <c>emerge</c> command provides a |
77 | utility. Updating is fairly simple as the <c>emerge</c> command provides a |
| 69 | front-end for rsync: |
78 | front-end for rsync: |
| 70 | </p> |
79 | </p> |
| 71 | |
80 | |
| 72 | <pre caption="Updating the Portage tree"> |
81 | <pre caption="Updating the Portage tree"> |
| … | |
… | |
| 93 | <title>Searching for Software</title> |
102 | <title>Searching for Software</title> |
| 94 | <body> |
103 | <body> |
| 95 | |
104 | |
| 96 | <p> |
105 | <p> |
| 97 | To search through the Portage tree after software titles, you can use |
106 | To search through the Portage tree after software titles, you can use |
| 98 | <c>emerge</c> built-in search capabilities. By default, <c>emerge search</c> |
107 | <c>emerge</c> built-in search capabilities. By default, <c>emerge --search</c> |
| 99 | returns package names whos title corresponds with (either fully or partially) |
108 | returns the names of packages whose title matches (either fully or partially) |
| 100 | the given search term. |
109 | the given search term. |
| 101 | </p> |
110 | </p> |
| 102 | |
111 | |
| 103 | <p> |
112 | <p> |
| 104 | For instance, to search for all packages who have "pdf" in their name: |
113 | For instance, to search for all packages who have "pdf" in their name: |
| 105 | </p> |
114 | </p> |
| 106 | |
115 | |
| 107 | <pre caption="Searching for pdf-named packages"> |
116 | <pre caption="Searching for pdf-named packages"> |
| 108 | $ <i>emerge search pdf</i> |
117 | $ <i>emerge --search pdf</i> |
| 109 | </pre> |
118 | </pre> |
| 110 | |
119 | |
| 111 | <p> |
120 | <p> |
| 112 | If you want to search through the descriptions as well you can use the |
121 | If you want to search through the descriptions as well you can use the |
| 113 | <c>--searchdesc</c> (or <c>-S</c>) switch: |
122 | <c>--searchdesc</c> (or <c>-S</c>) switch: |
| … | |
… | |
| 121 | When you take a look at the output, you'll notice that it gives you a lot of |
130 | When you take a look at the output, you'll notice that it gives you a lot of |
| 122 | information. The fields are clearly labelled so we won't go further into their |
131 | information. The fields are clearly labelled so we won't go further into their |
| 123 | meanings: |
132 | meanings: |
| 124 | </p> |
133 | </p> |
| 125 | |
134 | |
| 126 | <pre caption="Example emerge search output"> |
135 | <pre caption="Example 'emerge --search' output"> |
| 127 | * net-print/cups-pdf |
136 | * net-print/cups-pdf |
| 128 | Latest version available: 1.5.2 |
137 | Latest version available: 1.5.2 |
| 129 | Latest version installed: [ Not Installed ] |
138 | Latest version installed: [ Not Installed ] |
| 130 | Size of downloaded files: 15 kB |
139 | Size of downloaded files: 15 kB |
| 131 | Homepage: http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/ |
140 | Homepage: http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/ |
| … | |
… | |
| 174 | </pre> |
183 | </pre> |
| 175 | |
184 | |
| 176 | </body> |
185 | </body> |
| 177 | </subsection> |
186 | </subsection> |
| 178 | <subsection> |
187 | <subsection> |
|
|
188 | <title>Finding Installed Package Documentation</title> |
|
|
189 | <body> |
|
|
190 | |
|
|
191 | <p> |
|
|
192 | Many packages come with their own documentation. Sometimes, the <c>doc</c> USE |
|
|
193 | flag determines whether the package documentation should be installed or not. |
|
|
194 | You can check the existence of a <c>doc</c> USE flag with the <c>emerge -vp |
|
|
195 | <package name></c> command. |
|
|
196 | </p> |
|
|
197 | |
|
|
198 | <pre caption="Checking the existence of a doc USE flag"> |
|
|
199 | <comment>(alsa-lib is just an example, of course.)</comment> |
|
|
200 | # <i>emerge -vp alsa-lib</i> |
|
|
201 | [ebuild N ] media-libs/alsa-lib-1.0.14_rc1 -debug +doc 698 kB |
|
|
202 | </pre> |
|
|
203 | |
|
|
204 | <p> |
|
|
205 | The best way of enabling the <c>doc</c> USE flag is doing it on a per-package |
|
|
206 | basis via the <path>/etc/portage/package.use</path> file, so that you get |
|
|
207 | documentation only for packages that you are interested in. Enabling this flag |
|
|
208 | globally is known to cause problems with circular dependencies. For more |
|
|
209 | information, please read the <uri link="?part=2&chap=2">USE Flags</uri> |
|
|
210 | chapter. |
|
|
211 | </p> |
|
|
212 | |
|
|
213 | <p> |
|
|
214 | Once the package installed, its documentation is generally found in a |
|
|
215 | subdirectory named after the package under the <path>/usr/share/doc</path> |
|
|
216 | directory. You can also list all installed files with the <c>equery</c> tool |
|
|
217 | which is part of the <c>app-portage/gentoolkit</c> <uri |
|
|
218 | link="/doc/en/gentoolkit.xml">package</uri>. |
|
|
219 | </p> |
|
|
220 | |
|
|
221 | <pre caption="Locating package documentation"> |
|
|
222 | # <i>ls -l /usr/share/doc/alsa-lib-1.0.14_rc1</i> |
|
|
223 | total 28 |
|
|
224 | -rw-r--r-- 1 root root 669 May 17 21:54 ChangeLog.gz |
|
|
225 | -rw-r--r-- 1 root root 9373 May 17 21:54 COPYING.gz |
|
|
226 | drwxr-xr-x 2 root root 8560 May 17 21:54 html |
|
|
227 | -rw-r--r-- 1 root root 196 May 17 21:54 TODO.gz |
|
|
228 | |
|
|
229 | <comment>(Alternatively, use equery to locate interesting files:)</comment> |
|
|
230 | # <i>equery files alsa-lib | less</i> |
|
|
231 | media-libs/alsa-lib-1.0.14_rc1 |
|
|
232 | * Contents of media-libs/alsa-lib-1.0.14_rc1: |
|
|
233 | /usr |
|
|
234 | /usr/bin |
|
|
235 | /usr/bin/alsalisp |
|
|
236 | <comment>(Output truncated)</comment> |
|
|
237 | </pre> |
|
|
238 | |
|
|
239 | </body> |
|
|
240 | </subsection> |
|
|
241 | <subsection> |
| 179 | <title>Removing Software</title> |
242 | <title>Removing Software</title> |
| 180 | <body> |
243 | <body> |
| 181 | |
244 | |
| 182 | <p> |
245 | <p> |
| 183 | When you want to remove a software package from your system, use <c>emerge |
246 | When you want to remove a software package from your system, use <c>emerge |
| 184 | unmerge</c>. This will tell Portage to remove all files installed by that |
247 | --unmerge</c>. This will tell Portage to remove all files installed by that |
| 185 | package from your system <e>except</e> the configuration files of that |
248 | package from your system <e>except</e> the configuration files of that |
| 186 | application if you have altered those after the installation. Leaving the |
249 | application if you have altered those after the installation. Leaving the |
| 187 | configuration files allows you to continue working with the package if you ever |
250 | configuration files allows you to continue working with the package if you ever |
| 188 | decide to install it again. |
251 | decide to install it again. |
| 189 | </p> |
252 | </p> |
| … | |
… | |
| 194 | warn you when you want to remove an important package that breaks your system |
257 | warn you when you want to remove an important package that breaks your system |
| 195 | if you unmerge it. |
258 | if you unmerge it. |
| 196 | </p> |
259 | </p> |
| 197 | |
260 | |
| 198 | <pre caption="Removing gnumeric from the system"> |
261 | <pre caption="Removing gnumeric from the system"> |
| 199 | # <i>emerge unmerge gnumeric</i> |
262 | # <i>emerge --unmerge gnumeric</i> |
| 200 | </pre> |
263 | </pre> |
| 201 | |
264 | |
| 202 | <p> |
265 | <p> |
| 203 | When you remove a package from your system, the dependencies of that package |
266 | When you remove a package from your system, the dependencies of that package |
| 204 | that were installed automatically when you installed the software are left. To |
267 | that were installed automatically when you installed the software are left. To |
| 205 | have Portage locate all dependencies that can now be removed, use |
268 | have Portage locate all dependencies that can now be removed, use |
| 206 | <c>emerge</c>'s <c>depclean</c> functionality. We will talk about this later on. |
269 | <c>emerge</c>'s <c>--depclean</c> functionality. We will talk about this later |
|
|
270 | on. |
| 207 | </p> |
271 | </p> |
| 208 | |
272 | |
| 209 | </body> |
273 | </body> |
| 210 | </subsection> |
274 | </subsection> |
| 211 | <subsection> |
275 | <subsection> |
| … | |
… | |
| 215 | <p> |
279 | <p> |
| 216 | To keep your system in perfect shape (and not to mention install the latest |
280 | To keep your system in perfect shape (and not to mention install the latest |
| 217 | security updates) you need to update your system regularly. Since Portage only |
281 | security updates) you need to update your system regularly. Since Portage only |
| 218 | checks the ebuilds in your Portage tree you first have to update your Portage |
282 | checks the ebuilds in your Portage tree you first have to update your Portage |
| 219 | tree. When your Portage tree is updated, you can update your system with |
283 | tree. When your Portage tree is updated, you can update your system with |
| 220 | <c>emerge --update world</c>: |
284 | <c>emerge --update world</c>. In the next example, we'll also use the |
|
|
285 | <c>--ask</c> switch which will tell Portage to display the list of packages it |
|
|
286 | wants to upgrade and ask you if you want to continue: |
| 221 | </p> |
287 | </p> |
| 222 | |
288 | |
| 223 | <pre caption="Updating your system"> |
289 | <pre caption="Updating your system"> |
| 224 | # <i>emerge --update world</i> |
290 | # <i>emerge --update --ask world</i> |
| 225 | </pre> |
291 | </pre> |
| 226 | |
292 | |
| 227 | <p> |
293 | <p> |
| 228 | Portage will then search for newer version of the applications you have |
294 | Portage will then search for newer version of the applications you have |
| 229 | installed. However, it will only verify the versions for the applications you |
295 | installed. However, it will only verify the versions for the applications you |
| 230 | have explicitly installed - not the dependencies. If you want to update every |
296 | have <e>explicitly</e> installed (the applications listed in |
| 231 | single package on your system, add the <c>--deep</c> argument: |
297 | <path>/var/lib/portage/world</path>) - it does not thoroughly check their |
|
|
298 | dependencies. If you want to update <e>every single package</e> on your system, |
|
|
299 | add the <c>--deep</c> argument: |
| 232 | </p> |
300 | </p> |
| 233 | |
301 | |
| 234 | <pre caption="Updating your entire system"> |
302 | <pre caption="Updating your entire system"> |
| 235 | # <i>emerge --update --deep world</i> |
303 | # <i>emerge --update --deep world</i> |
| 236 | </pre> |
304 | </pre> |
|
|
305 | |
|
|
306 | <p> |
|
|
307 | Since security updates also happen in packages you have not explicitly installed |
|
|
308 | on your system (but that are pulled in as dependencies of other programs), it |
|
|
309 | is recommended to run this command once in a while. |
|
|
310 | </p> |
| 237 | |
311 | |
| 238 | <p> |
312 | <p> |
| 239 | If you have altered any of your <uri link="?part=2&chap=2">USE flags</uri> |
313 | If you have altered any of your <uri link="?part=2&chap=2">USE flags</uri> |
| 240 | lately you might want to add <c>--newuse</c> as well. Portage will then verify |
314 | lately you might want to add <c>--newuse</c> as well. Portage will then verify |
| 241 | if the change requires the installation of new packages or recompilation of |
315 | if the change requires the installation of new packages or recompilation of |
| … | |
… | |
| 247 | </pre> |
321 | </pre> |
| 248 | |
322 | |
| 249 | </body> |
323 | </body> |
| 250 | </subsection> |
324 | </subsection> |
| 251 | <subsection> |
325 | <subsection> |
| 252 | <title>Stub Packages</title> |
326 | <title>Metapackages</title> |
| 253 | <body> |
327 | <body> |
| 254 | |
328 | |
| 255 | <p> |
329 | <p> |
| 256 | Some packages in the Portage tree don't have any real content but are used to |
330 | Some packages in the Portage tree don't have any real content but are used to |
| 257 | install a collection of packages. For instance, the <c>kde</c> package will |
331 | install a collection of packages. For instance, the <c>kde</c> package will |
| … | |
… | |
| 259 | KDE-related packages as dependencies. |
333 | KDE-related packages as dependencies. |
| 260 | </p> |
334 | </p> |
| 261 | |
335 | |
| 262 | <p> |
336 | <p> |
| 263 | If you ever want to remove such a package from your system, running <c>emerge |
337 | If you ever want to remove such a package from your system, running <c>emerge |
| 264 | unmerge</c> on the package won't have much effect as the dependencies remain on |
338 | --unmerge</c> on the package won't have much effect as the dependencies remain |
| 265 | the system. |
339 | on the system. |
| 266 | </p> |
340 | </p> |
| 267 | |
341 | |
| 268 | <p> |
342 | <p> |
| 269 | Portage has the functionality to remove orphaned dependencies as well, but since |
343 | Portage has the functionality to remove orphaned dependencies as well, but since |
| 270 | the availability of software is dynamically dependent you first need to update |
344 | the availability of software is dynamically dependent you first need to update |
| 271 | your entire system fully, including the new changes you applied when changing |
345 | your entire system fully, including the new changes you applied when changing |
| 272 | USE flags. After this you can run <c>emerge depclean</c> to remove the orphaned |
346 | USE flags. After this you can run <c>emerge --depclean</c> to remove the |
| 273 | dependencies. When this is done, you need to rebuild the applications that were |
347 | orphaned dependencies. When this is done, you need to rebuild the applications |
| 274 | dynamically linked to the now-removed software titles but don't require them |
348 | that were dynamically linked to the now-removed software titles but don't |
| 275 | anymore. |
349 | require them anymore. |
| 276 | </p> |
350 | </p> |
| 277 | |
351 | |
| 278 | <p> |
352 | <p> |
| 279 | All this is handled with the following three commands: |
353 | All this is handled with the following three commands: |
| 280 | </p> |
354 | </p> |
| 281 | |
355 | |
| 282 | <pre caption="Removing orphaned dependencies"> |
356 | <pre caption="Removing orphaned dependencies"> |
| 283 | # <i>emerge --update --deep --newuse world</i> |
357 | # <i>emerge --update --deep --newuse world</i> |
| 284 | # <i>emerge depclean</i> |
358 | # <i>emerge --depclean</i> |
| 285 | # <i>revdep-rebuild</i> |
359 | # <i>revdep-rebuild</i> |
| 286 | </pre> |
360 | </pre> |
| 287 | |
361 | |
| 288 | <p> |
362 | <p> |
| 289 | <c>revdep-rebuild</c> is provided by the <c>gentoolkit</c> package; don't forget |
363 | <c>revdep-rebuild</c> is provided by the <c>gentoolkit</c> package; don't forget |
| … | |
… | |
| 304 | <body> |
378 | <body> |
| 305 | |
379 | |
| 306 | <p> |
380 | <p> |
| 307 | As we stated before, Portage is extremely powerful and supports many features |
381 | As we stated before, Portage is extremely powerful and supports many features |
| 308 | that other software management tools lack. To understand this, we explain a few |
382 | that other software management tools lack. To understand this, we explain a few |
| 309 | aspects of Portage without going in too much detail. |
383 | aspects of Portage without going into too much detail. |
| 310 | </p> |
384 | </p> |
| 311 | |
385 | |
| 312 | <p> |
386 | <p> |
| 313 | With Portage different versions of a single package can coexist on a system. |
387 | With Portage different versions of a single package can coexist on a system. |
| 314 | While other distributions tend to name their package to those versions (like |
388 | While other distributions tend to name their package to those versions (like |
| … | |
… | |
| 355 | <subsection id="blocked"> |
429 | <subsection id="blocked"> |
| 356 | <title>Blocked Packages</title> |
430 | <title>Blocked Packages</title> |
| 357 | <body> |
431 | <body> |
| 358 | |
432 | |
| 359 | <pre caption="Portage warning about blocked packages (with --pretend)"> |
433 | <pre caption="Portage warning about blocked packages (with --pretend)"> |
| 360 | [blocks B ] gnome-base/bonobo-activation (from pkg gnome-base/libbonobo-2.4.0) |
434 | [blocks B ] mail-mta/ssmtp (is blocking mail-mta/postfix-2.2.2-r1) |
| 361 | </pre> |
435 | </pre> |
| 362 | |
436 | |
| 363 | <pre caption="Portage warning about blocked packages (without --pretend)"> |
437 | <pre caption="Portage warning about blocked packages (without --pretend)"> |
| 364 | !!! Error: the gnome-base/bonobo-activation package conflicts with another package. |
438 | !!! Error: the mail-mta/postfix package conflicts with another package. |
| 365 | !!! both can't be installed on the same system together. |
439 | !!! both can't be installed on the same system together. |
| 366 | !!! Please use 'emerge --pretend' to determine blockers. |
440 | !!! Please use 'emerge --pretend' to determine blockers. |
| 367 | </pre> |
441 | </pre> |
| 368 | |
442 | |
| 369 | <p> |
443 | <p> |
| 370 | Ebuilds contain specific fields that inform Portage about it's dependencies. |
444 | Ebuilds contain specific fields that inform Portage about its dependencies. |
| 371 | There are two possible dependencies: build dependencies, declared in |
445 | There are two possible dependencies: build dependencies, declared in |
| 372 | <c>DEPEND</c> and run-time dependencies, declared in <c>RDEPEND</c>. When one of |
446 | <c>DEPEND</c> and run-time dependencies, declared in <c>RDEPEND</c>. When one of |
| 373 | these dependencies explicitly marks a package or virtual as being <e>not</e> |
447 | these dependencies explicitly marks a package or virtual as being <e>not</e> |
| 374 | compatible, it triggers a blockage. |
448 | compatible, it triggers a blockage. |
| 375 | </p> |
449 | </p> |
| 376 | |
450 | |
| 377 | <p> |
451 | <p> |
| 378 | To fix a blockage, you can choose to not install the package or unmerge the |
452 | To fix a blockage, you can choose to not install the package or unmerge the |
| 379 | conflicting package first. In the given example, you can opt not to install |
453 | conflicting package first. In the given example, you can opt not to install |
| 380 | <c>libbonobo</c> or to remove <c>bonobo-activation</c> first. |
454 | <c>postfix</c> or to remove <c>ssmtp</c> first. |
|
|
455 | </p> |
|
|
456 | |
|
|
457 | <p> |
|
|
458 | You may also see blocking packages with specific atoms, such as |
|
|
459 | <b><</b>media-video/mplayer-bin-1.0_rc1-r2. In this case, updating to a more |
|
|
460 | recent version of the blocking package would remove the block. |
|
|
461 | </p> |
|
|
462 | |
|
|
463 | <p> |
|
|
464 | It is also possible that two packages that are yet to be installed are blocking |
|
|
465 | each other. In this rare case, you should find out why you need to install both. |
|
|
466 | In most cases you can do with one of the packages alone. If not, please file a |
|
|
467 | bug on <uri link="http://bugs.gentoo.org">Gentoo's bugtracking system</uri>. |
| 381 | </p> |
468 | </p> |
| 382 | |
469 | |
| 383 | </body> |
470 | </body> |
| 384 | </subsection> |
471 | </subsection> |
| 385 | <subsection id="masked"> |
472 | <subsection id="masked"> |
| … | |
… | |
| 395 | |
482 | |
| 396 | - gnome-base/gnome-2.8.0_pre1 (masked by: <i>~x86 keyword</i>) |
483 | - gnome-base/gnome-2.8.0_pre1 (masked by: <i>~x86 keyword</i>) |
| 397 | - lm-sensors/lm-sensors-2.8.7 (masked by: <i>-sparc keyword</i>) |
484 | - lm-sensors/lm-sensors-2.8.7 (masked by: <i>-sparc keyword</i>) |
| 398 | - sys-libs/glibc-2.3.4.20040808 (masked by: <i>-* keyword</i>) |
485 | - sys-libs/glibc-2.3.4.20040808 (masked by: <i>-* keyword</i>) |
| 399 | - dev-util/cvsd-1.0.2 (masked by: <i>missing keyword</i>) |
486 | - dev-util/cvsd-1.0.2 (masked by: <i>missing keyword</i>) |
| 400 | - media-video/ati-gatos-4.3.0 (masked by: <i>package.mask</i>) |
487 | - games-fps/unreal-tournament-451 (masked by: <i>package.mask</i>) |
| 401 | - sys-libs/glibc-2.3.2-r11 (masked by: <i>profile</i>) |
488 | - sys-libs/glibc-2.3.2-r11 (masked by: <i>profile</i>) |
| 402 | </pre> |
489 | </pre> |
| 403 | |
490 | |
| 404 | <p> |
491 | <p> |
| 405 | When you want to install a package that isn't available for your system, you |
492 | When you want to install a package that isn't available for your system, you |
| … | |
… | |
| 440 | <subsection id="missingdependencies"> |
527 | <subsection id="missingdependencies"> |
| 441 | <title>Missing Dependencies</title> |
528 | <title>Missing Dependencies</title> |
| 442 | <body> |
529 | <body> |
| 443 | |
530 | |
| 444 | <pre caption="Portage warning about missing dependency"> |
531 | <pre caption="Portage warning about missing dependency"> |
| 445 | emerge: there are no ebuilds to satisfy ">=sys-devel/gcc-4.2-r4". |
532 | emerge: there are no ebuilds to satisfy ">=sys-devel/gcc-3.4.2-r4". |
| 446 | |
533 | |
| 447 | !!! Problem with ebuild sys-devel/gcc-3.4.2-r2 |
534 | !!! Problem with ebuild sys-devel/gcc-3.4.2-r2 |
| 448 | !!! Possibly a DEPEND/*DEPEND problem. |
535 | !!! Possibly a DEPEND/*DEPEND problem. |
| 449 | </pre> |
536 | </pre> |
| 450 | |
537 | |
| … | |
… | |
| 538 | from the system. |
625 | from the system. |
| 539 | </p> |
626 | </p> |
| 540 | |
627 | |
| 541 | </body> |
628 | </body> |
| 542 | </subsection> |
629 | </subsection> |
|
|
630 | <subsection id="digesterror"> |
|
|
631 | <title>Digest Verification Failures</title> |
|
|
632 | <body> |
|
|
633 | |
|
|
634 | <p> |
|
|
635 | Sometimes, when you attempt to emerge a package, it will fail with the message: |
|
|
636 | </p> |
|
|
637 | |
|
|
638 | <pre caption="Digest verification failure"> |
|
|
639 | >>> checking ebuild checksums |
|
|
640 | !!! Digest verification failed: |
|
|
641 | </pre> |
|
|
642 | |
|
|
643 | <p> |
|
|
644 | This is a sign that something is wrong with the Portage tree -- often, it is |
|
|
645 | because a developer may have made a mistake when committing a package to the |
|
|
646 | tree. |
|
|
647 | </p> |
|
|
648 | |
|
|
649 | <p> |
|
|
650 | When the digest verification fails, do <e>not</e> try to re-digest the package |
|
|
651 | yourself. Running <c>ebuild foo digest</c> will not fix the problem; it will |
|
|
652 | almost certainly make it worse! |
|
|
653 | </p> |
|
|
654 | |
|
|
655 | <p> |
|
|
656 | Instead, wait an hour or two for the tree to settle down. It's likely that the |
|
|
657 | error was noticed right away, but it can take a little time for the fix to |
|
|
658 | trickle down the Portage tree. While you're waiting, check <uri |
|
|
659 | link="http://bugs.gentoo.org">Bugzilla</uri> and see if anyone has reported |
|
|
660 | the problem yet. If not, go ahead and file a bug for the broken package. |
|
|
661 | </p> |
|
|
662 | |
|
|
663 | <p> |
|
|
664 | Once you see that the bug has been fixed, you may want to re-sync to pick up |
|
|
665 | the fixed digest. |
|
|
666 | </p> |
|
|
667 | |
|
|
668 | <impo> |
|
|
669 | This does <e>not</e> mean that you can re-sync your tree multiple times! As |
|
|
670 | stated in the rsync policy (when you run <c>emerge --sync</c>), users who sync |
|
|
671 | too often will be banned! In fact, it's better to just wait until your next |
|
|
672 | scheduled sync, so that you don't overload the rsync servers. |
|
|
673 | </impo> |
|
|
674 | |
|
|
675 | </body> |
|
|
676 | </subsection> |
| 543 | </section> |
677 | </section> |
| 544 | </sections> |
678 | </sections> |