LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2004, 04:25 AM   #1
DeathsCow
LQ Newbie
 
Registered: Feb 2004
Location: Michigan
Distribution: MEPIS
Posts: 1

Rep: Reputation: 0
Should I update config files when asked?


I've searched the forum and I couldn't find any posts like this. I'm quite new to Linux and I'm using the MEPIS distribution. When I use apt-get upgrade and it is done recieving all the files and goes through installing them, it frequently asks me if I would like to update a config file. It will give me the options to keep my current version or use the newly updated version. I saw that the default option was to keep the current version. Should I keep it or use the updated one? Any advantages/disadvantages to either? Thanks in advance for the help.
 
Old 02-22-2004, 05:13 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Gentoo's Portage-system also did this, and so does Arch's Pacman...and possibly all this type updating systems? of course, when you update software, the updated software might have new options or perhaps it has changed it's config. and this is why the update asks whether you want to update your config too or not...

basically, updating the config is sensible. but the "disadvantage" of the automatic update is, that your older changes are usually lost, and you get some kind of "normal" settings. this is no problem, if you haven't manually changed the config that's being updated, but if you have, then you shouldn't automatically let the update-program (apt-get) update it, but do it manually.

this is done like this (unless apt-get would be wise enough to keep your old changes too...don't know and I don't think so): before accepting the update, copy your old config (if apt-get doesn't do this automatically) to a backup file (if the config-file's name is "config" for example, then copy it to "config_old" or something) and then let apt-get update the config. now open up the updated config and see how it differs from the older one (the one you copied) and make the changes you need...

I'd say that if you're updating a software, and haven't made any changes to the software's config, then it's usually completely safe to update the config. the only reason to keep the old config (or copy it to a safe place first) is if you _have_ made manual configuration and wish to keep it that way.

Gentoo, as far as I can remember, didn't update any config files, but told me that it had copied new ones (named in a certain way) to the same dirs and asked me to manually rename/replace the older ones with the new ones. this way I always had a chance to see what changes are about to take place..

perhaps the greatest disadvantage of updating configs automatically is that you lose your old configuration...and the disadvantage of keeping the old is, that you might lack the new possabilities of the new config.
 
  


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
DB for config instead of config files twistedpair Linux - Software 1 11-28-2005 04:39 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
question on config files vs build files working2hard Programming 2 07-29-2004 11:45 AM
update config files w/o rebooting slack66 Linux - Newbie 1 05-23-2004 05:46 AM
Different Config Files JHuizingh Linux - General 2 08-12-2001 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:31 AM.

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