Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to update config files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rasat
n00b
n00b


Joined: 30 May 2002
Posts: 74

PostPosted: Thu May 30, 2002 3:43 pm    Post subject: How to update config files? Reply with quote

Hi,

How to update the config files?

* Regenerating GNU info directory index...
* Processed 58 info files.
* IMPORTANT: 31 config files in /etc need updating.
* IMPORTANT: 4 config files in /usr/kde/3/share/config need updating.
* Type emerge --help config to learn how to update config files.

Rasat
Back to top
View user's profile Send private message
radfaraf
n00b
n00b


Joined: 25 May 2002
Posts: 55
Location: NJ

PostPosted: Thu May 30, 2002 3:54 pm    Post subject: Reply with quote

* Type emerge --help config to learn how to update config files.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu May 30, 2002 4:09 pm    Post subject: Reply with quote

:!: see the post about gentoolkit and etc-update it works great.

a quick tip,if you haven't made changes to the mentioned files you can use

:!: Warning use with care :!:
:arrow: substitutes existing configuration files (also changed ones) with default new ones.

Code:
FILES=`find /etc -iname "._cfg0000_*"`
for FILE in ${FILES}; do
     FILENAME=`basename ${FILE}`;
     DIRNAME=`dirname $FILE`;
     echo $DIRNAME/$FILENAME $DIRNAME/${FILENAME/._cfg0000_};
done


instead of echo use mv, but first test it with echo, I'm too lazy too test it.[/code]
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa


Last edited by lx on Thu May 30, 2002 11:04 pm; edited 3 times in total
Back to top
View user's profile Send private message
rasat
n00b
n00b


Joined: 30 May 2002
Posts: 74

PostPosted: Thu May 30, 2002 7:26 pm    Post subject: update config files Reply with quote

From the replies I learned two things:

1. * Type emerge --help config to learn how to update config files, only shows how to display the files but not how to update..... or did I miss something?

2. The code when replacing echo with mv removes all the existing configs.... root password, hostname, daemon startups in /etc/conf.d/local.start, etc. I did not mind because my boot startup was already messy and needed a clean up. I simply reconfig everything and now all works fine including all config files were "updated".

I am only puzzled what does it mean to "update config files"...... to remove them???

Rasat
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Thu May 30, 2002 7:52 pm    Post subject: Reply with quote

Basically you have to change them so that they suit your system. Personally I stick with the old config files, I don't have the time to update them... although I will start learning how to do it. It is supposed to be better.
_________________
Postcount ++
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu May 30, 2002 9:15 pm    Post subject: Re: update config files Reply with quote

rasat wrote:

2. The code when replacing echo with mv removes all the existing configs.... root password, hostname, daemon startups in /etc/conf.d/local.start, etc. I did not mind because my boot startup was already messy and needed a clean up. I simply reconfig everything and now all works fine including all config files were "updated".

I just tested it and it works fine, maybe you didn't copy it to a file (although you can use it from bash) and did chmod +x <file> then ./<file> . I will put a warning up.

sorry, well that's life, reminds of a story of how you should backup your config files everyday, some script in the tips&tricks section.

Again sorry, lX
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Thu May 30, 2002 10:23 pm    Post subject: Reply with quote

Emerge gentoolkit and run etc-update - it will show you diffs and let you merge, overwrite, or keep. It's great.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu May 30, 2002 11:02 pm    Post subject: Reply with quote

alec wrote:
Emerge gentoolkit and run etc-update - it will show you diffs and let you merge, overwrite, or keep. It's great.


who's the man,..... you the man :D,....just what I was looking for, doing this all manually while there is a tool for it. Nice one.

Thkx, lX
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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