Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
updating config file in /etc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
apasuper8
n00b
n00b


Joined: 04 Aug 2002
Posts: 9
Location: Charleston SC

PostPosted: Sat Aug 10, 2002 2:41 am    Post subject: updating config file in /etc Reply with quote

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
View user's profile Send private message
Robert
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2002
Posts: 103
Location: Syracuse, NY

PostPosted: Sat Aug 10, 2002 2:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sat Aug 10, 2002 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message
zhware
Retired Dev
Retired Dev


Joined: 19 Jun 2002
Posts: 23

PostPosted: Sat Aug 10, 2002 2:56 am    Post subject: Reply with quote

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


Joined: 04 Aug 2002
Posts: 9
Location: Charleston SC

PostPosted: Sat Aug 10, 2002 3:11 am    Post subject: Reply with quote

Thanks for the suggestion for the gentoolkit ... Worked great! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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