You are not logged in.

#1 2012-07-30 21:25:28

dudefellaguy
Member
Registered: 2012-02-08
Posts: 21

[Solved] Issue merging services.pacnew after update

Recently when performing an update, pacman generated /etc/services.pacnew for iana-etc. The old file is in the same format as the pacnew file but the old one is riddled with comments around the various entries. I have no idea how to merge two files of such size. Vimdiff didn't detect any real similarity between the files (even though at a glance the files are almost the same, minus the comments). I tried using grep/sed to get rid of all of the comments and get the entries into a stricter format (service-name:port/protocol). The diff of those reformatted files was manageable, but I don't know what any of the changes mean, and I don't know how to get the changes to be reflected in the original commented file. The changes that I see are things like added/removed lines, in which there are missing numbers on both sides, and character replacements such as '-' to '_'.

Here is a link to the services.pacnew file. I would have posted the original commented file too but it's too big for pastebin. Let me know if there is any other information that would be helpful. Thanks in advance.

Last edited by dudefellaguy (2012-07-31 18:20:38)

Offline

#2 2012-07-30 21:42:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Issue merging services.pacnew after update

I think it's OK to just remove the old files and rename 'services.pacnew' to 'services'.

Offline

#3 2012-07-30 22:02:08

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved] Issue merging services.pacnew after update

sudo mv /etc/services.pacnew /etc/services

Don't do that for every .pacnew, but in case of /etc/services & /etc/protocols it should be ok


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB