You are not logged in.
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
Offline
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
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
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 orphanOffline
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 settingOffline
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
berbae 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
Thanks for all the help. I finally wound up using Kompare to merge the two files.
Offline
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