Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I see which files in /etc need updating???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
meel_marcel
n00b
n00b


Joined: 16 Jun 2002
Posts: 5

PostPosted: Sun Jun 16, 2002 2:02 pm    Post subject: How can I see which files in /etc need updating??? Reply with quote

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
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Sun Jun 16, 2002 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Sun Jun 16, 2002 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
meel_marcel
n00b
n00b


Joined: 16 Jun 2002
Posts: 5

PostPosted: Sun Jun 16, 2002 3:53 pm    Post subject: Tnx, I have installed gentools which solved my problems. Reply with quote

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
View user's profile Send private message
linux_RPh
n00b
n00b


Joined: 13 Jun 2002
Posts: 11
Location: Indianapolis, IN USA

PostPosted: Wed Jun 19, 2002 2:59 am    Post subject: Reply with quote

This forum is great. I did a google search and was shooting blanks. Searched here and Whoola!
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Jun 19, 2002 12:19 pm    Post subject: Re: Tnx, I have installed gentools which solved my problems. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum