-   Slackware (
-   -   keep old or install new configuration files during slackpkg upgrade-all ? (

james2b 03-02-2009 02:27 AM

keep old or install new configuration files during slackpkg upgrade-all ?
Is it best to keep the old, or overwrite with the new configuration files which are found during a "slackpkg upgrade-all", run in a terminal as root for the newer software packages? First "slackpkg update" is run, and then I run; "slackpkg install-new", and last that upgrade-all command. And here is that tool;

samac 03-02-2009 03:23 AM

It depends if you have modified any of the configuration files. Slackpkg gives you the option to prompt for each file and to look at the differences. This will give you the information you need to make your decision.


james2b 03-02-2009 03:52 AM

I did try the prompt option, and then the (D)differences option for the first package. Then I could not enter any more commands in that terminal window since the "user-name#" cursor was not there to type, it just had a small box at the bottom of the terminal, so it was like stuck then ?

samac 03-02-2009 04:32 AM

at that point you decide whether to keep or overwrite. I usually keep the old file and merge in any changes by text editor.


tommcd 03-02-2009 04:37 AM

To find all the .new config files run:

find /etc -name "*.new"
To update the .new files run:

mv /etc/ /etc/file_name

niels.horn 03-02-2009 05:04 AM

Or, if you skipped some .new files (used the option "K"eep), you can let slackpkg search for them again later with

slackpkg new-config

Michielvw 03-02-2009 11:51 AM

Personally I always keep the configs. Those configs that are unchanged between the new and the old packages are merged in principle anyway (see the doinst config() function in most packages).

Other than that, like I said, I keep the configs and as root I run `find /etc/ -name "*.new"' and diff all files by hand and then decide if they need to move over. I have found that colordiff (available at really makes things easier on my eyes there as well.

All times are GMT -5. The time now is 03:06 PM.