| View previous topic :: View next topic |
| Author |
Message |
Harry Putnam Guest
|
Posted: Fri Nov 14, 2008 9:40 pm Post subject: [gentoo-user] tools currently available for update of etc f |
|
|
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available. |
|
| |
|
Back to top |
Volker Armin Hemmann Guest
|
Posted: Fri Nov 14, 2008 10:20 pm Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
On Freitag 14 November 2008, Harry Putnam wrote:
| Quote: | I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
|
cfg-update makes updates REALLY easy and comfortable. |
|
| |
|
Back to top |
Gormotte Julien Guest
|
Posted: Fri Nov 14, 2008 10:40 pm Post subject: RE: [gentoo-user] tools currently available for update of e |
|
|
Personally, I think etc-update is cool and very easy to use.
-----Message d'origine-----
De : news [mailto:news@ger.gmane.org] De la part de Harry Putnam
Envoyé : vendredi 14 novembre 2008 16:35
À : gentoo-user@lists.gentoo.org
Objet : [gentoo-user] tools currently available for update of etc files after updates
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. |
|
| |
|
Back to top |
Dale Guest
|
Posted: Sat Nov 15, 2008 3:50 am Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
Harry Putnam wrote:
| Quote: | I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
|
dispatch-conf works. May want to try them all and pick the one you
like. I like etc-update as far as the update process. I like this one
because it keeps backups of the old config files.
It's like the cereal aisle, your choice.
Dale
:-)  |
|
| |
|
Back to top |
John covici Guest
|
Posted: Sat Nov 15, 2008 4:30 am Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
on Friday 11/14/2008 Dale(rdalek1967@gmail.com) wrote
| Quote: | Harry Putnam wrote:
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
dispatch-conf works. May want to try them all and pick the one you
like. I like etc-update as far as the update process. I like this one
because it keeps backups of the old config files.
|
An eix on both dispatch-conf and etc-update yield no matches -- where
can they be found?
Thanks.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com |
|
| |
|
Back to top |
Dan Wallis Guest
|
Posted: Sat Nov 15, 2008 4:50 am Post subject: Re: [gentoo-user] tools currently available for update of et |
|
|
On 14/11/2008, John covici <covici@ccs.covici.com> wrote:
| Quote: | An eix on both dispatch-conf and etc-update yield no matches -- where
can they be found?
|
They both belong to sys-apps/portage on my systems:
dan@tui ~ $ qfile dispatch-conf
sys-apps/portage (/usr/sbin/dispatch-conf)
sys-apps/portage (/usr/lib64/portage/bin/dispatch-conf)
dan@tui ~ $ qfile etc-update
sys-apps/portage (/usr/sbin/etc-update)
sys-apps/portage (/usr/lib64/portage/bin/etc-update)
dan@tui ~ $
Dan |
|
| |
|
Back to top |
John covici Guest
|
Posted: Sat Nov 15, 2008 5:20 am Post subject: Re: [gentoo-user] tools currently available for update of et |
|
|
on Friday 11/14/2008 Dan Wallis(mrdanwallis@gmail.com) wrote
| Quote: | On 14/11/2008, John covici <covici@ccs.covici.com> wrote:
An eix on both dispatch-conf and etc-update yield no matches -- where
can they be found?
They both belong to sys-apps/portage on my systems:
dan@tui ~ $ qfile dispatch-conf
sys-apps/portage (/usr/sbin/dispatch-conf)
sys-apps/portage (/usr/lib64/portage/bin/dispatch-conf)
dan@tui ~ $ qfile etc-update
sys-apps/portage (/usr/sbin/etc-update)
sys-apps/portage (/usr/lib64/portage/bin/etc-update)
dan@tui ~ $
|
OK, they are actually part of portage, thanks.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com |
|
| |
|
Back to top |
Volker Armin Hemmann Guest
|
Posted: Sat Nov 15, 2008 8:33 am Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
On Samstag 15 November 2008, Dirk Heinrichs wrote:
| Quote: | Am Freitag, 14. November 2008 17:14:03 schrieb Volker Armin Hemmann:
On Freitag 14 November 2008, Harry Putnam wrote:
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
cfg-update makes updates REALLY easy and comfortable.
Yep, and it gives the possibility to use your favorite diff/merge tool
(diff, kdiff3, vimdiff, emacs, xxdiff, etc.). With the right choice it even
supports automatik (3-way) merging, reducing manual intervention to a
minimum.
IMHO the best tool for the job.
Bye...
Dirk
|
the automatic merging is so sweet. Not to have hunt around in config files to
rescue all your settings - cfg-update takes care of it - and it does that very
well. I haven't had a butchered config since I started cfg-update a long time
ago. It sometimes asks when the changes are too big. I like that. |
|
| |
|
Back to top |
Dirk Heinrichs Guest
|
Posted: Sat Nov 15, 2008 8:33 am Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
Am Freitag, 14. November 2008 17:14:03 schrieb Volker Armin Hemmann:
| Quote: | On Freitag 14 November 2008, Harry Putnam wrote:
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
cfg-update makes updates REALLY easy and comfortable.
|
Yep, and it gives the possibility to use your favorite diff/merge tool (diff,
kdiff3, vimdiff, emacs, xxdiff, etc.). With the right choice it even supports
automatik (3-way) merging, reducing manual intervention to a minimum.
IMHO the best tool for the job.
Bye...
Dirk |
|
| |
|
Back to top |
Markos Chandras Guest
|
Posted: Sat Nov 15, 2008 3:10 pm Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
On Saturday 15 November 2008 11:04:23 Justin wrote:
| Quote: | Dale schrieb:
Harry Putnam wrote:
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
dispatch-conf works. May want to try them all and pick the one you
like. I like etc-update as far as the update process. I like this one
because it keeps backups of the old config files.
It's like the cereal aisle, your choice.
Dale
:-) :-)
A cool thing with dispatch-conf:
emerge colordiff and change in /etc/dispatch-conf.conf the diff="diff
..." to diff="colordiff...". You also can change the mergening command
to anything you like more e.g. gui merging tools
Thanks for that tip . Really cool. |
--
Markos Chandras |
|
| |
|
Back to top |
Justin Guest
|
Posted: Sat Nov 15, 2008 3:10 pm Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
Dale schrieb:
| Quote: | Harry Putnam wrote:
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
dispatch-conf works. May want to try them all and pick the one you
like. I like etc-update as far as the update process. I like this one
because it keeps backups of the old config files.
It's like the cereal aisle, your choice.
Dale
:-) :-)
A cool thing with dispatch-conf: |
emerge colordiff and change in /etc/dispatch-conf.conf the diff="diff
..." to diff="colordiff...". You also can change the mergening command
to anything you like more e.g. gui merging tools |
|
| |
|
Back to top |
Allan Gottlieb Guest
|
Posted: Sat Nov 15, 2008 7:20 pm Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
At Sat, 15 Nov 2008 09:05:22 +0100 Dirk Heinrichs <dirk.heinrichs@online.de> wrote:
| Quote: | Am Freitag, 14. November 2008 17:14:03 schrieb Volker Armin Hemmann:
On Freitag 14 November 2008, Harry Putnam wrote:
I remember discussion of one or more fairly new tools designed to ease
the update of etc files following updates.
Can anyone say what tools are currently available.
cfg-update makes updates REALLY easy and comfortable.
Yep, and it gives the possibility to use your favorite diff/merge tool (diff,
kdiff3, vimdiff, emacs, xxdiff, etc.). With the right choice it even supports
|
How hard was it to hook in emacs-ediff? It wasn't mentioned in the
cfg-update docs I read.
| Quote: | automatik (3-way) merging, reducing manual intervention to a minimum.
IMHO the best tool for the job.
|
Thanks,
allan |
|
| |
|
Back to top |
Dirk Heinrichs Guest
|
Posted: Sat Nov 15, 2008 7:30 pm Post subject: Re: [gentoo-user] tools currently available for update of e |
|
|
Am Samstag, 15. November 2008 14:13:11 schrieb Allan Gottlieb:
| Quote: | How hard was it to hook in emacs-ediff? It wasn't mentioned in the
cfg-update docs I read.
|
Ooops, seems it slipped in accidentally. Sorry for that.
The list of supported tools can be found in /etc/cfg-update.conf.
Bye...
Dirk |
|
| |
|
Back to top |
Harry Putnam Guest
|
Posted: Sun Nov 16, 2008 5:10 am Post subject: [gentoo-user] Re: tools currently available for update of e |
|
|
Lots of good input... thanks.
I did try `cfg-update' but I thought it was really slow. Ditto for
etc-update which I tried some time ago.
What made me ask about this was that I was beginning to think my home
made perl script was too slow and wondered if there was something a
little more sophisticated and fast.
Mostly because I'm used to using it I suppose, but the homely little
script seems much faster and convenient to me.
Here is what it does:
1) finds the new config files when fed a directory
2) presents them to the user like this:
---------- 8< ---------- 8< ---------- 8< ----------
[...] snipped other built in explanatory dialog
Incoming </etc/._cfg0000_wgetrc>
Shall we install it as described; overwriting the existing one?
Anything but <y> will rename the new conf listed above to
/etc/START_STOP/NOUSE._cfg0000_wgetrc-111508_165416
for reference
**Take a look at the diffs before deciding if you need to**
diff /etc/._cfg0000_wgetrc /etc/wgetrc
[y/n] >
---------- 8< ---------- 8< ---------- 8< ----------
So the program itself does no work on comparing and simply presents
a ready made diff command to be used in a separate terminal.
3) if you say `y' then the old config is overwritten, but first backed
up like this:
STOP-USE_whois.conf-111508_104703 (<= my own file dating system)
[date +"%m%d%y_%H%M%S"]
(Of course the date is arrived at a little differently in perl)
And the incoming new config is also backed up like:
START-USE._cfg0000_whois.conf-111508_104703
The backups all go into a directory `START_STOP' created by the
program in whatever directory the config is in.
[ so I do end up with that directory sprinkled around in a few
places ]
If you say `n'
the new config is dated and stored like:
NOUSE._cfg0000_syslog.conf_010107_202225
4) There is also a routine for when there is no old config.
This script is probably as poorly written as humanly possible since I'm
far from a perl programmer, and it is not sophisticated at all.
I wrote it quite a good while back and revised it a little a few times.
So I've used it quite a lot, and so far it hasn't eaten `/' or leveled
all /etc configs....
I find that the majority of new configs are either the
`*.example' variety or else a diff shows the changed lines are all
commented in both old or new, so a simple yes and move on.
A three pane merge in xxdiff like cfg-update does by default, seems
really clunky and somewhat overkill. Not to mention painfully slow.
With configs that need intervention, I'm usually able to get it done with a
simple diff and some hand work carried out in a different xterm or if
in text mode I'll be using `screen' and switch to a different terminal to do
the hand work, or even break out emacs and use its `ediff' tools on
the two files.
The perl script will have made backups of both for the advent of
mistakes.
Others here probably have vastly more complicated config files than
me, but with this little perl script I'm usually able to blaze thru
15-20 new configs in very short order.
I may have to do something by hand with 2-3 and occasionally I'll skip a
complicated one and deal with it after disposing all the easy ones.
I'm too embarrassed to post the script, but if someone really wants to
try it I will make it available. Be advised though that I haven't
paid much attention to security or other dangers... |
|
| |
|
Back to top |
Dirk Heinrichs Guest
|
Posted: Sun Nov 16, 2008 8:26 am Post subject: Re: [gentoo-user] Re: tools currently available for update |
|
|
Am Sonntag, 16. November 2008 00:05:56 schrieb Harry Putnam:
| Quote: | I did try `cfg-update' but I thought it was really slow.
|
Slow? For me it's blazingly fast.
Bye...
Dirk |
|
| |
|
Back to top |
|