View previous topic :: View next topic |
Author |
Message |
apasuper8 n00b
Joined: 04 Aug 2002 Posts: 9 Location: Charleston SC
|
Posted: Sat Aug 10, 2002 2:41 am Post subject: updating config file in /etc |
|
|
After I emerge programs on my box it tells me that I have 1 config file in the /etc directory that needs to be updated. I preformed the following command to see what file it was :
find /etc -iname '._cfg????_*'
after doing this command it told me that the file that needs to be updated is :
/etc/._cfg0000_crontab
What do I need to do now ...?
Thanks in advance for your help!
apasuper8 |
|
Back to top |
|
|
Robert Tux's lil' helper
Joined: 19 Apr 2002 Posts: 103 Location: Syracuse, NY
|
Posted: Sat Aug 10, 2002 2:51 am Post subject: |
|
|
Check to see what the difference between the two files are. If any custom settings need to be saved from the original file, add them to the new (_cfg????_) file, then it is safe to just overwrite the original file with the updated replacement.
If you emerge gentoolkit, it will install a utility called etc-update that walks you through this process quite nicely. Just run etc-update ;)
Last edited by Robert on Sat Aug 10, 2002 3:01 am; edited 1 time in total |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sat Aug 10, 2002 2:52 am Post subject: |
|
|
You need to compare the old config file and the new ._cfg... that emerge produced. Pull in changes that you want, discard things you don't. If you haven't modified the crontab file yourself, you can overwrite the old one with the new typically.
You can also "emerge gentoolkit" and use etc-update. It will step you through the update process. |
|
Back to top |
|
|
zhware Retired Dev
Joined: 19 Jun 2002 Posts: 23
|
Posted: Sat Aug 10, 2002 2:56 am Post subject: |
|
|
You can try:
Code: | diff /etc/._cfg0000_crontab /etc/crontab |
to see the differences. After this:
- overwrite the old file mv newfile oldfile
- edit manually old file and remove old file
- just remove newfile if it hasn't important changes |
|
Back to top |
|
|
apasuper8 n00b
Joined: 04 Aug 2002 Posts: 9 Location: Charleston SC
|
Posted: Sat Aug 10, 2002 3:11 am Post subject: |
|
|
Thanks for the suggestion for the gentoolkit ... Worked great! |
|
Back to top |
|
|
|