Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating configuration file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
phuanhui
n00b
n00b


Joined: 07 Feb 2008
Posts: 6

PostPosted: Thu Mar 20, 2008 10:36 am    Post subject: Updating configuration file Reply with quote

After I emerge portage, I get the following message:
I would like to know how do I update configuration file.


Code:
 
* Make sure you run 'hash -r' in your active shells.
 * Regenerating GNU info directory index...
 * Processed 140 info files.
 * IMPORTANT: 6 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.


Please help!
Use the following command is it?
Code:

etc-update
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Thu Mar 20, 2008 11:02 am    Post subject: Reply with quote

You can use 'etc-update' although personally I prefer using 'dispatch-conf' as it has greater scope for backing up the config files that you are replacing. You can configure 'dispatch-conf' to automatically update files that you haven't touched, and you only get asked about updating config files that you have modified. See the configuration file in /etc/dispatch-conf.conf and 'man dispatch-conf' for more details.
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Mar 20, 2008 12:17 pm    Post subject: Reply with quote

I use dispatch-conf for years instead of etc-update.

Also, dispatch-conf can do the job by himself, like when you have a diff between 2 files and it's only some spaces or linebreak that differ from the 2 files, dispatch-conf doesn't bother you with that.
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Tue Mar 25, 2008 7:59 pm    Post subject: Reply with quote

And then there are the extra comfortable tools cfg-update and etc-proposals. You gotta emerge them, but they make much easier ...
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 605
Location: Manchester, CT, USA

PostPosted: Tue Mar 25, 2008 11:03 pm    Post subject: Reply with quote

bmichaelsen wrote:
And then there are the extra comfortable tools cfg-update and etc-proposals. You gotta emerge them, but they make much easier ...
Yes, with cfg-update you can select a nice GUI viewer to see file differences side-by-side.
_________________
Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 25, 2008 11:11 pm    Post subject: Reply with quote

What, is cfg-update is brand new ? I didn't know the existence of that package ?
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 605
Location: Manchester, CT, USA

PostPosted: Tue Mar 25, 2008 11:37 pm    Post subject: Reply with quote

d2_racing wrote:
What, is cfg-update is brand new ? I didn't know the existence of that package ?
It's been around since 29 April, 2005 ;)
(Date from ChangeLog)
_________________
Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 25, 2008 11:45 pm    Post subject: Reply with quote

Why there is no promotion about theses useful tools for the newbie :(
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Mar 26, 2008 9:57 am    Post subject: Reply with quote

Write it all up for the Gentoo docs d2_racing :wink:
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
kds66
Apprentice
Apprentice


Joined: 17 Oct 2006
Posts: 166
Location: Manaus, Brazil

PostPosted: Wed Mar 26, 2008 10:42 am    Post subject: Reply with quote

And then there is the old fashioned way :)
Code:
find /etc -name '._*'
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Mar 26, 2008 10:47 am    Post subject: Reply with quote

d2_racing wrote:
Why there is no promotion about theses useful tools for the newbie :(

at least it was 'officially' noted once: http://www.gentoo.org/news/en/gwn/20060717-newsletter.xml#doc_chap3
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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