LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-31-2007, 08:48 PM   #1
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Which config file should I use... foo or foo.new?


Hi,

Ever since I upgraded from 11.0 to current, then to 12.0 there have been config files all over the place that have .new added to the end. (i.e. /etc/rc.d/rc.M and /etc/rc.d/rc.M.new)

I used kompare and there are differences here and there. Should I try and merge the two files together, or delete the one that doesn't have .new appended to it?

Thanks!
--David
 
Old 07-31-2007, 09:03 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you've made customisations then you will probably merge them - checking the diffs should tell you which are your own changes. If you haven't customised them, then you should be able to over-write the original file with the .new file. As always, make sure you have a backup before you overwrite files (or copy the originals to .old, test and delete)...
 
Old 08-01-2007, 10:52 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I don't know if "all over the place" == "a lot". But if you decide to take Steve's suggestion, the script that does it automatically might be very interesting.
 
Old 08-01-2007, 03:18 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I have to admit I'm too paranoid to try and automate it. The most work I've been able to remove from the process was to put as many of my customisations as possible to the /etc/rc.d/rc.* scripts in /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown. That way I only have to worry about the daemon config files (for Samba, BIND, VSFTPD, etc.). And since I keep my /etc files backed up in CVS, rolling back any stupidity^H^H^H^H^H^H^H^H^Hunderstandable errors I might cause is easy.
 
Old 08-01-2007, 04:14 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I meant automating finding the changed files (*.new) & creating their back ups. Perhaps keeping a list, & perhaps also making diff files. The final possibility would be displaying the diff's & offering the appropriate choices -- ?? New, Old, Merge ??.
 
Old 08-01-2007, 05:29 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
slackpkg provides most of that. IIRC, when it updates packages on the system it looks for .new files and provides the options to keep the originals, to overwrite them, to prompt for each one or to diff them. But at some point you have to read the diff and know whether you want to keep your original content or lose it.
 
Old 08-01-2007, 06:21 PM   #7
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Well, I went w/ the first suggestion, and, aside from a few things here and there, it seems to be working alright. Thanks for the help!

--David
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What is foo bar satimis Programming 25 04-26-2019 09:21 PM
what is foo? ashlesha Linux - Newbie 5 07-27-2006 03:09 PM
grep -r foo /* alles32 Linux - General 2 09-19-2004 07:20 PM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 07:19 PM
Foo? MasterC Linux - General 2 05-27-2003 04:17 AM

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

All times are GMT -5. The time now is 05:49 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