View previous topic :: View next topic |
Author |
Message |
rasat n00b
Joined: 30 May 2002 Posts: 74
|
Posted: Thu May 30, 2002 3:43 pm Post subject: How to update config files? |
|
|
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 |
|
|
radfaraf n00b
Joined: 25 May 2002 Posts: 55 Location: NJ
|
Posted: Thu May 30, 2002 3:54 pm Post subject: |
|
|
* Type emerge --help config to learn how to update config files. |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Thu May 30, 2002 4:09 pm Post subject: |
|
|
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
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 |
|
|
rasat n00b
Joined: 30 May 2002 Posts: 74
|
Posted: Thu May 30, 2002 7:26 pm Post subject: update config files |
|
|
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 |
|
|
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Thu May 30, 2002 7:52 pm Post subject: |
|
|
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 |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Thu May 30, 2002 9:15 pm Post subject: Re: update config files |
|
|
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 |
|
|
alec Apprentice
Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Thu May 30, 2002 10:23 pm Post subject: |
|
|
Emerge gentoolkit and run etc-update - it will show you diffs and let you merge, overwrite, or keep. It's great. |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Thu May 30, 2002 11:02 pm Post subject: |
|
|
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 ,....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 |
|
|
|