You are not logged in.

#1 2006-12-18 02:10:42

mcrae
Member
From: Brunswick, GA
Registered: 2006-06-21
Posts: 88

merging updated config files

Is there something like gentoo's etc-update or merge master in BSD (I think) to update files. Do you guys just go through each of these and redo them and over write the old ones? Some of them don't look any different.

Anyway what is the right way of taking care of the messages below:

upgrading filesystem...
warning: extracting /etc/fstab as /etc/fstab.pacnew
warning: extracting /etc/group as /etc/group.pacnew
warning: extracting /etc/passwd as /etc/passwd.pacnew
warning: extracting /etc/shadow as /etc/shadow.pacnew
warning: extracting /etc/ld.so.conf as /etc/ld.so.conf.pacnew
done.
upgrading gcc... done.
upgrading graphviz... done.
upgrading initscripts...
warning: extracting /etc/rc.local as /etc/rc.local.pacnew
warning: extracting /etc/rc.conf as /etc/rc.conf.pacnew
done.

As always - Thanks
McRae

Offline

#2 2006-12-18 02:14:35

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: merging updated config files

diff -u file1 file2 smile


I am a gated community.

Offline

#3 2006-12-18 02:44:48

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: merging updated config files

yeah, i usually do diff file1 file2...and usually followed by a rm *pacnew wink

Offline

#4 2006-12-18 03:51:27

Echo
Member
From: Ohio, United States
Registered: 2006-05-16
Posts: 239

Re: merging updated config files

I use meld to compare the existing and .pacnew files. I prefer having each file opened side by side with the differences highlighted. I've used kdiff in the past.

Offline

#5 2006-12-18 04:37:35

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: merging updated config files

sudo vimdiff whatever.conf whatever.conf.pacnew

and then I just do the difference merging by hand on the file in the left pane. gvimdiff is just as helpful.

Offline

#6 2006-12-18 07:22:33

paul2lv
Member
From: Vegas
Registered: 2005-11-09
Posts: 116

Re: merging updated config files

Try the dotpac utility.
HERE

Offline

#7 2006-12-18 08:18:05

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: merging updated config files

try "yaourt -C"  8)

Offline

#8 2006-12-18 22:25:32

mcrae
Member
From: Brunswick, GA
Registered: 2006-06-21
Posts: 88

Re: merging updated config files

diff -u file1 file2  I'll look at the man pages for diff. I'm still not sure I understand how this works but thanks for the advice.

McRae

Offline

#9 2006-12-18 22:44:12

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: merging updated config files

toofishes wrote:

sudo vimdiff whatever.conf whatever.conf.pacnew

and then I just do the difference merging by hand on the file in the left pane. gvimdiff is just as helpful.

seconded.  vimdiff makes all these automerge utilities obsolete.

Offline

#10 2006-12-19 00:25:30

mcrae
Member
From: Brunswick, GA
Registered: 2006-06-21
Posts: 88

Re: merging updated config files

hmmm..
vimdiff looks cool but I don't know vi - I'm a nano guy hehe But, I've had this vim for idiots print out for a while....there must be a reason so many people like vim;)

dotpac - very handy! I did this with 9 files and it was a snap. Neat tool Thanks!!

McRae

Offline

#11 2006-12-19 02:02:36

mcrae
Member
From: Brunswick, GA
Registered: 2006-06-21
Posts: 88

Re: merging updated config files

Question on dotpac.
When I went through my files I ended just getting rid of about 9 pacnew files because they were identical. However, they are still there.......I'm I doing something wrong? It ask what you would like to do and I give an answer. while going through them I notice the list stays the same. In other words if you start with 9 files and you go through them the 9 files stay.

Is that question clear as mud?

McRae

Offline

#12 2006-12-19 03:27:07

paul2lv
Member
From: Vegas
Registered: 2005-11-09
Posts: 116

Re: merging updated config files

mcrae wrote:

Question on dotpac.
When I went through my files I ended just getting rid of about 9 pacnew files because they were identical. However, they are still there.......I'm I doing something wrong? It ask what you would like to do and I give an answer. while going through them I notice the list stays the same. In other words if you start with 9 files and you go through them the 9 files stay.

Is that question clear as mud?

McRae

Are you running dotpac as root or as a normal user?

Offline

#13 2006-12-19 11:25:02

mcrae
Member
From: Brunswick, GA
Registered: 2006-06-21
Posts: 88

Re: merging updated config files

I did it on my desktop and laptop last night...........hmmmmm I can't remember if I was root or not. Once again, I'm going to feel very stupid if that's it .....sheesh.
Paul2lv I'll do it tonight but what you're saying makes perfect sense and I feel sure you're right. It's always the obvious isn't it :oops:

Thanks Again folks,
McRae

PS. I AM going to get comfortable with vim. My first project is going to be diffnano........lol.

Offline

#14 2006-12-19 21:43:26

mcrae
Member
From: Brunswick, GA
Registered: 2006-06-21
Posts: 88

Re: merging updated config files

Yep. I didn't run it as root............I'll done now:)

Thanks.
McRae

Offline

Board footer

Powered by FluxBB