View previous topic :: View next topic |
Author |
Message |
muybien n00b
Joined: 13 Jul 2002 Posts: 10
|
Posted: Wed Jul 24, 2002 1:46 am Post subject: How to update files |
|
|
I need to update the following files
/etc/modules.d/._cfg0000_alsa
/etc/init.d/._cfg0000_alsasound.
What is the proper command? |
|
Back to top |
|
|
mrchuckles Tux's lil' helper
Joined: 09 Jul 2002 Posts: 125 Location: Severn, MD
|
Posted: Wed Jul 24, 2002 1:54 am Post subject: |
|
|
There isn't one. You're supposed to merge any changes yourself, so as not to overwrite customizations you've made to configuration files. If you didn't change anything in the original file, it's usually safe to just copy over the new one. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 24, 2002 2:05 am Post subject: |
|
|
It is not so bleak
You can emerge gentoolkit and then use the tool "etc-update" that will let you do it semi-automatically. |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Wed Jul 24, 2002 2:18 am Post subject: |
|
|
just use diff to see how the two files differ from one another then make the corrections to the newer and mv it |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 24, 2002 2:37 am Post subject: |
|
|
Dangerous:
If you didn't touch any files under /etc and you are ok with them being updated, you can do:
Code: |
for x in `find /etc -iname '._cfg????_*'`; do mv $x ${x/._cfg????_/}; done
|
Make sure you check what files are affected by doing:
Code: |
find /etc -iname '._cfg????_*'
|
Be careful not to overwrite any files that you want to keep. |
|
Back to top |
|
|
voided n00b
Joined: 18 Apr 2002 Posts: 8
|
Posted: Wed Jul 24, 2002 8:24 am Post subject: gentoolkit |
|
|
emerge gentoolkit [app-admin/gentoolkit]
it has etc-update a nice litle util to update those files
=] |
|
Back to top |
|
|
water Guru
Joined: 19 Jun 2002 Posts: 387 Location: Zierikzee, The Netherlands
|
Posted: Wed Jul 24, 2002 3:47 pm Post subject: Re: gentoolkit |
|
|
voided wrote: | emerge gentoolkit [app-admin/gentoolkit]
it has etc-update a nice litle util to update those files
=] |
Maybe a stupid question, but how does that work? The only thing I see is the difference between the old and the new one, by pressing the number. If I want to stop the program, I have to use Control-Z, because I don't see another option.
Maybe something wrong with my gentoolkit, or with etc-update?
EDIT: there is something wrong. Looking at this, i'm missing the last five lines.
Some known problem? (I'll try to use the options, maybe it will work ) _________________ Groeten uit Holland |
|
Back to top |
|
|
|