Lines 553-558
Link Here
|
553 |
versions of packages, you should update your |
553 |
versions of packages, you should update your |
554 |
\fI/etc/portage/package.keywords\fR file to list the packages you want the |
554 |
\fI/etc/portage/package.keywords\fR file to list the packages you want the |
555 |
\'testing\' version. See \fBportage\fR(5) for more information. |
555 |
\'testing\' version. See \fBportage\fR(5) for more information. |
|
|
556 |
.SH "CONFIGURATION FILES" |
557 |
Portage has a special feature called "config file protection". The purpose of |
558 |
this feature is to prevent new package installs from clobbering existing |
559 |
configuration files. By default, config file protection is turned on for /etc |
560 |
and the KDE configuration dirs; more may be added in the future. |
561 |
.LP |
562 |
When Portage installs a file into a protected directory tree like /etc, any |
563 |
existing files will not be overwritten. If a file of the same name already |
564 |
exists, Portage will change the name of the to\-be\-installed file from 'foo' to |
565 |
\'._cfg0000_foo\'. If \'._cfg0000_foo\' already exists, this name becomes |
566 |
\'._cfg0001_foo\', etc. In this way, existing files are not overwritten, |
567 |
allowing the administrator to manually merge the new config files and avoid any |
568 |
unexpected changes. |
569 |
.LP |
570 |
In addition to protecting overwritten files, Portage will not delete any files |
571 |
from a protected directory when a package is unmerged. While this may be a |
572 |
little bit untidy, it does prevent potentially valuable config files from being |
573 |
deleted, which is of paramount importance. |
574 |
.LP |
575 |
Protected directories are set using the \fICONFIG_PROTECT\fR variable, normally |
576 |
defined in /etc/make.globals. Directory exceptions to the CONFIG_PROTECTed |
577 |
directories can be specified using the \fICONFIG_PROTECT_MASK\fR variable. To find |
578 |
files that need to be updated in /etc, type \fBfind /etc \-iname \'._cfg????_*\'\fR. |
579 |
.LP |
580 |
You can disable this feature by setting \fICONFIG_PROTECT="\-*"\fR in /etc/make.conf. |
581 |
Then, Portage will mercilessly auto\-update your config files. Alternatively, |
582 |
you can leave Config File Protection on but tell Portage that it can overwrite |
583 |
files in certain specific /etc subdirectories. For example, if you wanted |
584 |
Portage to automatically update your rc scripts and your wget configuration, |
585 |
but didn't want any other changes made without your explicit approval, you'd |
586 |
add this to /etc/make.conf: |
587 |
.LP |
588 |
.I CONFIG_PROTECT_MASK="/etc/wget /etc/rc.d" |
589 |
.LP |
590 |
Tools such as dispatch\-conf, cfg\-update, and etc\-update are also available to |
591 |
aid in the merging of these files. They provide interactive merging and can |
592 |
auto\-merge trivial changes. |
556 |
.SH "REPORTING BUGS" |
593 |
.SH "REPORTING BUGS" |
557 |
Please report any bugs you encounter through our website: |
594 |
Please report any bugs you encounter through our website: |
558 |
.LP |
595 |
.LP |