Sep 29, 2004, 5:12 AM
Post #19 of 83
(3481 views)
Permalink
Senectus . wrote:
> On Tue, 28 Sep 2004 21:29:46 -0500, Jeff Smelser <tradergt@smelser.org> wrote:
>
>>On Tuesday 28 September 2004 09:26 pm, R S Gill wrote:
>>
>>>Hi,
>>>
>>>I just totally messed my system up by running etc-update.
>>
>>>I plan on doing a re-install since all the new config files look like
>>>nothing out of the install handbook.
>>
>>You did a -5.. You replaced all your configs. You dont need to reinstall, you
>>did that already.. Just configure.. This isnt windows.
>
>
> I run it every time yes, Then I overwrite files that I haven't
> personally edited and whats left (stuff that I have edited) I normally
> delete. This last stage is probably not the best course of action..
> but I find that there isn't any tool out there yet that allowed me to
> compare and easily line by line replace..
You are not the only one who's said this, but it's making me wonder if
no one is aware that etc-update has a diff option (#3-- "show
differences between original and update", after you've selected which
file you want to deal with), and that the diff program can be set to any
diff program you might happen to like (diff is the default, but I've
used meld in the past and currently have it set to use colordiff) in
/etc/etc-update.conf. The config file even explains how to use vi (or
vim, I forget) or another editor to diff the files.
Once you choose to diff the files when running etc-update, you are then
presented with the diff, and after you've looked at it and closed it you
(if using a console diff) have the option to interactively merge them
line by line (naturally you can just go ahead and do this via the GUI
diff program when the diff is displayed, if you prefer to use a GUI diff
program).
I usually use the diff option, because I want to retain any personal
settings, but change the headers (so I know I've updated the file), as
well as any improved comments or scriptlets that may be included. I
really don't like just throwing away the update just because two lines
are commented that I had uncommented in my previous config, when other
things that might really be needed might have been changed as well.
Using the diff option also lets me see immediately if its a file I've
edited or not, so (if not), I can just accept the update and replace.
I've never used -5 or -3; sometimes, in a rush, I'll use -1, but that
just delays you dealing with the issue (the same update will come up
every time you run etc-update)
It's a bit tedious, but system administration sometimes is. It helps a
lot to know what files are important to look at and not update
automatically (any server config files such as Samba, Apache, mail),
/etc/fstab, anything in /etc/init.d/ , etc, so that you can scan the
list and see if anything looks like a problem before you start.
>
>
>>60? My god man, how longs it been?
>
> Its possible he's used an old live CD version and this is his first update....
>
I don't see it as a matter of time, but as a matter of how many packages
are on the system. If you do an emerge -uaDtv world, you can come up
with quite a lot of new config files. One time I hit over 200.
Fortunately quite a lot of them were trivial (so automatically merged),
and a lot more of them were updated translation files (so I could just
accept them). But I admit it gave me pause when I saw the list ;-) .
Holly
--
gentoo-user@gentoo.org mailing list