You are not logged in.

#1 2011-09-11 05:02:46

TwiNight
Member
Registered: 2011-06-04
Posts: 46

[SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

Upgraded KDE from 4.7.0 to 4.7.1, and got a message that the new configuration file for kdm i.e. kdmrc has been saved as kdmrc.pacnew.

What should I do with the old file? Just delete it and rename the new file (i.e. kdmrc.pacnew) as kdmrc, or copy contents from new file to the old file?

If I have to copy, then copy the whole file or some specific part? The file is too large for me to understand what do the different commands do, even with the comments.

Last edited by TwiNight (2011-09-15 06:15:51)

Offline

#2 2011-09-11 10:11:23

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

Offline

#3 2011-09-11 12:36:19

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

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

I hope OP knows this, but he tries to find another way, because he fears that with a file this big it will give him too much trouble.


@TwiNight
Have you tried using e.g. meld?

Last edited by karol (2011-09-11 12:37:39)

Offline

#4 2011-09-11 14:16:14

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

TwiNight wrote:

Upgraded KDE from 4.7.0 to 4.7.1, and got a message that the new configuration file for kdm i.e. kdmrc has been saved as kdmrc.pacnew.

What should I do with the old file? Just delete it and rename the new file (i.e. kdmrc.pacnew) as kdmrc, or copy contents from new file to the old file?

If I have to copy, then copy the whole file or some specific part? The file is too large for me to understand what do the different commands do, even with the comments.

Basically follow the instructions in the wiki karol berbae linked to.

In short:

  • Do not delete the old file but copy it to some backup like "kdmrc.old". (You will need this more often than you like.) So you have three files:

    • the original configuration file (kdmrc) you will have to change

    • the pacnew file (kdmrc.pacnew) with proposed changes. These will usually cover only part of your original configuration.

    • your backup (kdmrc.old) which you can copy back to the original settings (kdmrc) in case something went wrong.

  • Have a look at the pacnew file (or at the differences to the current configuration file by using e.g. the "diff" utility or a difference editor like "meld" or "vimdiff") to get an idea what changes are proposed

  • Try to understand what happens there, what has to be changed and why. If you don't get the idea, search the forums, google, or ask on the forums.

  • Use a suitable difference editor like "meld" or "vimdiff" to incorporate the changes into your original configuration file (kdmrc). You can use a standard text editor on that file as well of course but this will be more difficult ond error prone.

  • Try the results. If everything is o.k. you may delete the pacnew and backup files - but only if you are really sure. (I tend to keep them until the next pacnew update appears.)

Edit: Wrong name. My fault. Sorry!
Edit 2: Explained the pacnew file lookup a bit more.

Last edited by bernarcher (2011-09-11 19:05:37)


To know or not to know ...
... the questions remain forever.

Offline

#5 2011-09-12 10:39:07

TwiNight
Member
Registered: 2011-06-04
Posts: 46

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

I tried pacdiffviewer, but it's not detecting the kdmrc.pacnew file.

[root@myhost sudeep]# pacdiffviewer
0 .pacorig found
0 .pacnew found
0 .pacsave found
0 files are orphan

Offline

#6 2011-09-12 10:39:57

TwiNight
Member
Registered: 2011-06-04
Posts: 46

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

I tried meld. It gives following error -

[root@myhost sudeep]# meld
Traceback (most recent call last):
  File "/usr/bin/meld", line 75, in <module>
    locale.setlocale(locale.LC_ALL,'')
  File "/usr/lib/python2.7/locale.py", line 531, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Offline

#7 2011-09-12 10:45:34

unhammer
Member
Registered: 2009-10-01
Posts: 99
Website

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

I typically do

$ diff /usr/share/config/kdm/kdmrc /usr/share/config/kdm/kdmrc.pacnew

and then see whether the pacnew introduced anything that wasn't of my own editing, then just paste those lines in using my favorite editor … I'm sure meld/vimdiff etc are fine tools and all, but I think in the beginning it's better to things a bit more manually. Note: in kdmrc, it's often just the line "forgingseed" that changes, doesn't matter much whether you add or don't add that.

Of course, I always make a backup of the old kdmrc before replacing it.

Last edited by unhammer (2011-09-12 10:46:42)

Offline

#8 2011-09-12 10:46:07

TwiNight
Member
Registered: 2011-06-04
Posts: 46

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

karol wrote:

I hope OP knows this, but he tries to find another way, because he fears that with a file this big it will give him too much trouble.


@TwiNight
Have you tried using e.g. meld?

Yes, I do fear that I will mess something up...

Offline

#9 2011-09-15 06:16:34

TwiNight
Member
Registered: 2011-06-04
Posts: 46

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

Thanks for all the help. I finally wound up using Kompare to merge the two files.

Offline

#10 2012-12-30 08:43:19

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [SOLVED]New kdmrc file (i.e. kdmrc.pacnew)

TwiNight wrote:

I tried pacdiffviewer, but it's not detecting the kdmrc.pacnew file.

[root@myhost sudeep]# pacdiffviewer
0 .pacorig found
0 .pacnew found
0 .pacsave found
0 files are orphan

Same here


Arch 64, xfce4

Offline

Board footer

Powered by FluxBB