Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Better etc-update?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
{{Azrael}}
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2005
Posts: 117

PostPosted: Sat Jun 04, 2005 11:37 am    Post subject: Better etc-update? Reply with quote

Hey guys, I was google'in around, and found various ways of improving etc-update. I was wondering, what is the best way, for etc-update to automatically diff the files? I really hate having to update files manually, there should be a better way?
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Sat Jun 04, 2005 11:39 am    Post subject: Reply with quote

There is dispatch-conf that automates a few of the merges (for instance plain comment merging, CVS header, ...) but it's not what you're looking for (I suppose you want one command, no user input, that finishes all merging).
Back to top
View user's profile Send private message
{{Azrael}}
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2005
Posts: 117

PostPosted: Sat Jun 04, 2005 11:58 am    Post subject: Reply with quote

Thanks, I'll check it out :)
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sat Jun 04, 2005 12:30 pm    Post subject: Reply with quote

dispatch-conf is alright; it works better than just etc-update, as it saves an old version of each config file (so you can undo changes, something not possible with etc-update).

However, I find its interface to be poorly worded and confusing, and not as intuitive as the interface for etc-update. But that's just a minor point of contention; dispatch-conf is overall a much better config update tool. In my opinion, it should be the default update tool, and the one featured in the Gentoo docs.
Back to top
View user's profile Send private message
alechiko
Guru
Guru


Joined: 01 Feb 2004
Posts: 465
Location: Inside piano, do not disturb.

PostPosted: Sat Jun 04, 2005 2:56 pm    Post subject: Reply with quote

Ive heard that this dispatchconf can be just as lethal as etc-update if not more if you arent careful 8O

akiru
_________________
None
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Sat Jun 04, 2005 3:35 pm    Post subject: Reply with quote

akiru wrote:
Ive heard that this dispatchconf can be just as lethal as etc-update if not more if you arent careful 8O
Anything that touches files in /etc has the potential to break your system.
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Sat Jun 04, 2005 4:20 pm    Post subject: Reply with quote

You could try cfg-update, I love it
Back to top
View user's profile Send private message
{{Azrael}}
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2005
Posts: 117

PostPosted: Sat Jun 04, 2005 7:53 pm    Post subject: Reply with quote

That works great actually, thanks!
Back to top
View user's profile Send private message
krolden
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 293
Location: Belgium

PostPosted: Sat Jun 04, 2005 8:36 pm    Post subject: Reply with quote

I make a backup of my /etc folder every once in a while. Just in case ;)
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Sat Jun 04, 2005 9:40 pm    Post subject: Reply with quote

Krolden wrote:
I make a backup of my /etc folder every once in a while. Just in case ;)


same here. Its easy to tar-up and small enough send to your self via email.
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sat Jun 04, 2005 9:53 pm    Post subject: Reply with quote

Ma3oxuct wrote:
Krolden wrote:
I make a backup of my /etc folder every once in a while. Just in case ;)


same here. Its easy to tar-up and small enough send to your self via email.

Indeed ... unless the first time you do it, you forget to preserve permissions on the archive ... oops. Linux always provides refreshing opportunities to learn from one's mistakes. :)
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Sat Jun 04, 2005 10:18 pm    Post subject: Reply with quote

Why backup your /etc from time to time if we have such an easy little thing like cfg-update?
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Sat Jun 04, 2005 10:37 pm    Post subject: Reply with quote

Q-collective wrote:
Why backup your /etc from time to time if we have such an easy little thing like cfg-update?
whats cfg-update?
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
meax
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 88
Location: Babylon

PostPosted: Sat Jun 04, 2005 10:58 pm    Post subject: Reply with quote

Shadow Skill wrote:
whats cfg-update?


https://forums.gentoo.org/viewtopic.php?t=86622
_________________
Bullshit makes the flowers grow and that's beautiful.
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Sun Jun 05, 2005 9:20 am    Post subject: Reply with quote

Shadow Skill wrote:
Q-collective wrote:
Why backup your /etc from time to time if we have such an easy little thing like cfg-update?
whats cfg-update?

Code:
# emerge cfg-update -s
Searching...
[ Results for search key : cfg-update ]
[ Applications found : 1 ]

*  app-portage/cfg-update
      Latest version available: 1.7.1
      Latest version installed: 1.7.1
      Size of downloaded files: 20 kB
      Homepage:    http://people.zeelandnet.nl/xentric/
      Description: Easy to use GUI & CLI alternative for etc-update with safe auto-updating
      License:     GPL-2
Back to top
View user's profile Send private message
krolden
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 293
Location: Belgium

PostPosted: Sun Jun 05, 2005 11:29 am    Post subject: Reply with quote

Q-collective wrote:
Why backup your /etc from time to time if we have such an easy little thing like cfg-update?


Murphy's law :D
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Sun Jun 05, 2005 3:58 pm    Post subject: Reply with quote

Q-collective wrote:

Why backup your /etc from time to time if we have such an easy little thing like cfg-update?


I don't know etc-update, but does it store it's configuration in let's say... err... /etc ? :wink:
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Mon Jun 06, 2005 1:51 am    Post subject: Reply with quote

:(( cfg-update isn't available for amd64...sigh
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
xentric
Guru
Guru


Joined: 16 Mar 2003
Posts: 410
Location: Netherlands

PostPosted: Mon Jun 06, 2005 5:26 am    Post subject: Reply with quote

Shadow Skill wrote:
:(( cfg-update isn't available for amd64...sigh


Well, maybe you can test if it works on an AMD64 machine...
If you have the following ebuilds installed it would probably work:
>=dev-lang/perl-5.0
>=sys-apps/textutils-2.0
>=sys-apps/gawk-3.0
>=sys-apps/grep-2.0
>=app-portage/gentoolkit-0.1.30
>=x11-misc/sux-1.0
>=dev-util/xxdiff-2.9 (or meld, kdiff3, gtkdiff)

You can copy the /usr/portage/app-portage/cfg-update directory to
/usr/local/portage and add "amd64" to the KEYWORDS line in the local
overlay ebuild. If you decide to try it out, please report back if you've
got it working or not!

(See: instructions for using the local portage overlay
and don't forget to run "cfg-update --fix" and "cfg-update --index"
after installing the ebuild...)
_________________
When all else fails, read the manual...
Registered Linux User #340626
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Mon Jun 06, 2005 10:48 pm    Post subject: Reply with quote

works fine for me (amd64)

just editted the ebuild to get it to compile (added amd64 to the keywords)
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Mon Jun 06, 2005 11:01 pm    Post subject: Reply with quote

I'll go ahead and try it then just hope it doesn't nuke my system, then again it would give me an exscuse to redo some things if it ended up borking my system. :)
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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