View previous topic :: View next topic |
Author |
Message |
meel_marcel n00b
Joined: 16 Jun 2002 Posts: 5
|
Posted: Sun Jun 16, 2002 2:02 pm Post subject: How can I see which files in /etc need updating??? |
|
|
After emerge *whatever* i get a message as follows:
* Regenerating GNU info directory index...
* Processed 88 info files.
--> * IMPORTANT: 2 config files in /etc need updating.
* Type emerge --help config to learn how to update config files.
How can I figure out which config files need updating, I have tried emerge --help, but that didn't help me. I hope any one can tell me where to find it.
Tnx in advance |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Sun Jun 16, 2002 2:32 pm Post subject: |
|
|
You can use etc-update for this from gentoolkit package.
this is from etc-update's man page:
Quote: | etc-update is supposed to be run after merging a new pack-
age, to see if there are updates to the configuration
files in /etc. If a new configuration file will override
an old one, etc-update will prompt the user for a deci-
sion.
etc-update will check all directories in
/etc/make.global's CONFIG_PROTECT variable. |
_________________ There's someone in my head but it's not me - Pink Floyd |
|
Back to top |
|
|
alec Apprentice
Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Sun Jun 16, 2002 3:26 pm Post subject: |
|
|
If you don't want to use etc-update:
Code: | melvin alec # emerge -h config
Config file management support (preliminary)
Portage has a special feature called "config file protection". The purpose of
this feature is to prevent new package installs from clobbering existig
configuration files. By default, config file protection is turned on for /etc
and the KDE configuration dirs; more may be added in the future.
When Portage installs a file into a protected directory tree like /etc, any
existing files will not be overwritten. If a file of the same name already
exists, Portage will change the name of the to-be- installed file from 'foo' to
'._cfg0000_foo'. If '._cfg0000_foo' already exists, this name becomes
'._cfg0001_foo', etc. In this way, existing files are not overwritten,
allowing the administrator to manually merge the new config files and avoid any
unexpected changes.
In addition to protecting overwritten files, Portage will not delete any files
from a protected directory when a package is unmerged. While this may be a
little bit untidy, it does prevent potentially valuable config files from being
deleted, which is of paramount importance.
Protected directories are set using the CONFIG_PROTECT variable, normally
defined in /etc/make.globals. Directory exceptions to the CONFIG_PROTECTed
directories can be specified using the CONFIG_PROTECT_MASK variable. To find
files that need to be updated in /etc, type:
# find /etc -iname '._cfg????_*'
You can disable this feature by setting CONFIG_PROTECT="" in /etc/make.conf.
Then, Portage will mercilessly auto-update your config files. Alternatively,
you can leave Config File Protection on but tell Portage that it can overwrite
files in certain specific /etc subdirectories. For example, if you wanted
Portage to automatically update your rc scripts and your wget configuration,
but didn't want any other changes made without your explicit approval, you'd
add this to /etc/make.conf:
CONFIG_PROTECT_MASK="/etc/wget /etc/rc.d" |
|
|
Back to top |
|
|
meel_marcel n00b
Joined: 16 Jun 2002 Posts: 5
|
Posted: Sun Jun 16, 2002 3:53 pm Post subject: Tnx, I have installed gentools which solved my problems. |
|
|
gentools seems to do what was sugested in the second post, but it does so automated with user interaction This was exactly what I needed. Tnx for all the help. |
|
Back to top |
|
|
linux_RPh n00b
Joined: 13 Jun 2002 Posts: 11 Location: Indianapolis, IN USA
|
Posted: Wed Jun 19, 2002 2:59 am Post subject: |
|
|
This forum is great. I did a google search and was shooting blanks. Searched here and Whoola! |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed Jun 19, 2002 12:19 pm Post subject: Re: Tnx, I have installed gentools which solved my problems. |
|
|
meel_marcel wrote: | gentools seems to do what was sugested in the second post, but it does so automated with user interaction This was exactly what I needed. Tnx for all the help. |
Just a word of caution -- etc-update has caused some problems for users in the past (Autobot, I believe, fell victim to it at one point). So, if you decide to use this as your primary method of updating /etc files, I strongly encourage you to make regular backups of /etc. There are some posts in the tips and tricks forum that should help you with automating this process.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
|