LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-09-2016, 12:06 PM   #1
paranoid_penguin
LQ Newbie
 
Registered: Jul 2016
Posts: 25

Rep: Reputation: Disabled
new configuration files installed...


Code:
Searching for NEW configuration files

Some packages had new configuration files installed.
You have four choices:

	(K)eep the old files and consider .new files later

	(O)verwrite all old files with the new ones. The
	   old files will be stored with the suffix .orig

	(R)emove all .new files

	(P)rompt K, O, R selection for every single file
	
What do you want (K/O/R/P)?
how to act ?

thanks in advance !
 
Old 07-09-2016, 12:20 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I usually use the P option. That way it will prompt you for each file and you can decide from there. If it's a file I haven't changed, I let it overwrite it, but if I have changed it, I usually keep the old one and merge in any changes from the *.new manually.

Last edited by montagdude; 07-09-2016 at 12:22 PM.
 
1 members found this post helpful.
Old 07-09-2016, 12:20 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,059

Rep: Reputation: Disabled
Quote:
Originally Posted by paranoid_penguin View Post
Code:
Searching for NEW configuration files

Some packages had new configuration files installed.
You have four choices:

    (K)eep the old files and consider .new files later

    (O)verwrite all old files with the new ones. The
       old files will be stored with the suffix .orig

    (R)emove all .new files

    (P)rompt K, O, R selection for every single file
    
What do you want (K/O/R/P)?
how to act ?

thanks in advance !
Type p.
 
Old 07-09-2016, 12:40 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
My first response is to hit 'p' for prompt.
As each .new file is presented, I choose to view the diff.
My action then varies.
If the diff involves changes to local settings (e.g. location customisation or inittab), I remove the incoming .new file.
If the diff involves changes to daemons that I do not use, I overwrite the existing file.
If the diff involves changes to daemons that I do use, I will either overwrite the existing file or keep the incoming .new file (which I later inspect against the existing using "vimdiff').

You can run 'slackpkg new-config' multiple times after an upgrade in -current, to cycle through the incoming .new files.
 
Old 07-09-2016, 12:48 PM   #5
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 930

Rep: Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516
Same as montagdude, "(P)rompt K, O, R selection for every single file"
If it is a .new file of something that I don't use or I know that I didn't edit the ".old" file, I just overwrite.
Others .new files I run kompare to see what changed.
 
Old 07-10-2016, 10:06 AM   #6
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Rep: Reputation: Disabled
that is with .new files but how to treat .orig files in /etc/rc.d/ ????
 
Old 07-10-2016, 11:07 AM   #7
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,309

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by przemo View Post
that is with .new files but how to treat .orig files in /etc/rc.d/ ????
I diff them to the one in use and compare the differences, like diff /etc/rc.d/rc.local /etc/rc.d/rc.local.orig.
 
Old 07-10-2016, 12:03 PM   #8
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Rep: Reputation: Disabled
sorry for that question but i am not familiar with diff tool and i think i should chenge it
i have read man but still....

for example :
Code:
diff /etc/rc.d/rc.cgred /etc/rc.d/rc.cgred.orig 
46,47c46,47
< if [ -f $CGRED_CONF ] ; then
<       . $CGRED_CONF
---
> if [ -f "/etc/sysconfig/cgred.conf" ] ; then
>       . /etc/sysconfig/cgred.conf
75,76c75,79
<       num=`grep "cgroup" /proc/mounts | awk '$3=="cgroup"' | wc -l`
<       if [ $num -eq 0 ]; then
---
>       if [ ! -s $CGRED_CONF ]; then
>               echo "not configured"
>               return 6
>       fi
>       if ! grep "^cgroup" /proc/mounts &>/dev/null; then
how i should read that ???

ok i got it now, /etc/sysconfig/cgred.conf is merged to /etc/cgrules.conf

smart tool that diff ;-) good to know it.

Last edited by przemo; 07-10-2016 at 12:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help listing installed files and searching for missing files mightymouse2045 Linux - General 3 10-09-2013 07:57 PM
System wide configuration parameters in configuration files (/etc, e.g.) Kromitvs Linux - Newbie 15 06-06-2013 05:11 PM
Playonlinux adding *.exe files to installed set of files davepi Linux - Software 1 12-08-2012 05:33 AM
[SOLVED] Equivalent files in Arch configuration of services to Debian configuration... Alexvader Debian 2 10-17-2011 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration