Mark Haney wrote:
Nuitari wrote:
What's the best way to update config files? I am a big fan of RH's
method of dealing with them, and can't stand the way Debian does it,
so how do the majority of Gentoo users manage their config files?
with etc-update
I know that, but is there a 'bet practices' to use with 'etc-update'?
Well, honestly I think people make too big a deal of the 'complexity' of
doing their etc-updating.
Some general ideas:
It's assumed that you have built your own gentoo system from the
instructions in the handbook. That being the case, you should be
familiar with the config files you've changed (everyone seems to believe
it's a lot of files, but it's really not that many)
First, using colordiff helps, but really I find that just stretching out
your terminal to the full width of the screen helps most (just to avoid
as much line-wrap as possible).
*** So, when I do an etc-update, I look at the list of all the files
needing to be updated. I note the numbers of only the ones that I have
made changes to - either in the initial setup of my box, or since then.
Then I look specifically at them and usually just q right out of the
'less' environment and do an interactive merge (the additional time this
takes over just 'taking the new modifications' for changes unrelated to
my own is negligible). Take the (l)eft side for stuff that I still want
to keep as my settings and the (r)ight side for the new changes. (I
find that I almost never have to actually edit a line during this
process...it's usually just one or the other)
After I repeat this process for those files I noted in ***, which
honestly is usually no more that 5 or 10, I just automerge the rest with
a -5.
The whole process usually takes 2-3 minutes.
Scott.
--
[email protected] mailing list